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.001204/0.001204, allocations: 107.6 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.001378/0.001378, allocations: 192 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.606/1.606, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.00124, allocations: 39.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4582/0.4595, allocations: 49.44 MB / 400.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004875/0.4644, allocations: 2.889 MB / 403.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001321/0.4658, allocations: 0.6621 MB / 404.3 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.466, allocations: 11.94 kB / 404.3 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002498/0.4662, allocations: 59.38 kB / 404.4 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.4665, allocations: 99.17 kB / 404.5 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.4668, allocations: 87.83 kB / 404.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004074/0.4672, allocations: 382.4 kB / 404.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003196/0.4675, allocations: 149.3 kB / 405.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002375/0.4677, allocations: 143.5 kB / 405.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.468, allocations: 151.3 kB / 405.3 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.468, allocations: 35.98 kB / 405.4 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.008e-05/0.4681, allocations: 32 kB / 405.4 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.735e-05/0.4681, allocations: 71.77 kB / 405.5 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.4683, allocations: 171.1 kB / 405.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004149/0.4687, allocations: 383.8 kB / 406 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.4687, allocations: 4 kB / 406 MB, free: 3.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4688, allocations: 0 / 406 MB, free: 3.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.4688, allocations: 0 / 406 MB, free: 3.703 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.001/0.4698, allocations: 0.6043 MB / 406.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.4698, allocations: 16.03 kB / 406.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.547e-05/0.4699, allocations: 32.56 kB / 406.7 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003997/0.4703, allocations: 267.7 kB / 406.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.4704, allocations: 25.03 kB / 407 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.4704, allocations: 32.38 kB / 407 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005575/0.471, allocations: 274.4 kB / 407.3 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.471, allocations: 4 kB / 407.3 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.4711, allocations: 15.98 kB / 407.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.4711, allocations: 12 kB / 407.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.4715, allocations: 206.4 kB / 407.5 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001466/0.473, allocations: 0.9635 MB / 408.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.4734, allocations: 158.6 kB / 408.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001843/0.4736, allocations: 84.81 kB / 408.7 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.4736, allocations: 3.938 kB / 408.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.4736, allocations: 34.56 kB / 408.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.4736, allocations: 0 / 408.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005675/0.4742, allocations: 219.9 kB / 409 MB, free: 0.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.4742, allocations: 55.41 kB / 409 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.4745, allocations: 210.9 kB / 409.2 MB, free: 308 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.4745, allocations: 29.64 kB / 409.2 MB, free: 272 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.4746, allocations: 184.1 kB / 409.4 MB, free: 80 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.361e-05/0.4747, allocations: 74.98 kB / 409.5 MB, free: 4 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.932e-05/0.4748, allocations: 49.78 kB / 409.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4749, allocations: 330.8 kB / 409.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.4751, allocations: 67.84 kB / 409.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.4753, allocations: 114 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/0.4756, allocations: 193.8 kB / 410.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4756, allocations: 0 / 410.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004442/0.4761, allocations: 245 kB / 410.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.4761, allocations: 4.125 kB / 410.5 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.4761, allocations: 11.98 kB / 410.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.4761, allocations: 0 / 410.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.4764, allocations: 59.91 kB / 410.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.4764, allocations: 4 kB / 410.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.4766, allocations: 23.83 kB / 410.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/0.4766, allocations: 12 kB / 410.6 MB, free: 14.84 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.0001444/0.4768, allocations: 149.6 kB / 410.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.4768, allocations: 23.72 kB / 410.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004318/0.4773, allocations: 191.4 kB / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.4773, allocations: 0 / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4773, allocations: 0 / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4773, allocations: 0 / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.4776, allocations: 321.2 kB / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4777, allocations: 0 / 411.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002695/0.4779, allocations: 51.91 kB / 411.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.4779, allocations: 48 / 411.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.478, allocations: 19.92 kB / 411.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.478, allocations: 0 / 411.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.478, allocations: 0 / 411.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.4786, allocations: 351.1 kB / 411.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.399e-05/0.4786, allocations: 100.8 kB / 411.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.4787, allocations: 8.062 kB / 411.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.4789, allocations: 15.98 kB / 411.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.412e-05/0.4789, allocations: 11.98 kB / 411.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.4789, allocations: 4 kB / 411.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000143/0.4791, allocations: 148.6 kB / 412 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4791, allocations: 0 / 412 MB, free: 13.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000317/0.4794, allocations: 79.69 kB / 412 MB, free: 13.3 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.0001366/0.4796, allocations: 107.2 kB / 412.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004181/0.48, allocations: 162.5 kB / 412.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.48, allocations: 0 / 412.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.4802, allocations: 75.84 kB / 412.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.4806, allocations: 36.17 kB / 412.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.4821, allocations: 0.8033 MB / 413.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.4826, allocations: 0.775 MB / 414 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.465e-05/0.4827, allocations: 25.89 kB / 414 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.374e-05/0.4828, allocations: 15.44 kB / 414 MB, free: 11.25 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4828, allocations: 0 / 414 MB, free: 11.25 MB / 334.1 MB Notification: Performance of Templates: time 0.006008/0.4888, allocations: 2.031 MB / 416.1 MB, free: 9.238 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