Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 111.8 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 190.9 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008958/0.0008958, allocations: 54.77 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07679/0.0777, allocations: 49.43 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.005509/0.08324, allocations: 5.37 MB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.0851, allocations: 1.43 MB / 358.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000249/0.08536, allocations: 27.81 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003649/0.08574, allocations: 217.8 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003679/0.08612, allocations: 198 kB / 358.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.08672, allocations: 395.4 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000868/0.0876, allocations: 1.123 MB / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005367/0.08814, allocations: 492.2 kB / 360.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003244/0.08847, allocations: 394.3 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.08884, allocations: 437.5 kB / 361.5 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.857e-05/0.08894, allocations: 84 kB / 361.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.08909, allocations: 92 kB / 361.7 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.08923, allocations: 211.1 kB / 361.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003319/0.08957, allocations: 0.501 MB / 362.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.09039, allocations: 1.152 MB / 363.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.0904, allocations: 0 / 363.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09041, allocations: 0 / 363.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.09043, allocations: 0 / 363.6 MB, free: 7.547 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001508/0.09194, allocations: 1.309 MB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.09198, allocations: 15.89 kB / 364.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.09212, allocations: 122.5 kB / 365 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008522/0.09298, allocations: 0.6497 MB / 365.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.854e-05/0.09304, allocations: 77.94 kB / 365.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.09315, allocations: 99.98 kB / 365.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.09453, allocations: 1.027 MB / 366.9 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.09456, allocations: 7.938 kB / 366.9 MB, free: 4.023 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.281e-05/0.09463, allocations: 47.98 kB / 366.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.09466, allocations: 24 kB / 366.9 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009764/0.09564, allocations: 0.5539 MB / 367.5 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.133/0.2286, allocations: 5.489 MB / 373 MB, free: 21.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005167/0.2292, allocations: 232.5 kB / 373.2 MB, free: 21.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002704/0.2295, allocations: 158.2 kB / 373.4 MB, free: 21.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.96e-05/0.2296, allocations: 87.91 kB / 373.4 MB, free: 21.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.2296, allocations: 37.31 kB / 373.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.2296, allocations: 0.9375 kB / 373.5 MB, free: 21.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003364/0.233, allocations: 1.715 MB / 375.2 MB, free: 20.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.745e-05/0.233, allocations: 83.86 kB / 375.3 MB, free: 20.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000694/0.2337, allocations: 0.6317 MB / 375.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.2338, allocations: 33.39 kB / 375.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002702/0.234, allocations: 0.6039 MB / 376.5 MB, free: 19.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.919e-05/0.2341, allocations: 151.5 kB / 376.7 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2343, allocations: 134.1 kB / 376.8 MB, free: 19.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2344, allocations: 385.6 kB / 377.2 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.2347, allocations: 150.7 kB / 377.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003867/0.2351, allocations: 0.4951 MB / 377.8 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006238/0.2357, allocations: 0.6906 MB / 378.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.2357, allocations: 4.125 kB / 378.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009255/0.2367, allocations: 0.7193 MB / 379.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.2367, allocations: 14.41 kB / 379.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.2367, allocations: 13.31 kB / 379.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.2367, allocations: 15.97 kB / 379.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005683/0.2373, allocations: 194.4 kB / 379.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.2373, allocations: 24.17 kB / 379.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003156/0.2377, allocations: 33.22 kB / 379.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.2377, allocations: 44.09 kB / 379.6 MB, free: 17.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002036/0.2379, allocations: 231 kB / 379.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-05/0.238, allocations: 79.23 kB / 379.9 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.2381, allocations: 73.56 kB / 380 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2381, allocations: 8.656 kB / 380 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2382, allocations: 1.156 kB / 380 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2382, allocations: 2.828 kB / 380 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.2398, allocations: 1.32 MB / 381.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2398, allocations: 6.344 kB / 381.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/0.2403, allocations: 103.7 kB / 381.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.329e-06/0.2403, allocations: 3.344 kB / 381.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.2403, allocations: 10.44 kB / 381.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.2403, allocations: 4 kB / 381.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2403, allocations: 6.031 kB / 381.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007771/0.2411, allocations: 0.6994 MB / 382.1 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.617e-05/0.2412, allocations: 137.6 kB / 382.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.562e-05/0.2413, allocations: 19.52 kB / 382.3 MB, free: 16.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.2416, allocations: 21.42 kB / 382.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.2416, allocations: 35.8 kB / 382.3 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.2417, allocations: 14.25 kB / 382.3 MB, free: 16.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003771/0.242, allocations: 429.7 kB / 382.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2421, allocations: 0 / 382.8 MB, free: 15.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005429/0.2426, allocations: 136.1 kB / 382.9 MB, free: 15.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.305e-05/0.2427, allocations: 112.5 kB / 383 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000642/0.2433, allocations: 432 kB / 383.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2434, allocations: 0 / 383.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.2436, allocations: 160.5 kB / 383.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.2441, allocations: 72.42 kB / 383.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.2462, allocations: 1.64 MB / 385.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.2466, allocations: 1.003 MB / 386.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002326/0.2468, allocations: 97.16 kB / 386.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001339/0.247, allocations: 64.38 kB / 386.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.247, allocations: 0 / 386.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Templates: time 0.3373/0.5843, allocations: 4.931 MB / 391.4 MB, free: 12.39 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches