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.001452/0.001452, allocations: 71.77 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.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.001588/0.001588, allocations: 166.4 kB / 24.99 MB, free: 8.336 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.9301/0.9301, allocations: 177.1 MB / 205.3 MB, free: 5.641 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.3085/0.3085, allocations: 32.81 MB / 294.6 MB, free: 1.207 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 2.234e-06/2.234e-06, allocations: 0 / 376 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.141e-05/3.364e-05, allocations: 2.312 kB / 376 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.00123/0.001264, allocations: 0.5041 MB / 376.5 MB, free: 4.516 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.002846, allocations: 1.383 MB / 377.9 MB, free: 3.125 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.002877, allocations: 0 / 377.9 MB, free: 3.125 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.806e-05/0.002895, allocations: 3.938 kB / 377.9 MB, free: 3.121 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.003104, allocations: 11.94 kB / 377.9 MB, free: 3.109 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.0007776/0.003881, allocations: 268.6 kB / 378.1 MB, free: 2.852 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.934e-05/0.003941, allocations: 7.984 kB / 378.1 MB, free: 2.844 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.74e-05/0.003978, allocations: 4 kB / 378.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.399e-05/0.004012, allocations: 4 kB / 378.1 MB, free: 2.836 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.082e-05/0.004053, allocations: 0 / 378.1 MB, free: 2.836 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.004062, allocations: 4 kB / 378.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.006448, allocations: 0.9935 MB / 379.1 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.015e-05/0.006458, allocations: 0 / 379.1 MB, free: 2.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.203e-05/0.00648, allocations: 3.984 kB / 379.2 MB, free: 2.086 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.006763, allocations: 215.5 kB / 379.4 MB, free: 1.875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.006765, allocations: 0 / 379.4 MB, free: 1.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.006766, allocations: 0 / 379.4 MB, free: 1.875 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.006771, allocations: 0 / 379.4 MB, free: 1.875 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.0003762/0.007147, allocations: 409.7 kB / 379.8 MB, free: 1.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.007189, allocations: 12.03 kB / 379.8 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.937e-05/0.007238, allocations: 13.17 kB / 379.8 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.007351, allocations: 108.6 kB / 379.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.007365, allocations: 384 / 379.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.007377, allocations: 384 / 379.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.007485, allocations: 55.97 kB / 379.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.007493, allocations: 192 / 379.9 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.007505, allocations: 4.125 kB / 380 MB, free: 1.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.007515, allocations: 3.984 kB / 380 MB, free: 1.203 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.946e-05/0.007535, allocations: 29.7 kB / 380 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001022/0.007637, allocations: 108.6 kB / 380.1 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.991e-05/0.007687, allocations: 68.66 kB / 380.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.115e-05/0.007708, allocations: 33.39 kB / 380.2 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.481e-06/0.007713, allocations: 4.062 kB / 380.2 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.007753, allocations: 63.08 kB / 380.3 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.007753, allocations: 0 / 380.3 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.00017/0.007923, allocations: 114.8 kB / 380.4 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.00796, allocations: 88.98 kB / 380.5 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.784e-05/0.008028, allocations: 154 kB / 380.6 MB, free: 416 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.008038, allocations: 33.83 kB / 380.6 MB, free: 376 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.94e-05/0.008067, allocations: 126.9 kB / 380.8 MB, free: 244 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.219e-05/0.008079, allocations: 0 / 380.8 MB, free: 244 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/0.008102, allocations: 23.38 kB / 380.8 MB, free: 212 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.008209, allocations: 492.1 kB / 381.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.508e-05/0.008224, allocations: 25.7 kB / 381.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.406e-05/0.008239, allocations: 33.69 kB / 381.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.867e-05/0.008277, allocations: 59.09 kB / 381.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.008279, allocations: 4 kB / 381.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.631e-05/0.008335, allocations: 101.1 kB / 381.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.008362, allocations: 33.69 kB / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.008367, allocations: 0 / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.008379, allocations: 0 / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.823e-06/0.008381, allocations: 3.938 kB / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.008385, allocations: 0 / 381.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.348e-05/0.008399, allocations: 4 kB / 381.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.008404, allocations: 0 / 381.5 MB, free: 15.4 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.446e-05/0.008469, allocations: 182.3 kB / 381.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.318e-06/0.008473, allocations: 0 / 381.7 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.748e-06/0.008483, allocations: 7.188 kB / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.008484, allocations: 0 / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.00849, allocations: 7.922 kB / 381.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.008494, allocations: 4 kB / 381.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.618e-05/0.00855, allocations: 116.6 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.008551, allocations: 0 / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.91e-07/0.008551, allocations: 0 / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.008552, allocations: 0 / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-06/0.008558, allocations: 4 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.008558, allocations: 3.938 kB / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.008559, allocations: 0 / 381.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.583e-05/0.008635, allocations: 139.7 kB / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-06/0.008639, allocations: 4 kB / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.008651, allocations: 0 / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.589e-06/0.008656, allocations: 0 / 382 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.00867, allocations: 7.922 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.008671, allocations: 4 kB / 382 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.891e-05/0.0087, allocations: 119.2 kB / 382.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0087, allocations: 0 / 382.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.008893, allocations: 63.8 kB / 382.2 MB, free: 14.67 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.0005815/0.009474, allocations: 384.5 kB / 382.5 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.777e-05/0.009572, allocations: 126.5 kB / 382.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-06/0.009574, allocations: 0 / 382.7 MB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.009604, allocations: 92.73 kB / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.895e-05/0.009703, allocations: 0 / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001807/0.009883, allocations: 128 kB / 382.9 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.248e-05/0.009916, allocations: 55.36 kB / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.009921, allocations: 3.938 kB / 382.9 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.288e-05/0.009934, allocations: 8.625 kB / 383 MB, free: 13.86 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009934, allocations: 4 kB / 383 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Templates: time 0.003388/0.01332, allocations: 1.645 MB / 384.6 MB, free: 12.21 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.320290058851242]