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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00076/0.00076, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003468/0.003468, allocations: 146 kB / 24.68 MB, free: 9.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8051/0.8051, allocations: 173.4 MB / 201.2 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.019e-05/3.186e-05, allocations: 2.281 kB / 319.7 MB, free: 5.84 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.002598/0.00263, allocations: 2.689 MB / 322.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009616/0.003591, allocations: 0.6505 MB / 323 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.003725, allocations: 11.94 kB / 323 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.003884, allocations: 59.38 kB / 323.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.004011, allocations: 99.11 kB / 323.2 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.004244, allocations: 91.75 kB / 323.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.004528, allocations: 390.2 kB / 323.7 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.004717, allocations: 105.8 kB / 323.8 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.004959, allocations: 223.5 kB / 324 MB, free: 1.516 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.005082, allocations: 111.7 kB / 324.1 MB, free: 1.406 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.005123, allocations: 32 kB / 324.1 MB, free: 1.375 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.879e-05/0.005152, allocations: 36 kB / 324.2 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.005195, allocations: 75.73 kB / 324.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.33e-05/0.005268, allocations: 111.8 kB / 324.3 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003008/0.005569, allocations: 386.7 kB / 324.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.005572, allocations: 0 / 324.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005574, allocations: 0 / 324.7 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.005578, allocations: 0 / 324.7 MB, free: 0.7773 MB / 282.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.0006564/0.006235, allocations: 0.5404 MB / 325.3 MB, free: 212 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.006272, allocations: 12.92 kB / 325.3 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.75e-05/0.006329, allocations: 36.7 kB / 325.3 MB, free: 164 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.006635, allocations: 205.6 kB / 325.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.006655, allocations: 25.03 kB / 325.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.006696, allocations: 36.33 kB / 325.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.007134, allocations: 326 kB / 325.9 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.007145, allocations: 4.188 kB / 325.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.007167, allocations: 15.92 kB / 325.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.007174, allocations: 12 kB / 325.9 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002555/0.007429, allocations: 198.5 kB / 326.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008839/0.008313, allocations: 0.8018 MB / 326.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.008528, allocations: 150.6 kB / 327.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.076e-05/0.008619, allocations: 69.14 kB / 327.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.008634, allocations: 4 kB / 327.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.008659, allocations: 42.41 kB / 327.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.674e-06/0.00866, allocations: 4 kB / 327.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003554/0.009016, allocations: 212.3 kB / 327.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.009047, allocations: 55.34 kB / 327.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.009316, allocations: 190.3 kB / 327.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.009331, allocations: 29.7 kB / 327.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/0.009411, allocations: 196.3 kB / 327.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.009448, allocations: 75.34 kB / 327.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.993e-05/0.009498, allocations: 45.67 kB / 328 MB, free: 13.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.731e-05/0.009575, allocations: 334.8 kB / 328.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9e-05/0.009665, allocations: 59.97 kB / 328.4 MB, free: 12.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.009775, allocations: 121.9 kB / 328.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.009975, allocations: 185.8 kB / 328.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.009977, allocations: 4 kB / 328.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002613/0.01024, allocations: 237.3 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.01025, allocations: 11.94 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.01026, allocations: 0 / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.01027, allocations: 4 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.01043, allocations: 59.91 kB / 329 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.01043, allocations: 4 kB / 329 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/0.0105, allocations: 31.95 kB / 329 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.01051, allocations: 8 kB / 329 MB, free: 12.24 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 8.794e-05/0.0106, allocations: 141.7 kB / 329.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.468e-05/0.01063, allocations: 23.84 kB / 329.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002408/0.01087, allocations: 193.5 kB / 329.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01087, allocations: 0 / 329.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.01088, allocations: 0 / 329.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.01088, allocations: 4 kB / 329.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001741/0.01105, allocations: 217.2 kB / 329.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.01106, allocations: 0 / 329.6 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.0112, allocations: 47.97 kB / 329.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.0112, allocations: 0 / 329.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.01122, allocations: 11.94 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.01122, allocations: 0 / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01122, allocations: 4 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.01156, allocations: 355.1 kB / 330 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.127e-05/0.01158, allocations: 19.97 kB / 330 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.0116, allocations: 3.938 kB / 330 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.823e-05/0.01168, allocations: 15.98 kB / 330 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.01171, allocations: 15.97 kB / 330 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.01172, allocations: 8 kB / 330 MB, free: 11.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.131e-05/0.01179, allocations: 132.4 kB / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01179, allocations: 0 / 330.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002011/0.01199, allocations: 79.73 kB / 330.3 MB, free: 10.94 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 9.782e-05/0.01209, allocations: 111.2 kB / 330.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.01232, allocations: 143.9 kB / 330.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01232, allocations: 4 kB / 330.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.1e-05/0.0124, allocations: 66.83 kB / 330.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002235/0.01262, allocations: 36.16 kB / 330.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.01367, allocations: 0.7192 MB / 331.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.952e-05/0.01376, allocations: 159.4 kB / 331.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.813e-05/0.0138, allocations: 24.5 kB / 331.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.0138, allocations: 0 / 331.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of Templates: time 0.002978/0.01678, allocations: 2.948 MB / 334.5 MB, free: 6.672 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",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.9871661504730582]