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.001114/0.001114, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001259/0.001259, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.021/1.021, allocations: 177 MB / 204.8 MB, free: 5.602 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.2934/0.2934, allocations: 34.86 MB / 296.3 MB, free: 480 kB / 266.7 MB " [Timeout remaining time 180] 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.743e-06/1.743e-06, allocations: 0 / 378.7 MB, free: 2.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.81e-05/2.985e-05, allocations: 4.141 kB / 378.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00176/0.00179, allocations: 493 kB / 379.2 MB, free: 1.602 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006322/0.002422, allocations: 263.3 kB / 379.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.489e-05/0.002447, allocations: 0 / 379.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.002467, allocations: 0 / 379.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-06/0.002474, allocations: 0 / 379.5 MB, free: 1.344 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.0003967/0.00287, allocations: 55.69 kB / 379.5 MB, free: 1.289 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.48e-05/0.002925, allocations: 8 kB / 379.5 MB, free: 1.281 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.002966, allocations: 3.984 kB / 379.5 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.001e-05/0.002996, allocations: 4 kB / 379.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.671e-05/0.003022, allocations: 0 / 379.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.003033, allocations: 0 / 379.5 MB, free: 1.273 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.003206, allocations: 59.89 kB / 379.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.107e-06/0.003215, allocations: 0 / 379.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.606e-05/0.003242, allocations: 0 / 379.6 MB, free: 1.215 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.003406, allocations: 75.72 kB / 379.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.003409, allocations: 0 / 379.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.00341, allocations: 0 / 379.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.003414, allocations: 4 kB / 379.7 MB, free: 1.137 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.0003425/0.003757, allocations: 381.9 kB / 380.1 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.003802, allocations: 12.03 kB / 380.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.00384, allocations: 0.9375 kB / 380.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.042e-05/0.003911, allocations: 104.6 kB / 380.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.003923, allocations: 384 / 380.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.003935, allocations: 4.375 kB / 380.2 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.004043, allocations: 59.89 kB / 380.2 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.004054, allocations: 4.172 kB / 380.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.004065, allocations: 4.375 kB / 380.2 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.004073, allocations: 4.375 kB / 380.2 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.437e-05/0.004098, allocations: 29.64 kB / 380.3 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.004207, allocations: 112.6 kB / 380.4 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.379e-05/0.00426, allocations: 52.77 kB / 380.4 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.595e-05/0.004286, allocations: 41.48 kB / 380.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.408e-06/0.004291, allocations: 0 / 380.5 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.004335, allocations: 71.02 kB / 380.5 MB, free: 108 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.004336, allocations: 0 / 380.5 MB, free: 108 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002092/0.004545, allocations: 114.8 kB / 380.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.402e-05/0.004589, allocations: 85.22 kB / 380.7 MB, free: 15.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.995e-05/0.004639, allocations: 146.2 kB / 380.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.004651, allocations: 25.7 kB / 380.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.722e-05/0.004688, allocations: 130.8 kB / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.004705, allocations: 352 / 381 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.004737, allocations: 19.38 kB / 381.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.004884, allocations: 0.4883 MB / 381.5 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.295e-05/0.004907, allocations: 25.7 kB / 381.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.794e-05/0.004925, allocations: 29.7 kB / 381.6 MB, free: 14.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.472e-05/0.004979, allocations: 71.02 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.004982, allocations: 4.062 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.93e-05/0.005071, allocations: 89.06 kB / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.005103, allocations: 33.7 kB / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.005108, allocations: 0 / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.005121, allocations: 0 / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-06/0.005125, allocations: 0 / 381.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.005132, allocations: 3.984 kB / 381.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.722e-05/0.005149, allocations: 7.938 kB / 381.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.005156, allocations: 0 / 381.8 MB, free: 14.71 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 8.601e-05/0.005242, allocations: 178.3 kB / 382 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.005252, allocations: 8.031 kB / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.178e-05/0.005264, allocations: 3 kB / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.005266, allocations: 0 / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.005269, allocations: 0 / 382 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.005272, allocations: 3.938 kB / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.215e-05/0.005344, allocations: 116.6 kB / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.005346, allocations: 0 / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.81e-07/0.005347, allocations: 0 / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.005349, allocations: 0 / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.005356, allocations: 0 / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.005358, allocations: 0 / 382.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.005361, allocations: 8 kB / 382.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.005491, allocations: 131.8 kB / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-06/0.005495, allocations: 0 / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.005511, allocations: 0 / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.077e-05/0.005522, allocations: 4 kB / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.005534, allocations: 0 / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.005538, allocations: 0 / 382.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.286e-05/0.005571, allocations: 119.2 kB / 382.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.005571, allocations: 3.938 kB / 382.4 MB, free: 14.06 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002416/0.005813, allocations: 27.92 kB / 382.4 MB, free: 14.03 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.0007262/0.006539, allocations: 316.1 kB / 382.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.006655, allocations: 118.5 kB / 382.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.006658, allocations: 4 kB / 382.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.091e-05/0.006699, allocations: 88.78 kB / 382.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.006838, allocations: 7.938 kB / 382.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001989/0.007036, allocations: 117.7 kB / 383 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.407e-05/0.00707, allocations: 55.34 kB / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.007076, allocations: 0 / 383.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.303e-05/0.007089, allocations: 12.62 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of SimCode: time 7.32e-07/0.00709, allocations: 4 kB / 383.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003388/0.01048, allocations: 0.834 MB / 383.9 MB, free: 12.44 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.1745384223759174]