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.001864/0.001864, allocations: 84.95 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002355/0.002355, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 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.574/1.574, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] 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.2151/0.2151, allocations: 34.25 MB / 294.8 MB, free: 14.54 MB / 286.1 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.854e-06/1.854e-06, allocations: 0 / 442.6 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.463e-05/2.648e-05, allocations: 8.75 kB / 442.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001278/0.001305, allocations: 493.2 kB / 443.1 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006391/0.001944, allocations: 267.1 kB / 443.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.247e-05/0.001966, allocations: 0 / 443.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.001983, allocations: 0 / 443.4 MB, free: 4.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.189e-06/0.001988, allocations: 0 / 443.4 MB, free: 4.602 MB / 366.1 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.0003194/0.002307, allocations: 51.77 kB / 443.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.848e-05/0.002356, allocations: 4 kB / 443.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.018e-05/0.002396, allocations: 0 / 443.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.563e-05/0.002422, allocations: 3.984 kB / 443.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.937e-05/0.002451, allocations: 4 kB / 443.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.002463, allocations: 0 / 443.4 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001897/0.002652, allocations: 63.89 kB / 443.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.047e-05/0.002663, allocations: 0 / 443.5 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.322e-05/0.002686, allocations: 3.938 kB / 443.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.00285, allocations: 67.78 kB / 443.6 MB, free: 4.406 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.002854, allocations: 4 kB / 443.6 MB, free: 4.402 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.91e-07/0.002855, allocations: 3.938 kB / 443.6 MB, free: 4.398 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.00286, allocations: 4 kB / 443.6 MB, free: 4.395 MB / 366.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.0003735/0.003233, allocations: 272 kB / 443.8 MB, free: 4.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.003285, allocations: 8.031 kB / 443.8 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.135e-05/0.003316, allocations: 4.938 kB / 443.9 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.094e-05/0.003407, allocations: 113.7 kB / 444 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.003421, allocations: 384 / 444 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.26e-05/0.003433, allocations: 384 / 444 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.003547, allocations: 59.95 kB / 444 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.003556, allocations: 192 / 444 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.003564, allocations: 384 / 444 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.003569, allocations: 8.312 kB / 444 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.615e-05/0.003606, allocations: 33.64 kB / 444.1 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.003746, allocations: 93.33 kB / 444.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.826e-05/0.003834, allocations: 52.25 kB / 444.2 MB, free: 3.637 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.261e-05/0.003867, allocations: 30.56 kB / 444.2 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.003877, allocations: 0 / 444.2 MB, free: 3.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.614e-05/0.003933, allocations: 64.31 kB / 444.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.282e-06/0.003934, allocations: 0 / 444.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002167/0.004151, allocations: 114.8 kB / 444.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.05e-05/0.004221, allocations: 81.09 kB / 444.5 MB, free: 3.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.911e-05/0.00427, allocations: 93.98 kB / 444.6 MB, free: 3.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.004289, allocations: 25.7 kB / 444.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.07e-05/0.00433, allocations: 80.14 kB / 444.7 MB, free: 3.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.004355, allocations: 7.953 kB / 444.7 MB, free: 3.062 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.004382, allocations: 9.719 kB / 444.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.004532, allocations: 322.7 kB / 445 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.636e-05/0.004559, allocations: 29.7 kB / 445 MB, free: 2.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.761e-05/0.004576, allocations: 25.7 kB / 445.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.246e-05/0.004639, allocations: 64.25 kB / 445.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.00464, allocations: 64 / 445.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.78e-05/0.004728, allocations: 93.11 kB / 445.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.004764, allocations: 33.7 kB / 445.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.004769, allocations: 0 / 445.3 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.004788, allocations: 7.984 kB / 445.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.004788, allocations: 0 / 445.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.004795, allocations: 3.984 kB / 445.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.374e-05/0.004809, allocations: 3.938 kB / 445.3 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.004819, allocations: 7.922 kB / 445.3 MB, free: 2.406 MB / 366.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.0001036/0.004923, allocations: 135.5 kB / 445.4 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-06/0.00493, allocations: 4.031 kB / 445.4 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.436e-05/0.004944, allocations: 3 kB / 445.4 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.004945, allocations: 3.938 kB / 445.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.004949, allocations: 0 / 445.4 MB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.004952, allocations: 4 kB / 445.4 MB, free: 2.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.749e-05/0.005039, allocations: 101.2 kB / 445.5 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.00504, allocations: 0 / 445.5 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.00504, allocations: 3.938 kB / 445.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.005041, allocations: 0 / 445.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.005051, allocations: 4 kB / 445.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.005052, allocations: 0 / 445.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-07/0.005052, allocations: 4 kB / 445.5 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.005178, allocations: 120.5 kB / 445.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-06/0.005182, allocations: 0 / 445.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.005193, allocations: 0 / 445.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.005204, allocations: 4 kB / 445.7 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.877e-05/0.005223, allocations: 3.938 kB / 445.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.005225, allocations: 0 / 445.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.005263, allocations: 75.28 kB / 445.7 MB, free: 1.871 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.005263, allocations: 0 / 445.7 MB, free: 1.871 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.005482, allocations: 27.92 kB / 445.8 MB, free: 1.844 MB / 366.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.0007258/0.006208, allocations: 291.3 kB / 446 MB, free: 1.605 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.006348, allocations: 114.8 kB / 446.2 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.006351, allocations: 0 / 446.2 MB, free: 1.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.093e-05/0.006422, allocations: 85.09 kB / 446.2 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001256/0.006547, allocations: 0 / 446.2 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.006761, allocations: 106.6 kB / 446.3 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.295e-05/0.006814, allocations: 55.36 kB / 446.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.102e-06/0.00682, allocations: 3.984 kB / 446.4 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.248e-05/0.006832, allocations: 8.5 kB / 446.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.006833, allocations: 8.062 kB / 446.4 MB, free: 1.137 MB / 366.1 MB Notification: Performance of Templates: time 0.003727/0.01056, allocations: 0.8318 MB / 447.3 MB, free: 316 kB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.9466379173099995]