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.0009369/0.0009369, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.0009919/0.0009919, allocations: 169.2 kB / 24.82 MB, free: 8.934 MB / 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 0.9563/0.9563, allocations: 177.1 MB / 205.3 MB, free: 5.516 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 1.112e-06/1.112e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.22e-05/1.332e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00254/0.002554, allocations: 2.857 MB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008848/0.003438, allocations: 0.6932 MB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.003556, allocations: 11.94 kB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.00371, allocations: 55.44 kB / 277 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003631/0.004073, allocations: 99.05 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.004262, allocations: 91.81 kB / 277.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002519/0.004514, allocations: 390.2 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.004682, allocations: 105.8 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000257/0.004939, allocations: 223.5 kB / 277.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.005053, allocations: 119.6 kB / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.005087, allocations: 32 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.233e-05/0.005119, allocations: 32 kB / 278.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.891e-05/0.005158, allocations: 71.73 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.445e-05/0.005232, allocations: 123.7 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.005439, allocations: 243.1 kB / 278.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.005441, allocations: 3.938 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.005442, allocations: 0 / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.005445, allocations: 4 kB / 278.5 MB, free: 12.15 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.0005411/0.005986, allocations: 0.6363 MB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.006019, allocations: 12.03 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.00608, allocations: 68.69 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.00625, allocations: 200.1 kB / 279.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.006266, allocations: 21.03 kB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/0.006303, allocations: 40.38 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.006556, allocations: 246.7 kB / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.006565, allocations: 192 / 279.7 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.006582, allocations: 16.38 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.006591, allocations: 11.94 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.82e-05/0.006689, allocations: 84.45 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007684/0.007457, allocations: 0.825 MB / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.007588, allocations: 99.19 kB / 280.8 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.563e-05/0.007634, allocations: 51.58 kB / 280.8 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.429e-05/0.007648, allocations: 4 kB / 280.8 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.00767, allocations: 41.39 kB / 280.9 MB, free: 9.645 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.007671, allocations: 4 kB / 280.9 MB, free: 9.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.000181/0.007852, allocations: 132.2 kB / 281 MB, free: 9.508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.134e-05/0.007874, allocations: 59.41 kB / 281.1 MB, free: 9.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.007985, allocations: 247.9 kB / 281.3 MB, free: 9.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.007999, allocations: 29.7 kB / 281.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.585e-05/0.008085, allocations: 243 kB / 281.6 MB, free: 8.902 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.306e-05/0.008118, allocations: 63.42 kB / 281.6 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.19e-05/0.00817, allocations: 59.33 kB / 281.7 MB, free: 8.773 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.008288, allocations: 0.5039 MB / 282.2 MB, free: 8.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.049e-05/0.008319, allocations: 19.98 kB / 282.2 MB, free: 8.238 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.213e-05/0.008381, allocations: 101.8 kB / 282.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.008497, allocations: 137.6 kB / 282.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.008499, allocations: 0 / 282.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001659/0.008665, allocations: 173.3 kB / 282.6 MB, free: 7.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.008675, allocations: 4 kB / 282.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.008681, allocations: 4.125 kB / 282.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.008691, allocations: 7.938 kB / 282.6 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.008829, allocations: 59.91 kB / 282.7 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.658e-06/0.008833, allocations: 7.984 kB / 282.7 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.724e-05/0.008891, allocations: 15.94 kB / 282.7 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.008902, allocations: 15.98 kB / 282.7 MB, free: 7.656 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 7.765e-05/0.008979, allocations: 168.5 kB / 282.9 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.009007, allocations: 27.86 kB / 282.9 MB, free: 7.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.009145, allocations: 126.7 kB / 283 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.009148, allocations: 11.88 kB / 283.1 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-06/0.009149, allocations: 4 kB / 283.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.009152, allocations: 0 / 283.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.009312, allocations: 177.1 kB / 283.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.009313, allocations: 0 / 283.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.009448, allocations: 51.97 kB / 283.3 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.00945, allocations: 0 / 283.3 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.009461, allocations: 8 kB / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.009462, allocations: 0 / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.009463, allocations: 0 / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.009667, allocations: 311.6 kB / 283.6 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.009688, allocations: 27.8 kB / 283.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.009704, allocations: 8 kB / 283.6 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.077e-05/0.009775, allocations: 15.98 kB / 283.6 MB, free: 6.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.857e-05/0.009803, allocations: 7.984 kB / 283.7 MB, free: 6.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-06/0.009811, allocations: 15.86 kB / 283.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.613e-05/0.009867, allocations: 163.3 kB / 283.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009867, allocations: 0 / 283.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002032/0.01007, allocations: 75.78 kB / 283.9 MB, free: 6.422 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 7.085e-05/0.01014, allocations: 111.2 kB / 284 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.01052, allocations: 95.52 kB / 284.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01052, allocations: 0 / 284.1 MB, free: 6.207 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.581e-05/0.01056, allocations: 54.52 kB / 284.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.01076, allocations: 28.05 kB / 284.2 MB, free: 6.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009005/0.01166, allocations: 0.6929 MB / 284.9 MB, free: 5.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.943e-05/0.01171, allocations: 92.05 kB / 285 MB, free: 5.289 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.25e-05/0.01176, allocations: 21.62 kB / 285 MB, free: 5.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/0.01185, allocations: 102.2 kB / 285.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01185, allocations: 0 / 285.1 MB, free: 5.168 MB / 266.7 MB Notification: Performance of Templates: time 0.003761/0.01561, allocations: 1.938 MB / 287 MB, free: 3.262 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: 2.6631863419897854]