Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0012/0.0012, allocations: 95.2 kB / 20.43 MB, free: 4.141 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.001209/0.001209, allocations: 165 kB / 23.79 MB, free: 0.7773 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8717/0.8717, allocations: 158.6 MB / 185.7 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1459/0.1459, allocations: 32.36 MB / 270.4 MB, free: 14.72 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.112e-06/1.112e-06, allocations: 0 / 347.6 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.735e-05/1.846e-05, allocations: 2.312 kB / 347.6 MB, free: 9.48 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0008505/0.000869, allocations: 0.5112 MB / 348.1 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004178/0.001287, allocations: 263.2 kB / 348.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.255e-05/0.001309, allocations: 0 / 348.4 MB, free: 8.719 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.001329, allocations: 3.938 kB / 348.4 MB, free: 8.715 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.642e-06/0.001335, allocations: 4 kB / 348.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003036/0.001639, allocations: 55.69 kB / 348.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.869e-05/0.001687, allocations: 0 / 348.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.287e-05/0.00172, allocations: 0 / 348.5 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.302e-05/0.001743, allocations: 4 kB / 348.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.255e-05/0.001766, allocations: 7.922 kB / 348.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-06/0.001775, allocations: 0 / 348.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.001894, allocations: 67.88 kB / 348.5 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.298e-06/0.001903, allocations: 0 / 348.5 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.001921, allocations: 0 / 348.5 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001056/0.002027, allocations: 59.88 kB / 348.6 MB, free: 8.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.002029, allocations: 4 kB / 348.6 MB, free: 8.516 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.002029, allocations: 0 / 348.6 MB, free: 8.516 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.327e-06/0.002032, allocations: 0 / 348.6 MB, free: 8.516 MB / 282.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.0002278/0.00226, allocations: 381.9 kB / 349 MB, free: 8.098 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.002296, allocations: 12.03 kB / 349 MB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.56e-05/0.002332, allocations: 0.9375 kB / 349 MB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.551e-05/0.002378, allocations: 116.5 kB / 349.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.002388, allocations: 384 / 349.1 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.002397, allocations: 4.375 kB / 349.1 MB, free: 7.941 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.136e-05/0.002478, allocations: 55.95 kB / 349.2 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.002485, allocations: 192 / 349.2 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.002494, allocations: 8.375 kB / 349.2 MB, free: 7.867 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.002501, allocations: 384 / 349.2 MB, free: 7.867 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.287e-05/0.002514, allocations: 29.64 kB / 349.2 MB, free: 7.832 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.938e-05/0.002583, allocations: 108.6 kB / 349.3 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.944e-05/0.002623, allocations: 60.69 kB / 349.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.421e-05/0.002637, allocations: 41.48 kB / 349.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.948e-06/0.002641, allocations: 0 / 349.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.002664, allocations: 59.09 kB / 349.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.002665, allocations: 0 / 349.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.002835, allocations: 118.8 kB / 349.6 MB, free: 7.348 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.002865, allocations: 89.05 kB / 349.7 MB, free: 7.242 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.535e-05/0.00289, allocations: 142.2 kB / 349.8 MB, free: 7.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.899e-06/0.002895, allocations: 25.7 kB / 349.8 MB, free: 7.059 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.731e-05/0.002913, allocations: 126.9 kB / 350 MB, free: 6.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.002928, allocations: 0 / 350 MB, free: 6.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.002947, allocations: 19.38 kB / 350 MB, free: 6.902 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.613e-05/0.002993, allocations: 496.1 kB / 350.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.315e-05/0.003006, allocations: 29.69 kB / 350.5 MB, free: 6.371 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.937e-06/0.003015, allocations: 29.7 kB / 350.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.918e-05/0.003054, allocations: 71.28 kB / 350.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.003056, allocations: 0 / 350.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.433e-05/0.003101, allocations: 89.09 kB / 350.7 MB, free: 6.145 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.003123, allocations: 33.69 kB / 350.7 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.003131, allocations: 3.938 kB / 350.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.003146, allocations: 0 / 350.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.799e-06/0.00315, allocations: 0 / 350.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.003156, allocations: 0 / 350.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.217e-05/0.003168, allocations: 8.281 kB / 350.7 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.003174, allocations: 0 / 350.7 MB, free: 6.094 MB / 282.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 4.423e-05/0.003218, allocations: 186.3 kB / 350.9 MB, free: 5.895 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-06/0.003224, allocations: 4 kB / 350.9 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.112e-05/0.003235, allocations: 6.938 kB / 350.9 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.003238, allocations: 3.984 kB / 350.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.003241, allocations: 0 / 350.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.003244, allocations: 0 / 350.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.679e-05/0.003291, allocations: 116.5 kB / 351 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.3e-07/0.003291, allocations: 0 / 351 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.003292, allocations: 0 / 351 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.81e-07/0.003293, allocations: 4 kB / 351 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-06/0.003301, allocations: 0 / 351 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.003302, allocations: 4 kB / 351 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.003303, allocations: 4 kB / 351 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.365e-05/0.003367, allocations: 135.7 kB / 351.2 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-06/0.003371, allocations: 0 / 351.2 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.003383, allocations: 0 / 351.2 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.19e-06/0.003389, allocations: 4 kB / 351.2 MB, free: 5.547 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.003402, allocations: 3.984 kB / 351.2 MB, free: 5.543 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.003404, allocations: 0 / 351.2 MB, free: 5.543 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.225e-05/0.003417, allocations: 119.2 kB / 351.3 MB, free: 5.426 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003417, allocations: 0 / 351.3 MB, free: 5.426 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001523/0.003569, allocations: 27.97 kB / 351.3 MB, free: 5.398 MB / 282.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.0004405/0.00401, allocations: 296.9 kB / 351.6 MB, free: 5.176 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.502e-05/0.004085, allocations: 122.5 kB / 351.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.004086, allocations: 0 / 351.7 MB, free: 5.027 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.43e-05/0.004101, allocations: 92.86 kB / 351.8 MB, free: 4.914 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.585e-05/0.004187, allocations: 4 kB / 351.8 MB, free: 4.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001435/0.00433, allocations: 121.6 kB / 351.9 MB, free: 4.754 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.829e-05/0.004348, allocations: 55.3 kB / 352 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.099e-06/0.004353, allocations: 0 / 352 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.132e-05/0.004365, allocations: 8.5 kB / 352 MB, free: 4.672 MB / 282.7 MB Notification: Performance of SimCode: time 6.02e-07/0.004365, allocations: 0 / 352 MB, free: 4.672 MB / 282.7 MB Notification: Performance of Templates: time 0.003176/0.007541, allocations: 0.9308 MB / 352.9 MB, free: 3.742 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.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: 2.8979714303277433]