Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 105 kB / 17.06 MB, free: 6.109 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.001757/0.001757, allocations: 194.9 kB / 18 MB, free: 5.188 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.615/1.615, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4419, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.004879/0.4468, allocations: 2.9 MB / 403.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.4483, allocations: 0.6621 MB / 404.3 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.4485, allocations: 7.938 kB / 404.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002253/0.4487, allocations: 63.42 kB / 404.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.4489, allocations: 87.2 kB / 404.4 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.4492, allocations: 99.81 kB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004102/0.4496, allocations: 378.9 kB / 404.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003455/0.45, allocations: 172.4 kB / 405.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.4502, allocations: 143.5 kB / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/0.4504, allocations: 159.3 kB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.92e-05/0.4504, allocations: 35.94 kB / 405.4 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.738e-05/0.4505, allocations: 32 kB / 405.4 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.727e-05/0.4506, allocations: 75.75 kB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.4507, allocations: 171.2 kB / 405.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.4512, allocations: 395.6 kB / 406.1 MB, free: 3.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4512, allocations: 4 kB / 406.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4512, allocations: 0 / 406.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.4512, allocations: 0 / 406.1 MB, free: 3.516 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.001095/0.4523, allocations: 0.6199 MB / 406.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.4524, allocations: 8.031 kB / 406.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.504e-05/0.4525, allocations: 36.56 kB / 406.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.4529, allocations: 259.7 kB / 407 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.4529, allocations: 29.03 kB / 407 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.856e-05/0.453, allocations: 28.38 kB / 407 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000614/0.4536, allocations: 290.3 kB / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.4536, allocations: 0 / 407.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.4537, allocations: 19.98 kB / 407.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.4537, allocations: 8 kB / 407.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004695/0.4542, allocations: 206.5 kB / 407.6 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.4558, allocations: 1.018 MB / 408.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.4561, allocations: 162.6 kB / 408.7 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002864/0.4564, allocations: 128.8 kB / 408.9 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.4565, allocations: 7.938 kB / 408.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.4565, allocations: 30.56 kB / 408.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.393e-06/0.4565, allocations: 4 kB / 408.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005944/0.4571, allocations: 233.5 kB / 409.1 MB, free: 264 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.4572, allocations: 51.41 kB / 409.2 MB, free: 200 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.4574, allocations: 215.2 kB / 409.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.4574, allocations: 25.7 kB / 409.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.4576, allocations: 188 kB / 409.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.4576, allocations: 74.94 kB / 409.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.377e-05/0.4577, allocations: 53.89 kB / 409.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.4579, allocations: 338.8 kB / 410.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.4581, allocations: 64.52 kB / 410.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.4583, allocations: 143.3 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.4587, allocations: 233.2 kB / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4587, allocations: 0 / 410.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004969/0.4592, allocations: 273.1 kB / 410.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4593, allocations: 10.5 kB / 410.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.4593, allocations: 48 / 410.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.4593, allocations: 11.98 kB / 410.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003238/0.4596, allocations: 71.89 kB / 410.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.4596, allocations: 7.984 kB / 410.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.4598, allocations: 31.72 kB / 410.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.4598, allocations: 11.98 kB / 410.9 MB, free: 14.37 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0001377/0.46, allocations: 146.5 kB / 411 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.23e-05/0.4601, allocations: 27.66 kB / 411.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004318/0.4605, allocations: 195.3 kB / 411.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4605, allocations: 4 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4605, allocations: 3.938 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4605, allocations: 0 / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008396/0.4614, allocations: 0.604 MB / 411.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4614, allocations: 8 kB / 411.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.4617, allocations: 59.91 kB / 411.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.4617, allocations: 0 / 411.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.4617, allocations: 8 kB / 411.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4617, allocations: 0 / 411.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4618, allocations: 0 / 411.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005983/0.4624, allocations: 382.3 kB / 412.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.521e-05/0.4624, allocations: 100.8 kB / 412.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.4625, allocations: 8 kB / 412.4 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.4627, allocations: 15.98 kB / 412.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.4627, allocations: 19.97 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.4628, allocations: 4 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.4629, allocations: 156.6 kB / 412.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4629, allocations: 0 / 412.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003464/0.4633, allocations: 83.62 kB / 412.7 MB, free: 12.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.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 (21): * Single equations (assignments): 21 * 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.0001378/0.4634, allocations: 103.2 kB / 412.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004305/0.4638, allocations: 182.4 kB / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4639, allocations: 0 / 413 MB, free: 12.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.464, allocations: 79.89 kB / 413.1 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.4644, allocations: 29.52 kB / 413.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.4657, allocations: 0.8361 MB / 413.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.4661, allocations: 0.7712 MB / 414.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.046e-05/0.4662, allocations: 17.94 kB / 414.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.4662, allocations: 31.38 kB / 414.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.563e-06/0.4662, allocations: 0 / 414.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Templates: time 0.005074/0.4713, allocations: 2.081 MB / 416.8 MB, free: 8.277 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches