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.001368/0.001368, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000829/0.000829, allocations: 94.03 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.57e-05/1.572e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09143/0.09146, allocations: 50.42 MB / 387.5 MB, free: 7.578 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4049, allocations: 78.67 MB / 466.1 MB, free: 200 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.4051, allocations: 75.95 kB / 466.2 MB, free: 124 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01316/0.4183, allocations: 5.055 MB / 471.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4183, allocations: 4.75 kB / 471.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.4184, allocations: 8 kB / 471.3 MB, free: 11.04 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.0007923/0.4192, allocations: 0.538 MB / 471.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4192, allocations: 8.031 kB / 471.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.4193, allocations: 35.53 kB / 471.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.4197, allocations: 250.6 kB / 472.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.348e-05/0.4197, allocations: 15.95 kB / 472.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.992e-05/0.4197, allocations: 16 kB / 472.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003111/0.4201, allocations: 161.5 kB / 472.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.4205, allocations: 210.2 kB / 472.5 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4205, allocations: 0 / 472.5 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.4205, allocations: 4 kB / 472.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.4206, allocations: 11.98 kB / 472.5 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.4223, allocations: 0.9397 MB / 473.4 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002337/0.4226, allocations: 130.7 kB / 473.6 MB, free: 8.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.364e-05/0.4227, allocations: 58.42 kB / 473.6 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.4227, allocations: 4 kB / 473.6 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.4227, allocations: 30.56 kB / 473.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.4227, allocations: 4 kB / 473.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002985/0.423, allocations: 137.6 kB / 473.8 MB, free: 8.328 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.4231, allocations: 51.41 kB / 473.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.4233, allocations: 161.5 kB / 474 MB, free: 8.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.4233, allocations: 29.7 kB / 474 MB, free: 8.066 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4234, allocations: 195.7 kB / 474.2 MB, free: 7.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.4235, allocations: 63.09 kB / 474.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.4235, allocations: 0 / 474.3 MB, free: 7.805 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4236, allocations: 326.8 kB / 474.6 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.577e-05/0.4237, allocations: 44 kB / 474.7 MB, free: 7.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.4238, allocations: 95 kB / 474.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.4239, allocations: 61.66 kB / 474.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.424, allocations: 4 kB / 474.8 MB, free: 7.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002753/0.4242, allocations: 189.2 kB / 475 MB, free: 7.066 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.4243, allocations: 8 kB / 475 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4243, allocations: 0 / 475 MB, free: 7.059 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.4243, allocations: 4 kB / 475 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.4246, allocations: 63.86 kB / 475.1 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.4246, allocations: 4 kB / 475.1 MB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.4247, allocations: 27.89 kB / 475.1 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.4248, allocations: 15.94 kB / 475.1 MB, free: 6.945 MB / 346.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 () * 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 8.72e-05/0.4249, allocations: 108.9 kB / 475.2 MB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.4249, allocations: 15.81 kB / 475.2 MB, free: 6.816 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000248/0.4251, allocations: 147.5 kB / 475.4 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.84e-06/0.4252, allocations: 8.031 kB / 475.4 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4252, allocations: 0 / 475.4 MB, free: 6.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.4252, allocations: 7.938 kB / 475.4 MB, free: 6.652 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.4255, allocations: 265.9 kB / 475.7 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4255, allocations: 3.984 kB / 475.7 MB, free: 6.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.4258, allocations: 59.91 kB / 475.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4258, allocations: 0 / 475.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.4258, allocations: 0 / 475.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.4258, allocations: 4 kB / 475.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.4258, allocations: 0 / 475.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.4262, allocations: 297.4 kB / 476 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.4263, allocations: 92.92 kB / 476.1 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.4263, allocations: 0 / 476.1 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.4265, allocations: 15.98 kB / 476.1 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.357e-05/0.4265, allocations: 12.05 kB / 476.1 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/0.4265, allocations: 4 kB / 476.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.889e-05/0.4266, allocations: 140.4 kB / 476.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4267, allocations: 0 / 476.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003107/0.427, allocations: 79.62 kB / 476.3 MB, free: 5.629 MB / 346.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 () * 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.000142/0.4271, allocations: 103.4 kB / 476.5 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.4273, allocations: 123.8 kB / 476.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4273, allocations: 0 / 476.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.712e-05/0.4274, allocations: 59.94 kB / 476.6 MB, free: 5.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.4277, allocations: 24.41 kB / 476.7 MB, free: 5.316 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.4287, allocations: 0.6712 MB / 477.3 MB, free: 4.621 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.4291, allocations: 0.7714 MB / 478.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.108e-05/0.4292, allocations: 21.83 kB / 478.1 MB, free: 3.801 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.446e-05/0.4292, allocations: 19.44 kB / 478.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4292, allocations: 0 / 478.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of Templates: time 0.003927/0.4332, allocations: 1.535 MB / 479.7 MB, free: 2.262 MB / 346.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/jenkins/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