Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.002629/0.002629, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.00309/0.00309, allocations: 161.3 kB / 24.27 MB, free: 152 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.568/1.568, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.3377/0.3377, allocations: 34.27 MB / 295.3 MB, free: 0.6914 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 377.2 MB, free: 3.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.587e-05/2.747e-05, allocations: 6.312 kB / 377.2 MB, free: 3.012 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00172/0.001748, allocations: 493 kB / 377.7 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006825/0.00243, allocations: 259.3 kB / 378 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.537e-05/0.002456, allocations: 0 / 378 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.108e-05/0.002467, allocations: 0 / 378 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.002471, allocations: 0 / 378 MB, free: 2.273 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003399/0.002811, allocations: 63.67 kB / 378 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.52e-05/0.002856, allocations: 0 / 378 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.274e-05/0.002889, allocations: 4 kB / 378 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.824e-05/0.002917, allocations: 4 kB / 378.1 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.464e-05/0.002942, allocations: 0 / 378.1 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-06/0.002951, allocations: 0 / 378.1 MB, free: 2.203 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.003116, allocations: 63.83 kB / 378.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.003124, allocations: 0 / 378.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.003148, allocations: 7.984 kB / 378.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.00332, allocations: 63.8 kB / 378.2 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.003325, allocations: 4 kB / 378.2 MB, free: 2.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003326, allocations: 0 / 378.2 MB, free: 2.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.00333, allocations: 0 / 378.2 MB, free: 2.066 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.0004441/0.003774, allocations: 389.9 kB / 378.6 MB, free: 1.641 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.003812, allocations: 8.031 kB / 378.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.003853, allocations: 0.9375 kB / 378.6 MB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.003957, allocations: 108.6 kB / 378.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.003969, allocations: 384 / 378.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-06/0.003976, allocations: 384 / 378.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.004094, allocations: 63.95 kB / 378.7 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.004103, allocations: 192 / 378.7 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.00411, allocations: 384 / 378.7 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.004114, allocations: 384 / 378.7 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.165e-05/0.004166, allocations: 37.56 kB / 378.8 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.004301, allocations: 112.6 kB / 378.9 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.768e-05/0.004389, allocations: 56.8 kB / 379 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.684e-05/0.004426, allocations: 33.39 kB / 379 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.004437, allocations: 3.984 kB / 379 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.929e-05/0.004507, allocations: 71.16 kB / 379.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.004508, allocations: 0 / 379.1 MB, free: 1.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002286/0.004736, allocations: 114.8 kB / 379.2 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.68e-05/0.004803, allocations: 81.09 kB / 379.2 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.051e-05/0.004894, allocations: 146.2 kB / 379.4 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.004911, allocations: 25.83 kB / 379.4 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.729e-05/0.004978, allocations: 134.9 kB / 379.5 MB, free: 484 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.004994, allocations: 0 / 379.5 MB, free: 484 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.005027, allocations: 15.38 kB / 379.6 MB, free: 460 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.005301, allocations: 0.4883 MB / 380.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.662e-05/0.005327, allocations: 25.7 kB / 380.1 MB, free: 15.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.357e-05/0.005351, allocations: 25.7 kB / 380.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.003e-05/0.005421, allocations: 71.08 kB / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.005423, allocations: 0 / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.442e-05/0.005517, allocations: 89.05 kB / 380.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.005554, allocations: 39.83 kB / 380.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.005558, allocations: 0 / 380.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.005572, allocations: 4 kB / 380.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.005573, allocations: 3.938 kB / 380.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.005581, allocations: 3.984 kB / 380.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.005596, allocations: 3.938 kB / 380.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.005604, allocations: 4 kB / 380.3 MB, free: 15.63 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.0001229/0.005727, allocations: 182.3 kB / 380.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.00574, allocations: 7.953 kB / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-06/0.005747, allocations: 3 kB / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.005748, allocations: 4 kB / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.00575, allocations: 0 / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.005752, allocations: 0 / 380.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.005852, allocations: 116.6 kB / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.005853, allocations: 0 / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.005854, allocations: 0 / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.005855, allocations: 0 / 380.6 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.005863, allocations: 3.984 kB / 380.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.005864, allocations: 0 / 380.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.005864, allocations: 3.938 kB / 380.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001519/0.006016, allocations: 139.8 kB / 380.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-06/0.00602, allocations: 0 / 380.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.00603, allocations: 0 / 380.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-06/0.006038, allocations: 0 / 380.8 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.006055, allocations: 4 kB / 380.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.006058, allocations: 0 / 380.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.867e-05/0.006116, allocations: 119.2 kB / 380.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006116, allocations: 0 / 380.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002394/0.006356, allocations: 27.92 kB / 380.9 MB, free: 14.95 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.00102/0.007376, allocations: 301.8 kB / 381.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.007536, allocations: 130.4 kB / 381.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.007538, allocations: 0 / 381.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.992e-05/0.007608, allocations: 92.78 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/0.007732, allocations: 4 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.007967, allocations: 117.7 kB / 381.5 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.766e-05/0.008025, allocations: 55.34 kB / 381.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.00803, allocations: 4 kB / 381.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.342e-05/0.008043, allocations: 8.5 kB / 381.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.008044, allocations: 0 / 381.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of Templates: time 0.003817/0.01186, allocations: 0.8391 MB / 382.5 MB, free: 13.38 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.875547831994481]