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.001737/0.001737, allocations: 86.02 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001598/0.001598, allocations: 158.8 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.451/1.451, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 178] 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.483e-06/1.483e-06, allocations: 0 / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.416e-05, allocations: 2.281 kB / 325 MB, free: 488 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003911/0.003936, allocations: 2.706 MB / 327.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.005283, allocations: 0.6885 MB / 328.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.005446, allocations: 5.312 kB / 328.4 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.005651, allocations: 64.5 kB / 328.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.005846, allocations: 92.64 kB / 328.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.006134, allocations: 90.12 kB / 328.7 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004212/0.006555, allocations: 392.8 kB / 329.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.006792, allocations: 110.5 kB / 329.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.00717, allocations: 230.4 kB / 329.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.007361, allocations: 108.8 kB / 329.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.383e-05/0.007414, allocations: 31.44 kB / 329.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.007472, allocations: 31.34 kB / 329.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.007553, allocations: 77.56 kB / 329.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.007713, allocations: 113.4 kB / 329.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004949/0.008208, allocations: 384.3 kB / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.008211, allocations: 0 / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.008211, allocations: 4 kB / 330.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.008218, allocations: 0 / 330.1 MB, free: 13.36 MB / 302.1 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.0009482/0.009166, allocations: 0.5398 MB / 330.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.009201, allocations: 13.67 kB / 330.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.389e-05/0.009295, allocations: 38.48 kB / 330.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.009709, allocations: 195.7 kB / 330.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.009741, allocations: 29.94 kB / 330.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.009796, allocations: 28.94 kB / 331 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005872/0.01038, allocations: 323.4 kB / 331.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.0104, allocations: 192 / 331.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.01043, allocations: 15.66 kB / 331.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.01044, allocations: 11.53 kB / 331.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000464/0.01091, allocations: 210.8 kB / 331.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.01234, allocations: 0.808 MB / 332.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.01272, allocations: 151.7 kB / 332.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.01292, allocations: 77.78 kB / 332.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.908e-05/0.01294, allocations: 2.438 kB / 332.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.01298, allocations: 36.66 kB / 332.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.01298, allocations: 0 / 332.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006586/0.01364, allocations: 215.3 kB / 332.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.0137, allocations: 52.78 kB / 332.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002722/0.01397, allocations: 202.7 kB / 333 MB, free: 11.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.014, allocations: 25.7 kB / 333.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.01417, allocations: 202.1 kB / 333.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.36e-05/0.01425, allocations: 75.3 kB / 333.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.01434, allocations: 44.55 kB / 333.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.01454, allocations: 332.2 kB / 333.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.01474, allocations: 57.47 kB / 333.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002388/0.01497, allocations: 121 kB / 333.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004125/0.01539, allocations: 181.5 kB / 334.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01539, allocations: 0.9688 kB / 334.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005339/0.01592, allocations: 243.4 kB / 334.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.01594, allocations: 13.61 kB / 334.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.01595, allocations: 5.094 kB / 334.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.01597, allocations: 6.75 kB / 334.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000287/0.01625, allocations: 63.72 kB / 334.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.01626, allocations: 3.781 kB / 334.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.01642, allocations: 23.84 kB / 334.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.01643, allocations: 6.594 kB / 334.4 MB, free: 10.09 MB / 302.1 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.0001836/0.01662, allocations: 142.2 kB / 334.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.01667, allocations: 17.28 kB / 334.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004791/0.01715, allocations: 194.5 kB / 334.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01715, allocations: 1.5 kB / 334.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.01715, allocations: 1.219 kB / 334.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.01716, allocations: 0 / 334.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004935/0.01765, allocations: 220.6 kB / 335 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.01765, allocations: 0.9375 kB / 335 MB, free: 9.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.01794, allocations: 51.5 kB / 335 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.01794, allocations: 1.156 kB / 335 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.01796, allocations: 9.125 kB / 335 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.01797, allocations: 5.25 kB / 335 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.01797, allocations: 0 / 335 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007269/0.0187, allocations: 343 kB / 335.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-05/0.01874, allocations: 21.08 kB / 335.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.01877, allocations: 6.375 kB / 335.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.01894, allocations: 21.05 kB / 335.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.019, allocations: 16.25 kB / 335.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.01902, allocations: 8.422 kB / 335.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.01915, allocations: 134.8 kB / 335.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01915, allocations: 0 / 335.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003285/0.01948, allocations: 74.56 kB / 335.7 MB, free: 9.207 MB / 302.1 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.0001291/0.01961, allocations: 101.7 kB / 335.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000415/0.02003, allocations: 157.5 kB / 335.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.02003, allocations: 1.688 kB / 335.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.0202, allocations: 79.98 kB / 336 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.0205, allocations: 29.56 kB / 336 MB, free: 8.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.02185, allocations: 0.6924 MB / 336.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002166/0.02206, allocations: 164.3 kB / 336.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.524e-05/0.02214, allocations: 14.45 kB / 336.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.145e-05/0.0222, allocations: 26.84 kB / 336.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.0222, allocations: 1.344 kB / 336.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Templates: time 0.005685/0.02789, allocations: 1.757 MB / 338.7 MB, free: 7.078 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.507580600678921]