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.001307/0.001307, allocations: 112 kB / 17.69 MB, free: 5.094 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.001123/0.001123, allocations: 191 kB / 18.63 MB, free: 4.25 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.548/1.548, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 46.38 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1714, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007633/0.1791, allocations: 5.351 MB / 356.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003672/0.1828, allocations: 1.438 MB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.1841, allocations: 31.81 kB / 358.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008674/0.185, allocations: 217.8 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001233/0.1863, allocations: 194 kB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.1876, allocations: 399.4 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002163/0.1898, allocations: 1.119 MB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008878/0.1907, allocations: 488.2 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006751/0.1914, allocations: 398.3 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.1919, allocations: 441.4 kB / 361.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.192, allocations: 80 kB / 361.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.1922, allocations: 99.98 kB / 361.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.1924, allocations: 203.2 kB / 361.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004217/0.1929, allocations: 0.5048 MB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.194, allocations: 1.148 MB / 363.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.194, allocations: 0 / 363.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.194, allocations: 0 / 363.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.194, allocations: 0 / 363.6 MB, free: 7.566 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.002057/0.1961, allocations: 1.309 MB / 364.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.1962, allocations: 11.89 kB / 364.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.1964, allocations: 126.5 kB / 365 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00137/0.1977, allocations: 0.6497 MB / 365.7 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.188e-05/0.1978, allocations: 77.94 kB / 365.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.1979, allocations: 96 kB / 365.8 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.1995, allocations: 1.031 MB / 366.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.008e-05/0.1996, allocations: 7.938 kB / 366.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.967e-05/0.1997, allocations: 44 kB / 366.9 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.483e-05/0.1998, allocations: 24 kB / 366.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.2009, allocations: 0.5539 MB / 367.5 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.244/0.4449, allocations: 5.483 MB / 373 MB, free: 21.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007398/0.4457, allocations: 239.5 kB / 373.2 MB, free: 21.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003858/0.4461, allocations: 157.5 kB / 373.4 MB, free: 21.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001617/0.4462, allocations: 94.2 kB / 373.5 MB, free: 21.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.4463, allocations: 37.41 kB / 373.5 MB, free: 21.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.126e-06/0.4463, allocations: 2.344 kB / 373.5 MB, free: 21.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.004259/0.4506, allocations: 1.713 MB / 375.2 MB, free: 20.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.4506, allocations: 80.95 kB / 375.3 MB, free: 20.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.4516, allocations: 0.6331 MB / 375.9 MB, free: 20.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.4517, allocations: 35.55 kB / 376 MB, free: 20.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.452, allocations: 0.599 MB / 376.6 MB, free: 19.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.4522, allocations: 151.5 kB / 376.7 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/0.4523, allocations: 133.7 kB / 376.8 MB, free: 19.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4525, allocations: 384.7 kB / 377.2 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.4529, allocations: 151.6 kB / 377.4 MB, free: 19.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005213/0.4534, allocations: 499.2 kB / 377.8 MB, free: 18.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000902/0.4543, allocations: 0.7012 MB / 378.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.856e-06/0.4543, allocations: 3.781 kB / 378.5 MB, free: 18.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001253/0.4556, allocations: 0.7162 MB / 379.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.4556, allocations: 14.75 kB / 379.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.597e-05/0.4557, allocations: 10.97 kB / 379.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.952e-05/0.4557, allocations: 17.69 kB / 379.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007669/0.4565, allocations: 195.6 kB / 379.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.616e-05/0.4566, allocations: 22.69 kB / 379.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/0.457, allocations: 33.73 kB / 379.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.4571, allocations: 40.81 kB / 379.6 MB, free: 17.98 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.0004243/0.4575, allocations: 232.2 kB / 379.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.4577, allocations: 79.09 kB / 379.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/0.4579, allocations: 78.53 kB / 380 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.4579, allocations: 8.188 kB / 380 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.422e-05/0.4579, allocations: 2.312 kB / 380 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.4579, allocations: 1.594 kB / 380 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002972/0.4609, allocations: 1.32 MB / 381.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/0.4609, allocations: 5.031 kB / 381.3 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/0.4615, allocations: 103.9 kB / 381.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-05/0.4615, allocations: 7.609 kB / 381.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.733e-05/0.4616, allocations: 13.38 kB / 381.4 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.937e-06/0.4616, allocations: 7.609 kB / 381.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.084e-06/0.4616, allocations: 4.062 kB / 381.4 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.463, allocations: 0.6997 MB / 382.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.4632, allocations: 137.5 kB / 382.3 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.081e-05/0.4633, allocations: 8.641 kB / 382.3 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/0.4636, allocations: 25.83 kB / 382.3 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.4638, allocations: 34.84 kB / 382.3 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.4638, allocations: 10.88 kB / 382.4 MB, free: 16.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007845/0.4646, allocations: 423.8 kB / 382.8 MB, free: 16.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4646, allocations: 3.938 kB / 382.8 MB, free: 16.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001046/0.4657, allocations: 137.6 kB / 382.9 MB, free: 16.13 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 0.0002074/0.4659, allocations: 111 kB / 383 MB, free: 16.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.467, allocations: 440.3 kB / 383.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.467, allocations: 3.172 kB / 383.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.4674, allocations: 153.9 kB / 383.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007243/0.4681, allocations: 80.03 kB / 383.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003879/0.472, allocations: 1.639 MB / 385.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006884/0.4727, allocations: 1 MB / 386.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003382/0.473, allocations: 92 kB / 386.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.4732, allocations: 67.95 kB / 386.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4732, allocations: 0 / 386.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of Templates: time 0.01238/0.4856, allocations: 4.942 MB / 391.4 MB, free: 12.66 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 cvode -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