Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00154/0.00154, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001189/0.001189, allocations: 165 kB / 24.56 MB, free: 16 kB / 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 1.039/1.039, allocations: 177.1 MB / 205 MB, free: 5.27 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2766/0.2766, allocations: 32.81 MB / 294.3 MB, free: 1.25 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 376 MB, free: 4.711 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.298e-05/2.45e-05, allocations: 5.406 kB / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001125/0.00115, allocations: 0.5045 MB / 376.5 MB, free: 4.203 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.002716, allocations: 1.395 MB / 377.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.875e-05/0.002744, allocations: 0 / 377.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.002767, allocations: 0 / 377.9 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.003009, allocations: 15.86 kB / 377.9 MB, free: 2.785 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.001042/0.004051, allocations: 276.7 kB / 378.2 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.668e-05/0.004108, allocations: 4 kB / 378.2 MB, free: 2.523 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.22e-05/0.00415, allocations: 4 kB / 378.2 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.278e-05/0.004183, allocations: 4 kB / 378.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.273e-05/0.004226, allocations: 0 / 378.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.806e-06/0.004234, allocations: 0 / 378.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002515/0.006749, allocations: 0.9995 MB / 379.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.006766, allocations: 0 / 379.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.006797, allocations: 0 / 379.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.00716, allocations: 215.4 kB / 379.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.007165, allocations: 0 / 379.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.526e-06/0.007168, allocations: 0 / 379.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.007176, allocations: 0 / 379.4 MB, free: 1.551 MB / 346.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.0004101/0.007586, allocations: 413.7 kB / 379.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.007628, allocations: 8.031 kB / 379.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.479e-05/0.007673, allocations: 5.234 kB / 379.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.916e-05/0.007772, allocations: 112.6 kB / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.007785, allocations: 384 / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.007794, allocations: 384 / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.745e-05/0.007891, allocations: 59.91 kB / 380 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.007898, allocations: 192 / 380 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.007908, allocations: 4.125 kB / 380 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.007917, allocations: 0 / 380 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.199e-05/0.007939, allocations: 37.69 kB / 380 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001001/0.008039, allocations: 112.6 kB / 380.1 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.211e-05/0.008091, allocations: 52.8 kB / 380.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.284e-05/0.008114, allocations: 37.39 kB / 380.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.4e-06/0.00812, allocations: 4.062 kB / 380.2 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.008159, allocations: 67.03 kB / 380.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.71e-07/0.00816, allocations: 0 / 380.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001801/0.00834, allocations: 118.8 kB / 380.4 MB, free: 360 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.99e-05/0.00838, allocations: 81.05 kB / 380.5 MB, free: 260 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.619e-05/0.008456, allocations: 161.9 kB / 380.6 MB, free: 80 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.008464, allocations: 25.7 kB / 380.7 MB, free: 48 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.538e-05/0.008509, allocations: 126.9 kB / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.008526, allocations: 256 / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-05/0.00855, allocations: 23.38 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.008691, allocations: 492.1 kB / 381.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.986e-05/0.008711, allocations: 25.7 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.429e-05/0.008725, allocations: 29.7 kB / 381.3 MB, free: 15.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.921e-05/0.008764, allocations: 75.02 kB / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.008766, allocations: 0 / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.63e-05/0.008833, allocations: 93.09 kB / 381.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.008861, allocations: 32.52 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.008868, allocations: 3.984 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.008883, allocations: 4.094 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.15e-06/0.008888, allocations: 3.938 kB / 381.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.008895, allocations: 4 kB / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.00891, allocations: 0 / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.008918, allocations: 3.984 kB / 381.6 MB, free: 15.07 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 0.0001141/0.009032, allocations: 186.3 kB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.212e-06/0.009038, allocations: 0 / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.308e-05/0.009051, allocations: 7.094 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.009053, allocations: 0 / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.009059, allocations: 3.938 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009062, allocations: 8 kB / 381.8 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.434e-05/0.009136, allocations: 112.6 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.009137, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.1e-07/0.009138, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.00914, allocations: 4 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.009149, allocations: 3.938 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.00915, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.009151, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.009253, allocations: 135.8 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.009258, allocations: 0 / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.009274, allocations: 0 / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.861e-06/0.00928, allocations: 4.031 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.009298, allocations: 7.938 kB / 382 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-06/0.009302, allocations: 3.984 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.886e-05/0.00934, allocations: 119.2 kB / 382.1 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00934, allocations: 3.938 kB / 382.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000279/0.009619, allocations: 67.8 kB / 382.2 MB, free: 14.34 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.0007035/0.01032, allocations: 367.7 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001029/0.01043, allocations: 118.5 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01043, allocations: 4.062 kB / 382.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.01e-05/0.01046, allocations: 92.78 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001135/0.01057, allocations: 4 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001903/0.01076, allocations: 120.1 kB / 382.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.067e-05/0.01079, allocations: 63.28 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.28e-06/0.0108, allocations: 0 / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.276e-05/0.01081, allocations: 8.5 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01081, allocations: 0 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of Templates: time 0.003905/0.01472, allocations: 1.889 MB / 384.9 MB, free: 11.66 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2916460568085313]