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.0009841/0.0009841, allocations: 180.2 kB / 16.38 MB, free: 5.762 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.323/1.323, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.001006/0.001006, allocations: 96.95 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002729, allocations: 7.984 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2413, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0969/0.3383, allocations: 79.4 MB / 480.9 MB, free: 1.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.3386, allocations: 75.91 kB / 481 MB, free: 1.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01345/0.352, allocations: 5.106 MB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3521, allocations: 0 / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.3521, allocations: 4 kB / 486.1 MB, free: 11.89 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.0009382/0.3531, allocations: 0.5768 MB / 486.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.3531, allocations: 8.031 kB / 486.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.3532, allocations: 35.62 kB / 486.7 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.3536, allocations: 250.6 kB / 486.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.3536, allocations: 24.61 kB / 487 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.3537, allocations: 39.91 kB / 487 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005187/0.3542, allocations: 274 kB / 487.3 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.3543, allocations: 0 / 487.3 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.3543, allocations: 16 kB / 487.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.3543, allocations: 8 kB / 487.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004395/0.3548, allocations: 214.5 kB / 487.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.3564, allocations: 0.9986 MB / 488.5 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003084/0.3567, allocations: 174.6 kB / 488.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.3567, allocations: 0 / 488.7 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.3568, allocations: 42.52 kB / 488.7 MB, free: 9.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.223e-06/0.3568, allocations: 0 / 488.7 MB, free: 9.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.000568/0.3574, allocations: 232.4 kB / 489 MB, free: 8.836 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.3574, allocations: 51.41 kB / 489 MB, free: 8.773 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.3576, allocations: 194 kB / 489.2 MB, free: 8.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3576, allocations: 29.7 kB / 489.2 MB, free: 8.543 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3578, allocations: 184.1 kB / 489.4 MB, free: 8.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.477e-05/0.3578, allocations: 74.98 kB / 489.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.976e-06/0.3579, allocations: 0 / 489.5 MB, free: 8.285 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.358, allocations: 338.8 kB / 489.8 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.3582, allocations: 63.97 kB / 489.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.3585, allocations: 122.5 kB / 490 MB, free: 7.742 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.3587, allocations: 87.84 kB / 490.1 MB, free: 7.656 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3587, allocations: 0 / 490.1 MB, free: 7.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004591/0.3591, allocations: 241.4 kB / 490.3 MB, free: 7.414 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3592, allocations: 8 kB / 490.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3592, allocations: 3.953 kB / 490.3 MB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3592, allocations: 4 kB / 490.3 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002766/0.3595, allocations: 68.02 kB / 490.4 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.3595, allocations: 4 kB / 490.4 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.3597, allocations: 31.73 kB / 490.4 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.3597, allocations: 8 kB / 490.4 MB, free: 7.289 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.000136/0.3598, allocations: 146.5 kB / 490.6 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.3599, allocations: 15.81 kB / 490.6 MB, free: 7.121 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004135/0.3603, allocations: 206.3 kB / 490.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3603, allocations: 0 / 490.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3603, allocations: 0 / 490.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3603, allocations: 11.98 kB / 490.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.3607, allocations: 317.4 kB / 491.1 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.3607, allocations: 4 kB / 491.1 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.361, allocations: 51.97 kB / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.361, allocations: 0 / 491.2 MB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.361, allocations: 4 kB / 491.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.361, allocations: 4 kB / 491.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.361, allocations: 0 / 491.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005821/0.3616, allocations: 367 kB / 491.5 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-05/0.3617, allocations: 100.9 kB / 491.6 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.3617, allocations: 4 kB / 491.6 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3619, allocations: 23.98 kB / 491.7 MB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.3619, allocations: 11.92 kB / 491.7 MB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.362, allocations: 8 kB / 491.7 MB, free: 5.938 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001168/0.3621, allocations: 148.6 kB / 491.8 MB, free: 5.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.432e-06/0.3621, allocations: 4 kB / 491.8 MB, free: 5.789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003108/0.3624, allocations: 83.62 kB / 491.9 MB, free: 5.707 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.0001511/0.3626, allocations: 119.2 kB / 492 MB, free: 5.582 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003669/0.3629, allocations: 155.9 kB / 492.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.363, allocations: 0 / 492.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.3631, allocations: 91.06 kB / 492.3 MB, free: 5.344 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.3634, allocations: 27.89 kB / 492.3 MB, free: 5.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.3648, allocations: 1.031 MB / 493.3 MB, free: 4.262 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003726/0.3652, allocations: 0.7715 MB / 494.1 MB, free: 3.457 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.934e-05/0.3653, allocations: 21.94 kB / 494.1 MB, free: 3.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.894e-05/0.3654, allocations: 15.44 kB / 494.1 MB, free: 3.414 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3654, allocations: 8 kB / 494.1 MB, free: 3.406 MB / 362.7 MB Notification: Performance of Templates: time 0.004765/0.3701, allocations: 1.771 MB / 495.9 MB, free: 1.652 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/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