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.001269/0.001269, allocations: 84.3 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001415/0.001415, allocations: 168.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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 1.48/1.48, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 MB " [Timeout remaining time 178] 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.572e-06/1.572e-06, allocations: 0 / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.926e-05/3.083e-05, allocations: 5.516 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004451/0.004482, allocations: 2.71 MB / 327.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.006018, allocations: 0.6921 MB / 328.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.006193, allocations: 10.5 kB / 328.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002139/0.006407, allocations: 62.39 kB / 328.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.006605, allocations: 85.81 kB / 328.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002841/0.006889, allocations: 91.12 kB / 328.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004443/0.007334, allocations: 392.9 kB / 329.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.007579, allocations: 108.1 kB / 329.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004464/0.008025, allocations: 230.5 kB / 329.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001974/0.008223, allocations: 112.8 kB / 329.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.583e-05/0.008279, allocations: 31.94 kB / 329.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.833e-05/0.008337, allocations: 31.38 kB / 329.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.008413, allocations: 73.7 kB / 329.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.008558, allocations: 114 kB / 329.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004983/0.009057, allocations: 383.7 kB / 330.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.009061, allocations: 0 / 330.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.009062, allocations: 0.5156 kB / 330.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.009073, allocations: 4.906 kB / 330.2 MB, free: 13.41 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.001029/0.0101, allocations: 0.5406 MB / 330.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.01014, allocations: 9.188 kB / 330.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.268e-05/0.01022, allocations: 38.83 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.01056, allocations: 195.4 kB / 331 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.745e-05/0.0106, allocations: 37.83 kB / 331 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.01067, allocations: 33.12 kB / 331 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.01128, allocations: 324 kB / 331.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.0113, allocations: 192 / 331.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.302e-05/0.01133, allocations: 10.84 kB / 331.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.01134, allocations: 11.84 kB / 331.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004874/0.01183, allocations: 198.8 kB / 331.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.01335, allocations: 0.812 MB / 332.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.01371, allocations: 153.9 kB / 332.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.01392, allocations: 73.78 kB / 332.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.01395, allocations: 6.844 kB / 332.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.01398, allocations: 32 kB / 332.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.382e-06/0.01398, allocations: 0 / 332.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006135/0.01459, allocations: 211.5 kB / 332.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.01465, allocations: 61.73 kB / 332.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.01487, allocations: 198.2 kB / 333.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.0149, allocations: 31.02 kB / 333.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/0.01505, allocations: 197.9 kB / 333.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.01512, allocations: 66.14 kB / 333.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.451e-05/0.01521, allocations: 45.8 kB / 333.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.01539, allocations: 327.2 kB / 333.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.01557, allocations: 65.64 kB / 333.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.01579, allocations: 121.3 kB / 333.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004025/0.01619, allocations: 190.1 kB / 334.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01619, allocations: 0 / 334.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005073/0.0167, allocations: 239.2 kB / 334.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.01672, allocations: 10.38 kB / 334.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.01672, allocations: 5.094 kB / 334.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.01674, allocations: 3.688 kB / 334.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.01702, allocations: 63.14 kB / 334.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.01703, allocations: 3.062 kB / 334.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.01718, allocations: 20.42 kB / 334.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.0172, allocations: 10.94 kB / 334.5 MB, free: 10.18 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.0001436/0.01734, allocations: 142.4 kB / 334.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.01739, allocations: 17.03 kB / 334.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.01784, allocations: 194.4 kB / 334.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.01785, allocations: 6.328 kB / 334.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.01785, allocations: 1.188 kB / 334.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.01786, allocations: 7.984 kB / 334.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000313/0.01817, allocations: 213.8 kB / 335 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.01818, allocations: 3.984 kB / 335 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002774/0.01845, allocations: 47.44 kB / 335.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.01846, allocations: 1.406 kB / 335.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.01847, allocations: 13.31 kB / 335.1 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.01848, allocations: 5.031 kB / 335.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01848, allocations: 0 / 335.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006345/0.01911, allocations: 345.9 kB / 335.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.01915, allocations: 22.47 kB / 335.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.06e-05/0.01918, allocations: 1.344 kB / 335.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.01936, allocations: 21.39 kB / 335.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/0.01942, allocations: 23.89 kB / 335.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.01943, allocations: 3.781 kB / 335.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001304/0.01956, allocations: 140.1 kB / 335.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01956, allocations: 0 / 335.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003641/0.01993, allocations: 77.56 kB / 335.7 MB, free: 9.281 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.0001476/0.02008, allocations: 104 kB / 335.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004166/0.02049, allocations: 152.3 kB / 336 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.0205, allocations: 0 / 336 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.02068, allocations: 78.41 kB / 336 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.021, allocations: 21.56 kB / 336.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.02225, allocations: 0.6847 MB / 336.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.0224, allocations: 159.6 kB / 336.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.842e-05/0.02248, allocations: 18.62 kB / 336.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.669e-05/0.02254, allocations: 27.83 kB / 337 MB, free: 8.414 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.02254, allocations: 0 / 337 MB, free: 8.414 MB / 302.1 MB Notification: Performance of Templates: time 0.005492/0.02803, allocations: 1.762 MB / 338.7 MB, free: 7.188 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.485955398529768]