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.0009476/0.0009476, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009234/0.0009234, allocations: 141.8 kB / 24.98 MB, free: 8.812 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.918/0.918, allocations: 173.4 MB / 201.5 MB, free: 9.332 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.483e-06/1.483e-06, allocations: 0 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.861e-05/2.009e-05, allocations: 6.312 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00291/0.00293, allocations: 2.866 MB / 271 MB, free: 3.836 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.004011, allocations: 0.6659 MB / 271.6 MB, free: 3.164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.004157, allocations: 7.938 kB / 271.6 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.004325, allocations: 63.38 kB / 271.7 MB, free: 3.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.004457, allocations: 87.12 kB / 271.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.004699, allocations: 95.75 kB / 271.9 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.005002, allocations: 394.2 kB / 272.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.005211, allocations: 105.8 kB / 272.4 MB, free: 2.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002943/0.005505, allocations: 223.5 kB / 272.6 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.005656, allocations: 111.7 kB / 272.7 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.005702, allocations: 32 kB / 272.7 MB, free: 2.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.396e-05/0.005736, allocations: 32 kB / 272.7 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.005792, allocations: 75.72 kB / 272.8 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.848e-05/0.00589, allocations: 123.7 kB / 272.9 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.006176, allocations: 247 kB / 273.2 MB, free: 1.594 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.564e-06/0.006178, allocations: 4 kB / 273.2 MB, free: 1.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.006179, allocations: 0 / 273.2 MB, free: 1.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.006186, allocations: 0 / 273.2 MB, free: 1.59 MB / 250.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.0008621/0.007048, allocations: 0.6325 MB / 273.8 MB, free: 0.9219 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.007093, allocations: 12.92 kB / 273.8 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.007196, allocations: 60.7 kB / 273.9 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.007479, allocations: 216 kB / 274.1 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.007498, allocations: 21.03 kB / 274.1 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.007542, allocations: 36.38 kB / 274.2 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.007876, allocations: 266.8 kB / 274.4 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.007887, allocations: 192 / 274.4 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.007909, allocations: 12.38 kB / 274.4 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.007922, allocations: 11.94 kB / 274.4 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001567/0.008079, allocations: 107.8 kB / 274.5 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.009132, allocations: 0.8634 MB / 275.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001961/0.009329, allocations: 115.2 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.905e-05/0.009408, allocations: 47.59 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.009431, allocations: 12 kB / 275.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.009459, allocations: 37.33 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=17): time 2.134e-06/0.009461, allocations: 0 / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002766/0.009738, allocations: 156.6 kB / 275.8 MB, free: 14.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.009765, allocations: 55.41 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.009905, allocations: 245.7 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.009919, allocations: 25.7 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.59e-05/0.01002, allocations: 243 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.01005, allocations: 71.42 kB / 276.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.0101, allocations: 47.36 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.01021, allocations: 0.5001 MB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.125e-05/0.01026, allocations: 31.98 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.906e-05/0.01035, allocations: 101.7 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.01049, allocations: 141.7 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01049, allocations: 0 / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000206/0.0107, allocations: 189.2 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.01071, allocations: 8.125 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.01072, allocations: 7.938 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.01073, allocations: 0 / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.0109, allocations: 59.91 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.01091, allocations: 4 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.209e-05/0.01097, allocations: 19.89 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.01099, allocations: 12 kB / 277.5 MB, free: 12.96 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 8.938e-05/0.01108, allocations: 172.4 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.01111, allocations: 23.91 kB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.0113, allocations: 147.3 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.0113, allocations: 4 kB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.01131, allocations: 0 / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.01131, allocations: 0 / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.0115, allocations: 224.4 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.0115, allocations: 0 / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.01166, allocations: 51.91 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.01166, allocations: 0 / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.01168, allocations: 4 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.01168, allocations: 7.938 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.01168, allocations: 0 / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.01195, allocations: 327.6 kB / 278.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.973e-05/0.01197, allocations: 11.91 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.012, allocations: 4 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.01208, allocations: 15.92 kB / 278.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.01213, allocations: 15.97 kB / 278.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.01214, allocations: 4 kB / 278.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.488e-05/0.01222, allocations: 176.3 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01222, allocations: 0 / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002314/0.01245, allocations: 75.73 kB / 278.7 MB, free: 11.66 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.0001179/0.01257, allocations: 103.2 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.01275, allocations: 115 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01275, allocations: 0 / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.8e-05/0.01281, allocations: 55.56 kB / 279 MB, free: 11.37 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.01304, allocations: 24.2 kB / 279 MB, free: 11.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.01421, allocations: 0.7169 MB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.718e-05/0.01427, allocations: 88.2 kB / 279.8 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.702e-05/0.01433, allocations: 13.64 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.01437, allocations: 28.44 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.01437, allocations: 0 / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of Templates: time 0.003791/0.01816, allocations: 1.79 MB / 281.7 MB, free: 8.684 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 240] 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","",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.895135138882324]