Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.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.0009785/0.0009785, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001187/0.002165, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006745/0.0006745, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001007/0.001682, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.09/1.09, allocations: 177.5 MB / 190 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0964/1.186, allocations: 53.86 MB / 243.9 MB, free: 14.89 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2743/0.2743, allocations: 34.89 MB / 279.6 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02596/0.3003, allocations: 13.24 MB / 292.8 MB, free: 6.422 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 294.1 MB, free: 5.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.646e-05/2.855e-05, allocations: 2.969 kB / 294.1 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001822/0.001851, allocations: 0.5287 MB / 294.6 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.004874, allocations: 2.152 MB / 296.8 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.665e-05/0.004891, allocations: 0 / 296.8 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.418e-06/0.004895, allocations: 0 / 296.8 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.0049, allocations: 0 / 296.8 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.005938, allocations: 354.4 kB / 297.1 MB, free: 2.105 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.038e-05/0.005988, allocations: 15.98 kB / 297.1 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.207e-05/0.00603, allocations: 3.938 kB / 297.1 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.1e-05/0.006081, allocations: 4 kB / 297.1 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01188/0.01796, allocations: 4.817 MB / 301.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.286e-05/0.01798, allocations: 0 / 301.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.0181, allocations: 7.984 kB / 301.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.567e-05/0.01811, allocations: 8 kB / 302 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.01813, allocations: 0 / 302 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.0183, allocations: 8 kB / 302 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.64e-05/0.01831, allocations: 7.984 kB / 302 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01831, allocations: 0 / 302 MB, free: 14.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.01832, allocations: 0 / 302 MB, free: 14.38 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002355/0.01856, allocations: 213.2 kB / 302.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.0186, allocations: 12.92 kB / 302.2 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.01881, allocations: 169.3 kB / 302.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.58e-05/0.0189, allocations: 185 kB / 302.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.01894, allocations: 150.9 kB / 302.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.01898, allocations: 158.9 kB / 302.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.229e-05/0.01903, allocations: 113.5 kB / 303 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.01906, allocations: 75.47 kB / 303 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.465e-05/0.01911, allocations: 150.9 kB / 303.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.01915, allocations: 158.5 kB / 303.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.132e-05/0.01919, allocations: 162.5 kB / 303.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.01934, allocations: 357.3 kB / 303.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.235e-05/0.0194, allocations: 169.1 kB / 304 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.201e-05/0.01943, allocations: 80.14 kB / 304.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.01944, allocations: 75.28 kB / 304.2 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.01949, allocations: 113.8 kB / 304.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.01949, allocations: 0 / 304.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=0): time 5.057e-05/0.01954, allocations: 33.69 kB / 304.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.892e-05/0.01959, allocations: 134.6 kB / 304.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.177e-05/0.01965, allocations: 94.72 kB / 304.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.01966, allocations: 25.7 kB / 304.5 MB, free: 11.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.34e-05/0.01968, allocations: 80.14 kB / 304.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.21e-07/0.01968, allocations: 4 kB / 304.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.745e-05/0.0197, allocations: 9.719 kB / 304.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/0.01979, allocations: 318.8 kB / 304.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.314e-06/0.01979, allocations: 0 / 304.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.253e-05/0.01983, allocations: 69.09 kB / 305 MB, free: 11.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.268e-05/0.01985, allocations: 79.44 kB / 305.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.136e-05/0.01988, allocations: 79.28 kB / 305.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.101e-05/0.01991, allocations: 25.7 kB / 305.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.01994, allocations: 83.28 kB / 305.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/0.01996, allocations: 83.22 kB / 305.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.028e-05/0.02001, allocations: 150.6 kB / 305.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.146e-05/0.02003, allocations: 83.22 kB / 305.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.736e-05/0.02007, allocations: 154.5 kB / 305.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.02012, allocations: 83.27 kB / 305.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.02014, allocations: 83.22 kB / 305.9 MB, free: 10.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.633e-05/0.02023, allocations: 260.4 kB / 306.2 MB, free: 9.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.02027, allocations: 105 kB / 306.3 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.743e-05/0.02032, allocations: 111.9 kB / 306.4 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.648e-05/0.02037, allocations: 184.2 kB / 306.5 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.201e-05/0.02043, allocations: 176.3 kB / 306.7 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.691e-05/0.02047, allocations: 180.2 kB / 306.9 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.0206, allocations: 317.4 kB / 307.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.628e-05/0.02063, allocations: 108.9 kB / 307.3 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.533e-05/0.02066, allocations: 105 kB / 307.4 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/0.02068, allocations: 108.9 kB / 307.5 MB, free: 8.535 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.255e-05/0.02073, allocations: 184.2 kB / 307.7 MB, free: 8.348 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/0.02077, allocations: 180.6 kB / 307.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.33e-05/0.02081, allocations: 188.2 kB / 308.1 MB, free: 7.973 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.183e-05/0.02086, allocations: 180.3 kB / 308.2 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001049/0.02096, allocations: 307.7 kB / 308.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.02102, allocations: 188.2 kB / 308.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.975e-05/0.02108, allocations: 112.9 kB / 308.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.02113, allocations: 176.3 kB / 309 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.898e-05/0.02115, allocations: 104.9 kB / 309.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.546e-05/0.02117, allocations: 8.859 kB / 309.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02117, allocations: 4.094 kB / 309.1 MB, free: 6.852 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001309/0.0213, allocations: 0 / 309.1 MB, free: 6.852 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0001088/0.02141, allocations: 147.7 kB / 309.3 MB, free: 6.695 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 4.438e-05/0.02145, allocations: 4 kB / 309.3 MB, free: 6.691 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.02146, allocations: 3.984 kB / 309.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-06/0.02146, allocations: 0 / 309.3 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.02167, allocations: 463.6 kB / 309.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001535/0.02182, allocations: 150.5 kB / 309.9 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.336e-05/0.02185, allocations: 55.34 kB / 309.9 MB, free: 5.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.296e-05/0.02188, allocations: 11.94 kB / 309.9 MB, free: 5.969 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.02193, allocations: 51.38 kB / 310 MB, free: 5.918 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.02193, allocations: 0 / 310 MB, free: 5.918 MB / 298.7 MB Notification: Performance of Templates: time 0.002025/0.02395, allocations: 400.4 kB / 310.4 MB, free: 5.539 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.89138541277498]