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.001137/0.001137, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001057/0.001057, allocations: 171.3 kB / 24.82 MB, free: 9.266 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 1.07/1.07, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] 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.3364/0.3364, allocations: 34.26 MB / 296.1 MB, free: 0.7109 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 3.416e-06/3.416e-06, allocations: 0 / 378.5 MB, free: 2.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.619e-05/3.96e-05, allocations: 2.312 kB / 378.5 MB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001581/0.001621, allocations: 0.492 MB / 379 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006403/0.002261, allocations: 259.3 kB / 379.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.713e-05/0.002298, allocations: 0 / 379.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.043e-05/0.002318, allocations: 0 / 379.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.735e-06/0.002326, allocations: 7.938 kB / 379.2 MB, free: 1.676 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.0003675/0.002694, allocations: 55.69 kB / 379.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.688e-05/0.002761, allocations: 4 kB / 379.3 MB, free: 1.617 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.567e-05/0.002806, allocations: 4 kB / 379.3 MB, free: 1.613 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.054e-05/0.002847, allocations: 3.984 kB / 379.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.604e-05/0.002883, allocations: 0 / 379.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.002897, allocations: 0 / 379.3 MB, free: 1.609 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001608/0.003058, allocations: 63.88 kB / 379.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.237e-05/0.00307, allocations: 0 / 379.3 MB, free: 1.547 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.342e-05/0.003094, allocations: 4 kB / 379.3 MB, free: 1.543 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.003228, allocations: 55.88 kB / 379.4 MB, free: 1.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.00323, allocations: 4 kB / 379.4 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.00323, allocations: 0 / 379.4 MB, free: 1.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.003235, allocations: 0 / 379.4 MB, free: 1.484 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.0003407/0.003576, allocations: 393.9 kB / 379.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.003629, allocations: 12.02 kB / 379.8 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.281e-05/0.003662, allocations: 4.875 kB / 379.8 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.561e-05/0.003737, allocations: 108.6 kB / 379.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.003748, allocations: 384 / 379.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-06/0.003754, allocations: 384 / 379.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.837e-05/0.003843, allocations: 55.97 kB / 380 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.003851, allocations: 4.188 kB / 380 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.00386, allocations: 4.359 kB / 380 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.003867, allocations: 384 / 380 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.896e-05/0.003886, allocations: 29.64 kB / 380 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001059/0.003991, allocations: 97.25 kB / 380.1 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.252e-05/0.004044, allocations: 64.73 kB / 380.2 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.15e-05/0.004065, allocations: 37.39 kB / 380.2 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-06/0.004069, allocations: 0 / 380.2 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.004112, allocations: 63.16 kB / 380.3 MB, free: 480 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.004113, allocations: 0 / 380.3 MB, free: 480 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001867/0.004299, allocations: 118.8 kB / 380.4 MB, free: 336 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.004344, allocations: 81.05 kB / 380.5 MB, free: 236 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.627e-05/0.00441, allocations: 142.2 kB / 380.6 MB, free: 80 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.00442, allocations: 25.7 kB / 380.6 MB, free: 48 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.004469, allocations: 126.9 kB / 380.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.004488, allocations: 352 / 380.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.004513, allocations: 19.38 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.004671, allocations: 0.4961 MB / 381.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.188e-05/0.004693, allocations: 29.7 kB / 381.3 MB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.632e-05/0.004709, allocations: 25.7 kB / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.98e-05/0.004759, allocations: 71.22 kB / 381.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.004762, allocations: 0 / 381.4 MB, free: 15.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.99e-05/0.004842, allocations: 96.98 kB / 381.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.004879, allocations: 29.7 kB / 381.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.004889, allocations: 0 / 381.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.004903, allocations: 0 / 381.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-06/0.004906, allocations: 4 kB / 381.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.004908, allocations: 4 kB / 381.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.139e-05/0.00492, allocations: 0 / 381.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-06/0.004926, allocations: 0 / 381.5 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.0001053/0.005031, allocations: 194.2 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-06/0.005035, allocations: 0 / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.761e-05/0.005052, allocations: 6.984 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.005054, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.005056, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.005061, allocations: 4 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.01e-05/0.005131, allocations: 93.2 kB / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.005132, allocations: 0 / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.005132, allocations: 0 / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.51e-07/0.005132, allocations: 0 / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-06/0.005136, allocations: 4 kB / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.005136, allocations: 4 kB / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.005138, allocations: 0 / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.447e-05/0.005232, allocations: 131.7 kB / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-06/0.005236, allocations: 0 / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.548e-06/0.005246, allocations: 0 / 381.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.27e-06/0.005251, allocations: 7.984 kB / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.133e-05/0.005262, allocations: 4 kB / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-06/0.005264, allocations: 0 / 382 MB, free: 14.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.531e-05/0.0053, allocations: 119.2 kB / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0053, allocations: 0 / 382.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.005446, allocations: 23.97 kB / 382.1 MB, free: 14.42 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.0006947/0.006141, allocations: 309.2 kB / 382.4 MB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.00629, allocations: 126.5 kB / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.006292, allocations: 0 / 382.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.073e-05/0.006332, allocations: 92.73 kB / 382.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001063/0.006439, allocations: 3.938 kB / 382.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002165/0.006655, allocations: 121.6 kB / 382.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.032e-05/0.006696, allocations: 55.48 kB / 382.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.985e-06/0.006704, allocations: 0 / 382.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.11e-05/0.006755, allocations: 78.2 kB / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.006756, allocations: 0 / 382.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of Templates: time 0.003355/0.01011, allocations: 0.9435 MB / 383.8 MB, free: 12.67 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","",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.2811082950793207]