Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 85.8 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 161.4 kB / 24.82 MB, free: 9.309 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.032/1.032, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.368/0.368, allocations: 34.87 MB / 296.6 MB, free: 428 kB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 379.2 MB, free: 1.824 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.377e-05/2.549e-05, allocations: 6.25 kB / 379.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001174/0.0012, allocations: 498.2 kB / 379.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008494/0.002049, allocations: 259.3 kB / 379.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.851e-05/0.002078, allocations: 0 / 379.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.16e-05/0.002099, allocations: 0 / 379.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.726e-06/0.002108, allocations: 0 / 379.9 MB, free: 1.074 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0003202/0.002428, allocations: 59.67 kB / 380 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.453e-05/0.002483, allocations: 0 / 380 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.003e-05/0.002523, allocations: 8 kB / 380 MB, free: 1.008 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.097e-05/0.002554, allocations: 0 / 380 MB, free: 1.008 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.193e-05/0.002586, allocations: 4 kB / 380 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.002597, allocations: 0 / 380 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.002737, allocations: 59.89 kB / 380.1 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.073e-05/0.002748, allocations: 0 / 380.1 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.002768, allocations: 4 kB / 380.1 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.002892, allocations: 71.72 kB / 380.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.002894, allocations: 0 / 380.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.002895, allocations: 0 / 380.1 MB, free: 0.8711 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.002898, allocations: 0 / 380.1 MB, free: 0.8711 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.0002946/0.003193, allocations: 385.9 kB / 380.5 MB, free: 460 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.003235, allocations: 8.031 kB / 380.5 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.703e-05/0.003262, allocations: 8.938 kB / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.08e-05/0.003323, allocations: 108.6 kB / 380.6 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.003334, allocations: 4.359 kB / 380.6 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-06/0.003339, allocations: 384 / 380.6 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.567e-05/0.003415, allocations: 55.97 kB / 380.7 MB, free: 236 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.003424, allocations: 4.172 kB / 380.7 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-06/0.003429, allocations: 384 / 380.7 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.003435, allocations: 384 / 380.7 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.891e-05/0.003453, allocations: 37.58 kB / 380.7 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.829e-05/0.003532, allocations: 89.27 kB / 380.8 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.867e-05/0.00359, allocations: 68.78 kB / 380.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.939e-05/0.00361, allocations: 33.39 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-06/0.003615, allocations: 4 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.003652, allocations: 67.14 kB / 381 MB, free: 15.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.003653, allocations: 3.938 kB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001482/0.003802, allocations: 114.8 kB / 381.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/0.003834, allocations: 77.11 kB / 381.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.518e-05/0.003879, allocations: 142.2 kB / 381.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.457e-06/0.003889, allocations: 25.7 kB / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.145e-05/0.00392, allocations: 130.9 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.003937, allocations: 8.469 kB / 381.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.973e-05/0.003957, allocations: 15.38 kB / 381.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.004086, allocations: 0.4883 MB / 382 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.649e-05/0.004102, allocations: 29.7 kB / 382 MB, free: 14.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.325e-05/0.004116, allocations: 25.7 kB / 382 MB, free: 14.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.253e-05/0.004158, allocations: 63.09 kB / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.00416, allocations: 0 / 382.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.112e-05/0.004221, allocations: 96.98 kB / 382.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.004246, allocations: 29.7 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.00425, allocations: 4.094 kB / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.004262, allocations: 0 / 382.2 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.357e-06/0.004266, allocations: 4 kB / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.996e-06/0.004269, allocations: 0 / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.779e-06/0.004278, allocations: 0 / 382.2 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.004284, allocations: 0 / 382.2 MB, free: 14.47 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 7.4e-05/0.004358, allocations: 190.2 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-06/0.004364, allocations: 4 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.109e-05/0.004375, allocations: 3 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.004376, allocations: 0 / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.004378, allocations: 4 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.00438, allocations: 4 kB / 382.4 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.475e-05/0.004435, allocations: 97.19 kB / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.004436, allocations: 0 / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.31e-07/0.004436, allocations: 0 / 382.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.004438, allocations: 3.984 kB / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-06/0.004443, allocations: 4 kB / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.004443, allocations: 0 / 382.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.004446, allocations: 4 kB / 382.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.617e-05/0.004522, allocations: 127.7 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-06/0.004527, allocations: 3.984 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-06/0.004535, allocations: 7.969 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.478e-06/0.00454, allocations: 4 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.00455, allocations: 4 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-06/0.004552, allocations: 0 / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.029e-05/0.004582, allocations: 119.2 kB / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004582, allocations: 0 / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001566/0.004739, allocations: 19.94 kB / 382.8 MB, free: 13.81 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.0005265/0.005265, allocations: 303.4 kB / 383.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.827e-05/0.005363, allocations: 126.4 kB / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.005365, allocations: 0 / 383.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.212e-05/0.005397, allocations: 84.8 kB / 383.3 MB, free: 13.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.741e-05/0.005484, allocations: 11.92 kB / 383.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001483/0.005633, allocations: 113.7 kB / 383.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.667e-05/0.005659, allocations: 51.36 kB / 383.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.005664, allocations: 0 / 383.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.005708, allocations: 78.19 kB / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of SimCode: time 8.01e-07/0.005709, allocations: 0 / 383.6 MB, free: 13 MB / 362.7 MB Notification: Performance of Templates: time 0.00246/0.008169, allocations: 0.9428 MB / 384.5 MB, free: 12.06 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.1389526915736496]