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.001489/0.001489, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002/0.002, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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.409/1.409, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 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.2306/0.2306, allocations: 46.96 MB / 361.6 MB, free: 4.008 MB / 286.1 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 0.002003/0.002003, allocations: 64.09 kB / 0.4973 GB, free: 7.215 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3532, allocations: 66.03 MB / 0.5618 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001697/0.3549, allocations: 493 kB / 0.5623 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007967/0.3557, allocations: 257.5 kB / 0.5625 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.3558, allocations: 0 / 0.5625 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.3558, allocations: 0 / 0.5625 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.28e-05/0.3558, allocations: 3.938 kB / 0.5625 GB, free: 3.41 MB / 398.1 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.0003755/0.3562, allocations: 55.83 kB / 0.5626 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.763e-05/0.3562, allocations: 3.984 kB / 0.5626 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.3563, allocations: 0 / 0.5626 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.298e-05/0.3563, allocations: 3.984 kB / 0.5626 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.012e-05/0.3563, allocations: 8 kB / 0.5626 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.877e-06/0.3563, allocations: 0 / 0.5626 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.3565, allocations: 67.89 kB / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.3565, allocations: 0 / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.3565, allocations: 0 / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.3567, allocations: 55.72 kB / 0.5627 GB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3567, allocations: 0 / 0.5627 GB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3567, allocations: 3.938 kB / 0.5627 GB, free: 3.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3567, allocations: 3.938 kB / 0.5627 GB, free: 3.215 MB / 398.1 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.0003931/0.3571, allocations: 282.5 kB / 0.563 GB, free: 2.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3571, allocations: 12.03 kB / 0.563 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.3572, allocations: 4.938 kB / 0.563 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.991e-05/0.3573, allocations: 102.5 kB / 0.5631 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.3573, allocations: 384 / 0.5631 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.3573, allocations: 4.375 kB / 0.5631 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.3574, allocations: 55.95 kB / 0.5631 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.3574, allocations: 192 / 0.5631 GB, free: 2.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3574, allocations: 3.938 kB / 0.5631 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3574, allocations: 4 kB / 0.5631 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.311e-05/0.3575, allocations: 29.7 kB / 0.5632 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001217/0.3576, allocations: 93.33 kB / 0.5633 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.58e-05/0.3577, allocations: 52.25 kB / 0.5633 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/0.3577, allocations: 38.53 kB / 0.5634 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.3577, allocations: 4.062 kB / 0.5634 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.3578, allocations: 60.27 kB / 0.5634 GB, free: 2.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3578, allocations: 0 / 0.5634 GB, free: 2.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002303/0.358, allocations: 122.7 kB / 0.5635 GB, free: 2.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.3581, allocations: 77.11 kB / 0.5636 GB, free: 2.102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.581e-05/0.3581, allocations: 93.81 kB / 0.5637 GB, free: 2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.3582, allocations: 29.7 kB / 0.5637 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.297e-05/0.3582, allocations: 80.14 kB / 0.5638 GB, free: 1.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.3582, allocations: 8.125 kB / 0.5638 GB, free: 1.875 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.3582, allocations: 9.719 kB / 0.5638 GB, free: 1.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3584, allocations: 314.8 kB / 0.5641 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.714e-05/0.3584, allocations: 29.64 kB / 0.5641 GB, free: 1.508 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.02e-05/0.3585, allocations: 25.7 kB / 0.5642 GB, free: 1.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.022e-05/0.3585, allocations: 68.25 kB / 0.5642 GB, free: 1.395 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3585, allocations: 0 / 0.5642 GB, free: 1.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.483e-05/0.3586, allocations: 89.05 kB / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.3587, allocations: 33.7 kB / 0.5644 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3587, allocations: 8.078 kB / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3587, allocations: 0 / 0.5644 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.271e-06/0.3587, allocations: 7.938 kB / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.3587, allocations: 0 / 0.5644 GB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.758e-05/0.3587, allocations: 3.938 kB / 0.5644 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.3587, allocations: 0 / 0.5644 GB, free: 1.23 MB / 398.1 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.0001034/0.3588, allocations: 135.5 kB / 0.5645 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.487e-06/0.3588, allocations: 4 kB / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.263e-05/0.3588, allocations: 3 kB / 0.5645 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3588, allocations: 7.938 kB / 0.5645 GB, free: 1.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3588, allocations: 4 kB / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3589, allocations: 0 / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.307e-05/0.3589, allocations: 97.31 kB / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3589, allocations: 0 / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3589, allocations: 0 / 0.5646 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.3589, allocations: 4 kB / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.3589, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3589, allocations: 0 / 0.5646 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.359, allocations: 3.938 kB / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.3591, allocations: 120.5 kB / 0.5647 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.128e-06/0.3591, allocations: 32 / 0.5647 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.3591, allocations: 8 kB / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.3591, allocations: 0 / 0.5647 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.3591, allocations: 3.938 kB / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-06/0.3591, allocations: 0 / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.055e-05/0.3592, allocations: 75.28 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3592, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002678/0.3594, allocations: 27.92 kB / 0.5648 GB, free: 0.668 MB / 398.1 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.0008199/0.3603, allocations: 297.2 kB / 0.5651 GB, free: 464 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000167/0.3604, allocations: 118.8 kB / 0.5652 GB, free: 320 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3604, allocations: 4.062 kB / 0.5652 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.934e-05/0.3605, allocations: 81.05 kB / 0.5653 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001241/0.3606, allocations: 7.938 kB / 0.5653 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002798/0.3609, allocations: 110.7 kB / 0.5654 GB, free: 64 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.182e-05/0.361, allocations: 59.34 kB / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.361, allocations: 0 / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.586e-05/0.361, allocations: 7.438 kB / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.361, allocations: 0 / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of Templates: time 0.004001/0.365, allocations: 0.8058 MB / 0.5663 GB, free: 15.18 MB / 414.1 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=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/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.911266180002713]