Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 79.58 kB / 21.18 MB, free: 3.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 161 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.028/1.028, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.304e-05/3.528e-05, allocations: 2.312 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.005004/0.005039, allocations: 2.908 MB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.006454, allocations: 0.6932 MB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.006625, allocations: 8 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.006856, allocations: 63.42 kB / 276.7 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.007034, allocations: 91.08 kB / 276.7 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003875/0.007422, allocations: 95.8 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000478/0.0079, allocations: 386.2 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003422/0.008242, allocations: 105.8 kB / 277.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005849/0.008827, allocations: 231.5 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.009041, allocations: 111.6 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.009096, allocations: 32 kB / 277.7 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.009141, allocations: 32 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.816e-05/0.00921, allocations: 75.73 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.009322, allocations: 115.7 kB / 277.9 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.009671, allocations: 255 kB / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.009675, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.009677, allocations: 0 / 278.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.009683, allocations: 4 kB / 278.2 MB, free: 12.3 MB / 266.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.0007519/0.01043, allocations: 0.6286 MB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.01048, allocations: 12.03 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.22e-05/0.01057, allocations: 60.7 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002798/0.01085, allocations: 204.1 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.01088, allocations: 25.03 kB / 279.1 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.01093, allocations: 36.38 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.0113, allocations: 278.7 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.01131, allocations: 192 / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.01133, allocations: 12.38 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.01135, allocations: 11.94 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001677/0.01151, allocations: 103.9 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.01258, allocations: 0.8674 MB / 280.4 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.01281, allocations: 111.1 kB / 280.5 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.392e-05/0.01289, allocations: 47.67 kB / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.01291, allocations: 4 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.01294, allocations: 41.38 kB / 280.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.664e-06/0.01295, allocations: 4 kB / 280.6 MB, free: 9.703 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003058/0.01325, allocations: 155.8 kB / 280.7 MB, free: 9.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.0133, allocations: 51.41 kB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.01348, allocations: 244.1 kB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.0135, allocations: 29.7 kB / 281.1 MB, free: 9.195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.01362, allocations: 247 kB / 281.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.003e-05/0.01366, allocations: 67.42 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/0.01373, allocations: 55.36 kB / 281.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.01388, allocations: 0.4962 MB / 281.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.827e-05/0.01394, allocations: 27.98 kB / 281.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.01406, allocations: 109.8 kB / 282 MB, free: 8.148 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.01422, allocations: 145.5 kB / 282.2 MB, free: 7.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.01423, allocations: 4 kB / 282.2 MB, free: 7.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002305/0.01446, allocations: 185.3 kB / 282.4 MB, free: 7.785 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.01448, allocations: 4 kB / 282.4 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.01449, allocations: 4.062 kB / 282.4 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.01451, allocations: 8 kB / 282.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.0147, allocations: 59.91 kB / 282.4 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.01471, allocations: 7.984 kB / 282.5 MB, free: 7.703 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.077e-05/0.01477, allocations: 19.83 kB / 282.5 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.01478, allocations: 12 kB / 282.5 MB, free: 7.672 MB / 266.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 9.542e-05/0.01488, allocations: 160.6 kB / 282.6 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.509e-05/0.01491, allocations: 27.86 kB / 282.7 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002106/0.01512, allocations: 150.5 kB / 282.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.01513, allocations: 4 kB / 282.8 MB, free: 7.324 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.01513, allocations: 4 kB / 282.8 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.01513, allocations: 0 / 282.8 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.01533, allocations: 220.5 kB / 283 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01533, allocations: 0 / 283 MB, free: 7.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.01549, allocations: 47.92 kB / 283.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.01549, allocations: 3.984 kB / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.01551, allocations: 4 kB / 283.1 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.01551, allocations: 3.938 kB / 283.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.01551, allocations: 4 kB / 283.1 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.01581, allocations: 315.7 kB / 283.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.498e-05/0.01583, allocations: 27.8 kB / 283.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.01585, allocations: 0 / 283.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.01594, allocations: 27.86 kB / 283.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.01599, allocations: 11.98 kB / 283.5 MB, free: 6.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.016, allocations: 4 kB / 283.5 MB, free: 6.609 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.645e-05/0.01609, allocations: 171.3 kB / 283.6 MB, free: 6.441 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01609, allocations: 0 / 283.6 MB, free: 6.441 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002829/0.01637, allocations: 79.78 kB / 283.7 MB, free: 6.363 MB / 266.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.0001251/0.01649, allocations: 107.2 kB / 283.8 MB, free: 6.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000211/0.0167, allocations: 115.9 kB / 283.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.01671, allocations: 0 / 283.9 MB, free: 6.133 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.456e-05/0.01678, allocations: 62.52 kB / 284 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.01709, allocations: 28.05 kB / 284 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001286/0.01838, allocations: 0.6852 MB / 284.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.34e-05/0.01844, allocations: 88.06 kB / 284.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.808e-05/0.0185, allocations: 21.62 kB / 284.8 MB, free: 5.199 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.01855, allocations: 16.5 kB / 284.8 MB, free: 5.184 MB / 266.7 MB Notification: Performance of SimCode: time 1.022e-06/0.01855, allocations: 0 / 284.8 MB, free: 5.184 MB / 266.7 MB Notification: Performance of Templates: time 0.004996/0.02355, allocations: 1.788 MB / 286.6 MB, free: 3.426 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2951606079004705]