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.0008983/0.0008983, allocations: 92.28 kB / 17.31 MB, free: 6.531 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.001096/0.001096, allocations: 172.3 kB / 18.21 MB, free: 5.684 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.287/1.287, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002195/0.0002196, allocations: 8 kB / 302.1 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07372/0.07395, allocations: 50.41 MB / 352.5 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002636/0.07661, allocations: 2.549 MB / 355 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001016/0.07764, allocations: 0.6583 MB / 355.7 MB, free: 256 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.07782, allocations: 8 kB / 355.7 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.07797, allocations: 39.62 kB / 355.7 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.07815, allocations: 79.39 kB / 355.8 MB, free: 128 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002237/0.07838, allocations: 71.92 kB / 355.9 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.07874, allocations: 362.4 kB / 356.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.07898, allocations: 144.8 kB / 356.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.07916, allocations: 119.5 kB / 356.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.07934, allocations: 135.3 kB / 356.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.972e-05/0.07938, allocations: 16 kB / 356.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.051e-05/0.07943, allocations: 16 kB / 356.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.862e-05/0.07948, allocations: 51.77 kB / 356.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.07962, allocations: 172.9 kB / 356.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002319/0.07986, allocations: 279.4 kB / 357.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.07987, allocations: 0 / 357.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.07988, allocations: 4 kB / 357.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.07989, allocations: 0 / 357.2 MB, free: 14.77 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.000785/0.08068, allocations: 0.5615 MB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.08072, allocations: 12.03 kB / 357.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.08079, allocations: 32.56 kB / 357.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002535/0.08105, allocations: 259.7 kB / 358 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.08108, allocations: 29.03 kB / 358.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.08114, allocations: 28.38 kB / 358.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.08168, allocations: 282.3 kB / 358.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.0817, allocations: 7.938 kB / 358.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.08174, allocations: 16 kB / 358.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.08175, allocations: 8 kB / 358.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.08223, allocations: 214.5 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.08363, allocations: 0.9869 MB / 359.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.08396, allocations: 170.6 kB / 359.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.08416, allocations: 81.14 kB / 359.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.08419, allocations: 3.906 kB / 359.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.08422, allocations: 38.56 kB / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.492e-06/0.08422, allocations: 0 / 359.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005652/0.08479, allocations: 229.3 kB / 360.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.08483, allocations: 59.34 kB / 360.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.08502, allocations: 203 kB / 360.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.08505, allocations: 37.7 kB / 360.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.08516, allocations: 188 kB / 360.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.788e-05/0.08521, allocations: 67.09 kB / 360.6 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.08525, allocations: 25.7 kB / 360.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.08536, allocations: 334.8 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.08554, allocations: 59.97 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.08574, allocations: 122 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.08611, allocations: 201.8 kB / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.08613, allocations: 0 / 361.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004813/0.08661, allocations: 257 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.08664, allocations: 8 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.08665, allocations: 0 / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.08667, allocations: 7.984 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.08694, allocations: 64.03 kB / 361.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.08696, allocations: 4 kB / 361.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.08712, allocations: 31.77 kB / 361.7 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.08715, allocations: 12 kB / 361.7 MB, free: 9.902 MB / 302.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.0001214/0.08728, allocations: 141.7 kB / 361.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.559e-05/0.08733, allocations: 19.72 kB / 361.9 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004238/0.08776, allocations: 210.1 kB / 362.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.08777, allocations: 0 / 362.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.08778, allocations: 0 / 362.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.08779, allocations: 4 kB / 362.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003209/0.08811, allocations: 321.3 kB / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.08813, allocations: 0 / 362.4 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002854/0.08842, allocations: 63.97 kB / 362.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.08843, allocations: 3.938 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.08845, allocations: 0 / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.08846, allocations: 4 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.08846, allocations: 0 / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.08905, allocations: 367 kB / 362.9 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.08912, allocations: 96.91 kB / 362.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/0.08915, allocations: 4.062 kB / 363 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.08934, allocations: 19.98 kB / 363 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.08939, allocations: 15.98 kB / 363 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.08941, allocations: 4 kB / 363 MB, free: 8.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001207/0.08953, allocations: 148.6 kB / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08954, allocations: 0 / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.08987, allocations: 75.69 kB / 363.2 MB, free: 8.34 MB / 302.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 9.306e-05/0.08997, allocations: 110.5 kB / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.09037, allocations: 179.9 kB / 363.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.09038, allocations: 0 / 363.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.09056, allocations: 80.16 kB / 363.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.09091, allocations: 30.5 kB / 363.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.09225, allocations: 1.094 MB / 364.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.09253, allocations: 0.7676 MB / 365.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.003e-05/0.0926, allocations: 19.44 kB / 365.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.0926, allocations: 0 / 365.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of Templates: time 0.004416/0.09703, allocations: 2.844 MB / 368.3 MB, free: 3.16 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/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