Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.001329/0.001329, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.0009778/0.0009778, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 18.57 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 0.9571/0.9571, allocations: 177.1 MB / 205.3 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2454/0.2454, allocations: 34.26 MB / 296 MB, free: 0.7812 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 378 MB, free: 3.031 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.804e-05/1.937e-05, allocations: 2.312 kB / 378 MB, free: 3.027 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001188/0.001208, allocations: 0.4931 MB / 378.5 MB, free: 2.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007647/0.008854, allocations: 1.383 MB / 379.9 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.008884, allocations: 0 / 379.9 MB, free: 1.141 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.735e-05/0.008901, allocations: 3.938 kB / 379.9 MB, free: 1.137 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.009084, allocations: 15.92 kB / 379.9 MB, free: 1.121 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008363/0.009921, allocations: 279.8 kB / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.009969, allocations: 3.938 kB / 380.2 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.921e-05/0.009998, allocations: 4 kB / 380.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.665e-05/0.01002, allocations: 0 / 380.2 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.244e-05/0.01007, allocations: 11.98 kB / 380.2 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.01007, allocations: 0 / 380.2 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008611/0.01869, allocations: 0.9919 MB / 381.2 MB, free: 100 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-06/0.01869, allocations: 3.938 kB / 381.2 MB, free: 96 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.892e-05/0.01871, allocations: 4 kB / 381.2 MB, free: 92 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003011/0.01901, allocations: 211.5 kB / 381.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.01901, allocations: 0 / 381.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.01902, allocations: 0 / 381.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.01902, allocations: 0 / 381.4 MB, free: 15.88 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003557/0.01937, allocations: 414 kB / 381.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.01941, allocations: 8.031 kB / 381.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003054/0.02247, allocations: 8.891 kB / 381.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.829e-05/0.02256, allocations: 116.6 kB / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.02257, allocations: 384 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.02257, allocations: 384 / 381.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/0.02268, allocations: 59.95 kB / 382 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.02269, allocations: 192 / 382 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.0227, allocations: 4.125 kB / 382 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.0227, allocations: 0 / 382 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.694e-05/0.02272, allocations: 29.7 kB / 382 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.861e-05/0.02282, allocations: 104.6 kB / 382.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.507e-05/0.02286, allocations: 64.73 kB / 382.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.983e-05/0.02288, allocations: 33.39 kB / 382.2 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.651e-06/0.02289, allocations: 8.047 kB / 382.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.02292, allocations: 63.09 kB / 382.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.02292, allocations: 0 / 382.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.02308, allocations: 118.8 kB / 382.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.85e-05/0.02312, allocations: 88.97 kB / 382.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.959e-05/0.02319, allocations: 157.9 kB / 382.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.687e-06/0.0232, allocations: 25.95 kB / 382.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.58e-05/0.02328, allocations: 130.9 kB / 382.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.225e-05/0.02329, allocations: 0 / 382.8 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.02332, allocations: 23.38 kB / 382.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.02344, allocations: 492.1 kB / 383.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.933e-05/0.02346, allocations: 29.69 kB / 383.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.431e-05/0.02347, allocations: 29.7 kB / 383.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.648e-05/0.02351, allocations: 63.09 kB / 383.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.02351, allocations: 0 / 383.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.658e-05/0.02358, allocations: 89.11 kB / 383.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.0236, allocations: 41.72 kB / 383.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.02361, allocations: 0 / 383.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.02362, allocations: 0 / 383.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.02362, allocations: 3.938 kB / 383.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.02363, allocations: 4 kB / 383.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.195e-05/0.02364, allocations: 0 / 383.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.391e-06/0.02364, allocations: 0 / 383.5 MB, free: 13.41 MB / 362.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 6.883e-05/0.02371, allocations: 182.3 kB / 383.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-06/0.02372, allocations: 3.953 kB / 383.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.758e-06/0.02373, allocations: 7.141 kB / 383.7 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.02373, allocations: 4 kB / 383.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.02373, allocations: 7.938 kB / 383.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.02374, allocations: 3.984 kB / 383.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.132e-05/0.0238, allocations: 108.6 kB / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.0238, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.0238, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.0238, allocations: 4 kB / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.02381, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.02381, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.02381, allocations: 0 / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.622e-05/0.0239, allocations: 135.7 kB / 384 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-06/0.0239, allocations: 8.031 kB / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.02392, allocations: 3.984 kB / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.933e-06/0.02392, allocations: 0 / 384 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.02393, allocations: 7.938 kB / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.02394, allocations: 3.938 kB / 384 MB, free: 12.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.136e-05/0.02397, allocations: 119.2 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02397, allocations: 0 / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002606/0.02423, allocations: 63.8 kB / 384.2 MB, free: 12.68 MB / 362.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0007456/0.02497, allocations: 374.9 kB / 384.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.82e-05/0.02507, allocations: 126.5 kB / 384.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.02507, allocations: 0 / 384.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.247e-05/0.02511, allocations: 88.8 kB / 384.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.02523, allocations: 3.938 kB / 384.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003182/0.02841, allocations: 132 kB / 384.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.818e-05/0.02844, allocations: 55.36 kB / 385 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.02844, allocations: 0 / 385 MB, free: 11.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.027e-05/0.02845, allocations: 8.5 kB / 385 MB, free: 11.88 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.02845, allocations: 4.125 kB / 385 MB, free: 11.87 MB / 362.7 MB Notification: Performance of Templates: time 0.006563/0.03502, allocations: 1.648 MB / 386.6 MB, free: 10.23 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.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: 3.2284249807707965]