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.001288/0.001288, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009492/0.0009492, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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.8956/0.8956, allocations: 177 MB / 205.2 MB, free: 5.059 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.803e-06/1.803e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.731e-05/2.912e-05, allocations: 6.312 kB / 273.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004735/0.004764, allocations: 2.871 MB / 276.3 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.006557, allocations: 0.7124 MB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002442/0.006801, allocations: 11.94 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.00704, allocations: 59.38 kB / 277.1 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.007309, allocations: 95.14 kB / 277.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.007651, allocations: 87.86 kB / 277.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.008115, allocations: 390.2 kB / 277.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.008371, allocations: 108.4 kB / 277.7 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004663/0.008838, allocations: 235.4 kB / 278 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.009036, allocations: 115.7 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.009096, allocations: 36 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.997e-05/0.009146, allocations: 32 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-05/0.009215, allocations: 75.69 kB / 278.2 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.00934, allocations: 115.7 kB / 278.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003441/0.009684, allocations: 243.1 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.009689, allocations: 4 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.00969, allocations: 3.938 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.009699, allocations: 0 / 278.6 MB, free: 11.85 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.0008006/0.0105, allocations: 0.5155 MB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.01054, allocations: 11.98 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.01064, allocations: 52.89 kB / 279.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.0109, allocations: 173.3 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.01093, allocations: 25.03 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/0.01098, allocations: 36.38 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.01136, allocations: 258.7 kB / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.01138, allocations: 192 / 279.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.639e-05/0.0114, allocations: 16.38 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.01141, allocations: 11.94 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.01155, allocations: 72.55 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.0128, allocations: 0.6888 MB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.01299, allocations: 90.47 kB / 280.5 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.774e-05/0.01306, allocations: 36.84 kB / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.353e-05/0.01308, allocations: 0 / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.01312, allocations: 42.56 kB / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 1.824e-06/0.01312, allocations: 0 / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002496/0.01337, allocations: 109.8 kB / 280.7 MB, free: 9.598 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.01341, allocations: 59.34 kB / 280.7 MB, free: 9.527 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.01356, allocations: 191.7 kB / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.01358, allocations: 33.7 kB / 281 MB, free: 9.289 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.01376, allocations: 188.3 kB / 281.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.942e-05/0.01381, allocations: 63.42 kB / 281.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-05/0.01388, allocations: 45.69 kB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.01398, allocations: 334.8 kB / 281.6 MB, free: 8.652 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.918e-05/0.01403, allocations: 19.98 kB / 281.6 MB, free: 8.633 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.186e-05/0.01412, allocations: 73.98 kB / 281.7 MB, free: 8.539 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.01426, allocations: 113.8 kB / 281.8 MB, free: 8.406 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.01426, allocations: 3.938 kB / 281.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002253/0.01449, allocations: 129.6 kB / 281.9 MB, free: 8.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.01451, allocations: 11.12 kB / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.01451, allocations: 0 / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.01453, allocations: 4 kB / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.01476, allocations: 63.84 kB / 282 MB, free: 8.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.01477, allocations: 4 kB / 282 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.01488, allocations: 31.95 kB / 282 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.01489, allocations: 7.938 kB / 282 MB, free: 8.152 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 0.0001095/0.015, allocations: 117.8 kB / 282.1 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.738e-05/0.01505, allocations: 19.98 kB / 282.2 MB, free: 8.008 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.01523, allocations: 111.4 kB / 282.3 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.01524, allocations: 7.938 kB / 282.3 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.01524, allocations: 3.938 kB / 282.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01524, allocations: 0 / 282.3 MB, free: 7.883 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002383/0.01548, allocations: 149.7 kB / 282.4 MB, free: 7.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.01549, allocations: 3.984 kB / 282.4 MB, free: 7.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002217/0.01571, allocations: 47.92 kB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.01571, allocations: 0 / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/0.01573, allocations: 8 kB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.01573, allocations: 0 / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.01573, allocations: 3.984 kB / 282.5 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.01603, allocations: 234.6 kB / 282.7 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.01606, allocations: 31.77 kB / 282.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.01609, allocations: 0 / 282.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.01622, allocations: 19.98 kB / 282.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.01626, allocations: 11.97 kB / 282.8 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.01628, allocations: 8 kB / 282.8 MB, free: 7.344 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001537/0.01643, allocations: 48.75 kB / 282.8 MB, free: 7.293 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01643, allocations: 0 / 282.8 MB, free: 7.293 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.01674, allocations: 75.78 kB / 282.9 MB, free: 7.219 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.0001284/0.01687, allocations: 88.41 kB / 283 MB, free: 7.121 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001785/0.01705, allocations: 96.62 kB / 283.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.01706, allocations: 4.25 kB / 283.1 MB, free: 7.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.752e-05/0.01712, allocations: 48.78 kB / 283.1 MB, free: 6.969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.01738, allocations: 27.98 kB / 283.2 MB, free: 6.941 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.01863, allocations: 0.5854 MB / 283.8 MB, free: 6.328 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.125e-05/0.01871, allocations: 92.14 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.596e-05/0.01879, allocations: 21.7 kB / 283.9 MB, free: 6.191 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.01892, allocations: 87.34 kB / 284 MB, free: 6.105 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01892, allocations: 3.938 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of Templates: time 0.004909/0.02383, allocations: 1.87 MB / 285.8 MB, free: 4.27 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.6782983378507197]