Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001011/0.001012, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008205/0.0008206, allocations: 95.59 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.916e-05/1.941e-05, allocations: 4 kB / 343.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09844, allocations: 51.48 MB / 395.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.4276, allocations: 79.46 MB / 474.6 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.4278, allocations: 66.59 kB / 474.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01225/0.44, allocations: 5.154 MB / 479.8 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4401, allocations: 0 / 479.8 MB, free: 9.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.4401, allocations: 11.98 kB / 479.9 MB, free: 9.359 MB / 346.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.0006142/0.4407, allocations: 0.5453 MB / 480.4 MB, free: 8.793 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.4408, allocations: 8.031 kB / 480.4 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.385e-05/0.4409, allocations: 40.39 kB / 480.5 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.4411, allocations: 266.2 kB / 480.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.4411, allocations: 14.94 kB / 480.7 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.4412, allocations: 20 kB / 480.7 MB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002684/0.4414, allocations: 167.3 kB / 480.9 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.4418, allocations: 209.9 kB / 481.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.4418, allocations: 3.719 kB / 481.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.4418, allocations: 0 / 481.1 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.4418, allocations: 8 kB / 481.1 MB, free: 8.172 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.4431, allocations: 0.994 MB / 482.1 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.4433, allocations: 139.6 kB / 482.3 MB, free: 7.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00015/0.4434, allocations: 110.3 kB / 482.4 MB, free: 7.117 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.4435, allocations: 3.984 kB / 482.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.4435, allocations: 34.56 kB / 482.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.4435, allocations: 0 / 482.4 MB, free: 7.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.0002337/0.4437, allocations: 135.2 kB / 482.5 MB, free: 6.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.638e-05/0.4438, allocations: 59.41 kB / 482.6 MB, free: 6.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.4439, allocations: 163.6 kB / 482.8 MB, free: 6.738 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.4439, allocations: 25.7 kB / 482.8 MB, free: 6.707 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.454e-05/0.444, allocations: 198.7 kB / 483 MB, free: 6.531 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.444, allocations: 66.25 kB / 483 MB, free: 6.473 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.027e-06/0.444, allocations: 0 / 483 MB, free: 6.473 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.92e-05/0.4441, allocations: 333.7 kB / 483.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.26e-05/0.4442, allocations: 46.56 kB / 483.4 MB, free: 6.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.6e-05/0.4443, allocations: 123.5 kB / 483.5 MB, free: 5.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.488e-05/0.4444, allocations: 71.78 kB / 483.6 MB, free: 5.945 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4444, allocations: 3.469 kB / 483.6 MB, free: 5.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002544/0.4446, allocations: 214.9 kB / 483.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.4447, allocations: 4 kB / 483.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4447, allocations: 4 kB / 483.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4447, allocations: 8.25 kB / 483.8 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.445, allocations: 75.33 kB / 483.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.445, allocations: 4 kB / 483.9 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.4451, allocations: 23.83 kB / 483.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.4452, allocations: 11.5 kB / 483.9 MB, free: 5.645 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.547e-05/0.4452, allocations: 112.9 kB / 484 MB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.4453, allocations: 23.77 kB / 484.1 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002204/0.4455, allocations: 169.8 kB / 484.2 MB, free: 5.371 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.4455, allocations: 4 kB / 484.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4455, allocations: 0 / 484.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4455, allocations: 0 / 484.2 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004547/0.446, allocations: 0.508 MB / 484.8 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.446, allocations: 4 kB / 484.8 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002741/0.4463, allocations: 62.22 kB / 484.8 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.4463, allocations: 3.953 kB / 484.8 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.4463, allocations: 4 kB / 484.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.4463, allocations: 0 / 484.8 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4463, allocations: 4 kB / 484.8 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002861/0.4466, allocations: 341.9 kB / 485.2 MB, free: 4.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.4467, allocations: 96.84 kB / 485.3 MB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.4467, allocations: 4 kB / 485.3 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.4469, allocations: 19.92 kB / 485.3 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.4469, allocations: 11.98 kB / 485.3 MB, free: 4.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.4469, allocations: 11.94 kB / 485.3 MB, free: 4.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.104e-05/0.447, allocations: 140.1 kB / 485.4 MB, free: 4.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.447, allocations: 0 / 485.4 MB, free: 4.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003046/0.4473, allocations: 75.67 kB / 485.5 MB, free: 4.156 MB / 346.7 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 () * 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 (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.0001177/0.4475, allocations: 112.1 kB / 485.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001985/0.4477, allocations: 135.2 kB / 485.8 MB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4477, allocations: 4.125 kB / 485.8 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.562e-05/0.4477, allocations: 62.33 kB / 485.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.448, allocations: 24.2 kB / 485.8 MB, free: 3.883 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/0.4489, allocations: 0.6779 MB / 486.5 MB, free: 3.227 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.4491, allocations: 0.7711 MB / 487.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.612e-05/0.4492, allocations: 30.05 kB / 487.3 MB, free: 2.398 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.859e-05/0.4492, allocations: 19.44 kB / 487.3 MB, free: 2.379 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4492, allocations: 0 / 487.3 MB, free: 2.379 MB / 346.7 MB Notification: Performance of Templates: time 0.003712/0.453, allocations: 1.582 MB / 488.9 MB, free: 0.8594 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches