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.001575/0.001575, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.591/1.591, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001073/0.001073, allocations: 110.6 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009503/0.0009505, allocations: 39.94 kB / 350 MB, free: 60 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3363, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004506/0.3409, allocations: 2.932 MB / 402.4 MB, free: 30.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.3422, allocations: 0.6535 MB / 403.1 MB, free: 29.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.3424, allocations: 8 kB / 403.1 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.3427, allocations: 43.62 kB / 403.1 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001828/0.3429, allocations: 75.44 kB / 403.2 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.3432, allocations: 79.88 kB / 403.3 MB, free: 29.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.3436, allocations: 370.4 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003045/0.3439, allocations: 128.9 kB / 403.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.3442, allocations: 131.5 kB / 403.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.3443, allocations: 151.3 kB / 404 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.765e-05/0.3444, allocations: 27.98 kB / 404.1 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.181e-05/0.3445, allocations: 20 kB / 404.1 MB, free: 28.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.429e-05/0.3445, allocations: 59.7 kB / 404.1 MB, free: 28.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001995/0.3447, allocations: 159.2 kB / 404.3 MB, free: 28.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.3451, allocations: 368.2 kB / 404.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.001e-05/0.3451, allocations: 0 / 404.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3451, allocations: 3.938 kB / 404.7 MB, free: 28.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3451, allocations: 0 / 404.7 MB, free: 28.16 MB / 298.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.001112/0.3463, allocations: 0.6083 MB / 405.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.3463, allocations: 12.03 kB / 405.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.507e-05/0.3464, allocations: 36.56 kB / 405.3 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.3468, allocations: 259.7 kB / 405.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.334e-05/0.3468, allocations: 21.03 kB / 405.6 MB, free: 27.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.553e-05/0.3469, allocations: 36.38 kB / 405.6 MB, free: 27.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.3474, allocations: 274.4 kB / 405.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.3475, allocations: 0 / 405.9 MB, free: 26.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.3475, allocations: 12 kB / 405.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.3475, allocations: 8 kB / 405.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004556/0.348, allocations: 218.4 kB / 406.1 MB, free: 26.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.3494, allocations: 0.9674 MB / 407.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.3497, allocations: 170.5 kB / 407.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.3499, allocations: 80.77 kB / 407.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.3499, allocations: 0 / 407.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.35, allocations: 38.5 kB / 407.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.062e-06/0.35, allocations: 0 / 407.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005175/0.3505, allocations: 209.6 kB / 407.6 MB, free: 25.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.3505, allocations: 59.41 kB / 407.6 MB, free: 24.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.3507, allocations: 210.9 kB / 407.8 MB, free: 24.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.3507, allocations: 25.7 kB / 407.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.947e-05/0.3508, allocations: 192 kB / 408.1 MB, free: 24.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.76e-05/0.3509, allocations: 63.09 kB / 408.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.902e-05/0.351, allocations: 45.7 kB / 408.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.482e-05/0.351, allocations: 338.8 kB / 408.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.3512, allocations: 59.97 kB / 408.5 MB, free: 24.03 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.3514, allocations: 118.4 kB / 408.7 MB, free: 23.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.3517, allocations: 181.8 kB / 408.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3517, allocations: 0 / 408.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003808/0.3521, allocations: 253 kB / 409.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3521, allocations: 10.64 kB / 409.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3521, allocations: 0 / 409.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.3521, allocations: 4 kB / 409.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.3524, allocations: 63.91 kB / 409.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.3524, allocations: 4 kB / 409.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.3525, allocations: 27.73 kB / 409.2 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.3526, allocations: 11.98 kB / 409.2 MB, free: 23.32 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.3527, allocations: 153.8 kB / 409.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.3528, allocations: 15.81 kB / 409.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003626/0.3531, allocations: 183.4 kB / 409.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3531, allocations: 4.047 kB / 409.6 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.3532, allocations: 7.984 kB / 409.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3532, allocations: 0 / 409.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.3535, allocations: 325.3 kB / 409.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3535, allocations: 4 kB / 409.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.3537, allocations: 51.91 kB / 409.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3537, allocations: 0 / 409.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.3538, allocations: 4 kB / 409.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.3538, allocations: 4 kB / 409.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3538, allocations: 0 / 409.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.3562, allocations: 2.076 MB / 412 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/0.3563, allocations: 100.9 kB / 412.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3563, allocations: 8 kB / 412.1 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.3565, allocations: 15.98 kB / 412.1 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.991e-05/0.3566, allocations: 11.98 kB / 412.2 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.3566, allocations: 4 kB / 412.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001079/0.3567, allocations: 156.5 kB / 412.3 MB, free: 19.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3567, allocations: 0 / 412.3 MB, free: 19.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003953/0.3571, allocations: 99.69 kB / 412.4 MB, free: 19.89 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001474/0.3573, allocations: 107.2 kB / 412.5 MB, free: 19.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003608/0.3577, allocations: 159.8 kB / 412.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.3577, allocations: 0 / 412.7 MB, free: 19.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.3578, allocations: 75.89 kB / 412.7 MB, free: 19.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.3583, allocations: 23.94 kB / 412.8 MB, free: 19.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3598, allocations: 1.132 MB / 413.9 MB, free: 18.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.3601, allocations: 0.7719 MB / 414.7 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.3602, allocations: 25.95 kB / 414.7 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.3603, allocations: 23.42 kB / 414.7 MB, free: 17.5 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3603, allocations: 3.938 kB / 414.7 MB, free: 17.5 MB / 298.7 MB Notification: Performance of Templates: time 0.006127/0.3664, allocations: 2.313 MB / 417 MB, free: 15.21 MB / 298.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@2/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