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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.001469, allocations: 172.4 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 223.3 MB / 241.4 MB, free: 10.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008608/0.0008608, allocations: 89.48 kB / 292.6 MB, free: 10.61 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005423/0.0005423, allocations: 15.94 kB / 352.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3011, allocations: 50.4 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.4227, allocations: 79.44 MB / 482.2 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000354/0.4232, allocations: 71.97 kB / 482.3 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01321/0.4364, allocations: 5.104 MB / 487.4 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4364, allocations: 0 / 487.4 MB, free: 11.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.4365, allocations: 4 kB / 487.4 MB, free: 11.71 MB / 362.7 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.0008128/0.4373, allocations: 0.5692 MB / 487.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.4373, allocations: 8.031 kB / 487.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.231e-05/0.4374, allocations: 36.56 kB / 488 MB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.4377, allocations: 263.7 kB / 488.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.4378, allocations: 21.03 kB / 488.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/0.4378, allocations: 36.38 kB / 488.3 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.4383, allocations: 278.6 kB / 488.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.4384, allocations: 4.188 kB / 488.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.4384, allocations: 11.94 kB / 488.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4384, allocations: 8 kB / 488.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.4389, allocations: 218.4 kB / 488.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.4404, allocations: 1.003 MB / 489.8 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.4407, allocations: 171.9 kB / 490 MB, free: 8.926 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.4409, allocations: 80.77 kB / 490 MB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.4409, allocations: 7.938 kB / 490.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.4409, allocations: 38.55 kB / 490.1 MB, free: 8.789 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.453e-06/0.4409, allocations: 4 kB / 490.1 MB, free: 8.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005466/0.4415, allocations: 228.2 kB / 490.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.4415, allocations: 51.41 kB / 490.4 MB, free: 8.496 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.4418, allocations: 210.9 kB / 490.6 MB, free: 8.281 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.4418, allocations: 29.7 kB / 490.6 MB, free: 8.246 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.4419, allocations: 192 kB / 490.8 MB, free: 8.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.982e-05/0.442, allocations: 63.05 kB / 490.9 MB, free: 7.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.359e-05/0.442, allocations: 4 kB / 490.9 MB, free: 7.988 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.4421, allocations: 338.8 kB / 491.2 MB, free: 7.648 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.4423, allocations: 63.97 kB / 491.3 MB, free: 7.586 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.4425, allocations: 126.4 kB / 491.4 MB, free: 7.441 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.4428, allocations: 198.6 kB / 491.6 MB, free: 7.227 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4428, allocations: 0 / 491.6 MB, free: 7.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000441/0.4433, allocations: 261.1 kB / 491.8 MB, free: 6.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4433, allocations: 4 kB / 491.8 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4433, allocations: 4 kB / 491.8 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.4433, allocations: 0 / 491.8 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.4436, allocations: 63.91 kB / 491.9 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.4436, allocations: 4 kB / 491.9 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.4438, allocations: 23.83 kB / 491.9 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.4438, allocations: 12 kB / 491.9 MB, free: 6.855 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.4439, allocations: 145.8 kB / 492.1 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.444, allocations: 27.66 kB / 492.1 MB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/0.4444, allocations: 195.4 kB / 492.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4444, allocations: 8 kB / 492.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.4444, allocations: 0 / 492.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4444, allocations: 0 / 492.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.4448, allocations: 317.4 kB / 492.6 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.4448, allocations: 3.938 kB / 492.6 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002611/0.445, allocations: 47.97 kB / 492.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.445, allocations: 0 / 492.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.4451, allocations: 8 kB / 492.7 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.4451, allocations: 0 / 492.7 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4451, allocations: 3.984 kB / 492.7 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.4457, allocations: 378 kB / 493 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.4457, allocations: 100.8 kB / 493.1 MB, free: 5.551 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.4458, allocations: 4.062 kB / 493.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.4459, allocations: 19.92 kB / 493.2 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.891e-05/0.446, allocations: 15.98 kB / 493.2 MB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.446, allocations: 8.109 kB / 493.2 MB, free: 5.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001404/0.4462, allocations: 148.6 kB / 493.3 MB, free: 5.359 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4462, allocations: 4 kB / 493.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003192/0.4465, allocations: 75.69 kB / 493.4 MB, free: 5.281 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001749/0.4467, allocations: 103.3 kB / 493.5 MB, free: 5.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003959/0.4471, allocations: 180.4 kB / 493.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4471, allocations: 0 / 493.7 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.4473, allocations: 79.89 kB / 493.8 MB, free: 4.914 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.4476, allocations: 31.86 kB / 493.8 MB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.449, allocations: 1.034 MB / 494.8 MB, free: 3.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.4494, allocations: 0.7676 MB / 495.6 MB, free: 3.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.636e-05/0.4495, allocations: 21.94 kB / 495.6 MB, free: 3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.56e-05/0.4495, allocations: 23.38 kB / 495.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4495, allocations: 0 / 495.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of Templates: time 0.00451/0.4541, allocations: 1.796 MB / 497.4 MB, free: 1.203 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches