Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001168/0.001168, allocations: 91.5 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9253/0.9253, allocations: 177 MB / 204.8 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/2.013e-05, allocations: 2.312 kB / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.006227/0.006247, allocations: 2.905 MB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.007397, allocations: 0.6971 MB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.007513, allocations: 11.94 kB / 276.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.007681, allocations: 59.36 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001286/0.00781, allocations: 91.14 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.008034, allocations: 87.86 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.008314, allocations: 386.2 kB / 277.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.008493, allocations: 117.8 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003373/0.008831, allocations: 227.4 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.008962, allocations: 111.7 kB / 277.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.699e-05/0.008999, allocations: 32 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.613e-05/0.009035, allocations: 32 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.009078, allocations: 75.73 kB / 277.7 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.009305, allocations: 119.7 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.009566, allocations: 247 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.009568, allocations: 0 / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.009569, allocations: 4 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.009575, allocations: 3.938 kB / 278.1 MB, free: 12.21 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.0006049/0.01018, allocations: 0.6325 MB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.01022, allocations: 11.98 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.01029, allocations: 60.7 kB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.01054, allocations: 212.1 kB / 279 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.01055, allocations: 25.03 kB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.02e-05/0.01059, allocations: 36.38 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.0109, allocations: 270.7 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.01091, allocations: 192 / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.01093, allocations: 12.38 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.01094, allocations: 11.94 kB / 279.4 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001534/0.01109, allocations: 107.9 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008937/0.01199, allocations: 0.8674 MB / 280.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.01216, allocations: 115.1 kB / 280.4 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.57e-05/0.01223, allocations: 46.8 kB / 280.5 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.01225, allocations: 4 kB / 280.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.01228, allocations: 45.38 kB / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.01228, allocations: 0 / 280.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.000262/0.01254, allocations: 145.7 kB / 280.7 MB, free: 9.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.01257, allocations: 59.41 kB / 280.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.01272, allocations: 247 kB / 281 MB, free: 9.125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.01273, allocations: 25.7 kB / 281 MB, free: 9.094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.032e-05/0.01282, allocations: 247 kB / 281.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002826/0.0131, allocations: 71.42 kB / 281.3 MB, free: 8.777 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.01315, allocations: 43.36 kB / 281.4 MB, free: 8.727 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.01326, allocations: 0.5001 MB / 281.9 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.781e-05/0.01331, allocations: 27.98 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.898e-05/0.01339, allocations: 113.6 kB / 282 MB, free: 8.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.01352, allocations: 141.7 kB / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01353, allocations: 0 / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001906/0.01372, allocations: 185.3 kB / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.01373, allocations: 8 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.01373, allocations: 8.062 kB / 282.3 MB, free: 7.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.01375, allocations: 4 kB / 282.3 MB, free: 7.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.01389, allocations: 55.91 kB / 282.4 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.0139, allocations: 7.984 kB / 282.4 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.975e-05/0.01396, allocations: 19.89 kB / 282.4 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.01397, allocations: 12 kB / 282.4 MB, free: 7.578 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.708e-05/0.01405, allocations: 168.5 kB / 282.6 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.01408, allocations: 27.86 kB / 282.6 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.01424, allocations: 140 kB / 282.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.01424, allocations: 8 kB / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.01424, allocations: 0 / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.01425, allocations: 0 / 282.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001748/0.01442, allocations: 220.5 kB / 283 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01442, allocations: 0 / 283 MB, free: 6.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001357/0.01456, allocations: 47.92 kB / 283 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.01456, allocations: 3.984 kB / 283 MB, free: 6.926 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.01458, allocations: 8 kB / 283 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.01458, allocations: 7.875 kB / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.01458, allocations: 0 / 283 MB, free: 6.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002406/0.01482, allocations: 330.9 kB / 283.4 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.776e-05/0.01484, allocations: 19.8 kB / 283.4 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.01486, allocations: 8 kB / 283.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.108e-05/0.01493, allocations: 23.86 kB / 283.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.01497, allocations: 12.03 kB / 283.4 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.01498, allocations: 7.984 kB / 283.4 MB, free: 6.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.247e-05/0.01505, allocations: 171.1 kB / 283.6 MB, free: 6.332 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01505, allocations: 0 / 283.6 MB, free: 6.332 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000197/0.01525, allocations: 75.78 kB / 283.7 MB, free: 6.258 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 6.827e-05/0.01532, allocations: 99.25 kB / 283.8 MB, free: 6.152 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.01549, allocations: 115.5 kB / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.01549, allocations: 0 / 283.9 MB, free: 6.035 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.373e-05/0.01554, allocations: 55.59 kB / 283.9 MB, free: 5.977 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000196/0.01574, allocations: 27.92 kB / 284 MB, free: 5.949 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009489/0.01669, allocations: 0.7001 MB / 284.7 MB, free: 5.223 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.114e-05/0.01674, allocations: 92.14 kB / 284.8 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.89e-05/0.01679, allocations: 17.62 kB / 284.8 MB, free: 5.094 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.01683, allocations: 20.5 kB / 284.8 MB, free: 5.074 MB / 266.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01683, allocations: 4 kB / 284.8 MB, free: 5.07 MB / 266.7 MB Notification: Performance of Templates: time 0.003624/0.02045, allocations: 1.852 MB / 286.7 MB, free: 3.242 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.7956216079182923]