Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001513/0.001513, allocations: 191 kB / 18 MB, free: 4.977 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.601/1.601, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 52.06 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4564/0.4576, allocations: 49.43 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.006484/0.4642, allocations: 2.901 MB / 403.6 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.4662, allocations: 0.666 MB / 404.3 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004656/0.4667, allocations: 11.94 kB / 404.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003855/0.4671, allocations: 55.38 kB / 404.4 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004803/0.4677, allocations: 91.2 kB / 404.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004835/0.4682, allocations: 99.8 kB / 404.5 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.4689, allocations: 366.5 kB / 404.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003984/0.4693, allocations: 161.3 kB / 405.1 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003494/0.4697, allocations: 147.4 kB / 405.2 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003095/0.47, allocations: 151.3 kB / 405.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.175e-05/0.4701, allocations: 32 kB / 405.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.017e-05/0.4702, allocations: 32 kB / 405.4 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.326e-05/0.4703, allocations: 79.7 kB / 405.5 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.4705, allocations: 167.2 kB / 405.7 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005189/0.4711, allocations: 379.7 kB / 406 MB, free: 3.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4711, allocations: 4 kB / 406 MB, free: 3.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4711, allocations: 0 / 406 MB, free: 3.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.4711, allocations: 0 / 406 MB, free: 3.57 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001261/0.4724, allocations: 0.6082 MB / 406.6 MB, free: 2.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.4725, allocations: 8.031 kB / 406.6 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4726, allocations: 36.56 kB / 406.7 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.473, allocations: 267.7 kB / 406.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.4731, allocations: 25.03 kB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.865e-05/0.4731, allocations: 32.38 kB / 407 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.4738, allocations: 274.4 kB / 407.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.4738, allocations: 7.938 kB / 407.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.912e-05/0.4738, allocations: 12 kB / 407.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.4738, allocations: 8 kB / 407.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.4743, allocations: 198.5 kB / 407.5 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.476, allocations: 0.9752 MB / 408.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.4763, allocations: 166.6 kB / 408.6 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.4765, allocations: 76.81 kB / 408.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.4765, allocations: 0 / 408.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.4766, allocations: 38.56 kB / 408.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.373e-06/0.4766, allocations: 0 / 408.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005721/0.4772, allocations: 215.9 kB / 409 MB, free: 464 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/0.4772, allocations: 55.41 kB / 409 MB, free: 396 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.4775, allocations: 214.9 kB / 409.2 MB, free: 172 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.4775, allocations: 33.64 kB / 409.2 MB, free: 132 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.4776, allocations: 184.1 kB / 409.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/0.4777, allocations: 67 kB / 409.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.388e-05/0.4778, allocations: 49.7 kB / 409.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.4779, allocations: 330.8 kB / 409.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.4781, allocations: 67.97 kB / 409.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.4783, allocations: 109.9 kB / 410 MB, free: 15.29 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003453/0.4787, allocations: 197.8 kB / 410.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4787, allocations: 3.938 kB / 410.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004422/0.4791, allocations: 245.2 kB / 410.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.4792, allocations: 4 kB / 410.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.4792, allocations: 0 / 410.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.4792, allocations: 4 kB / 410.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.4795, allocations: 67.89 kB / 410.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4795, allocations: 4 kB / 410.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.4797, allocations: 19.84 kB / 410.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.4797, allocations: 11.98 kB / 410.6 MB, free: 14.72 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001475/0.4799, allocations: 153.7 kB / 410.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.37e-05/0.4799, allocations: 19.72 kB / 410.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004273/0.4803, allocations: 187.4 kB / 410.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.4804, allocations: 7.938 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4804, allocations: 0 / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.4804, allocations: 0 / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004203/0.4808, allocations: 325.3 kB / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4808, allocations: 0 / 411.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.4811, allocations: 55.97 kB / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4811, allocations: 0 / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.4811, allocations: 0 / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4811, allocations: 4 kB / 411.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.4811, allocations: 0 / 411.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005926/0.4817, allocations: 355 kB / 411.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.154e-05/0.4818, allocations: 100.8 kB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.4819, allocations: 8.062 kB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.482, allocations: 15.98 kB / 411.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.4821, allocations: 7.984 kB / 411.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.4821, allocations: 4 kB / 411.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.4823, allocations: 152.6 kB / 412 MB, free: 13.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4823, allocations: 0 / 412 MB, free: 13.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000377/0.4827, allocations: 71.69 kB / 412 MB, free: 13.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.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 (19): * Single equations (assignments): 19 * 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.0001796/0.4828, allocations: 111.2 kB / 412.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004004/0.4833, allocations: 162.5 kB / 412.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4833, allocations: 0 / 412.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.4834, allocations: 79.84 kB / 412.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.4838, allocations: 28.17 kB / 412.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.4853, allocations: 0.8228 MB / 413.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003935/0.4857, allocations: 0.7711 MB / 414 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.372e-05/0.4858, allocations: 13.95 kB / 414 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.4859, allocations: 19.44 kB / 414 MB, free: 11.12 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4859, allocations: 0 / 414 MB, free: 11.12 MB / 334.1 MB Notification: Performance of Templates: time 0.0057/0.4916, allocations: 2.029 MB / 416 MB, free: 9.113 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches