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.001889/0.001889, allocations: 95.59 kB / 20.97 MB, free: 3.438 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.002064/0.002064, allocations: 156.9 kB / 24.27 MB, free: 144 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.596/1.596, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 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.3426/0.3426, allocations: 34.25 MB / 295.2 MB, free: 0.6328 MB / 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.283e-06/1.283e-06, allocations: 0 / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.643e-05, allocations: 3.859 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001587/0.001614, allocations: 492.9 kB / 377.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006852/0.002299, allocations: 255.4 kB / 377.9 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.065e-05/0.002319, allocations: 0 / 377.9 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.114e-05/0.002331, allocations: 3.938 kB / 377.9 MB, free: 2.195 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.029e-06/0.002336, allocations: 0 / 377.9 MB, free: 2.195 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.0003245/0.00266, allocations: 55.7 kB / 378 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.083e-05/0.002711, allocations: 11.97 kB / 378 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.922e-05/0.00274, allocations: 4 kB / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.647e-05/0.002767, allocations: 0 / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.308e-05/0.00279, allocations: 4 kB / 378 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.967e-06/0.002799, allocations: 0 / 378 MB, free: 2.121 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.002959, allocations: 63.83 kB / 378 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.823e-06/0.002966, allocations: 4 kB / 378 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.869e-05/0.002984, allocations: 0 / 378 MB, free: 2.055 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.00314, allocations: 63.84 kB / 378.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.003142, allocations: 0 / 378.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.003143, allocations: 0 / 378.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.003147, allocations: 0 / 378.1 MB, free: 1.992 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.0004168/0.003564, allocations: 389.9 kB / 378.5 MB, free: 1.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.0036, allocations: 8.031 kB / 378.5 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.774e-05/0.003638, allocations: 4.938 kB / 378.5 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.003739, allocations: 112.6 kB / 378.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.00375, allocations: 384 / 378.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.281e-06/0.003756, allocations: 384 / 378.6 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.003858, allocations: 55.97 kB / 378.7 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.003868, allocations: 4.172 kB / 378.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.003875, allocations: 384 / 378.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.003882, allocations: 4.359 kB / 378.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.077e-05/0.003933, allocations: 33.64 kB / 378.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.004079, allocations: 108.6 kB / 378.8 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.977e-05/0.004169, allocations: 64.73 kB / 378.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.082e-05/0.004209, allocations: 33.39 kB / 378.9 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.004217, allocations: 0 / 378.9 MB, free: 1.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.646e-05/0.004284, allocations: 67.16 kB / 379 MB, free: 0.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.004285, allocations: 0 / 379 MB, free: 0.957 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002278/0.004512, allocations: 118.8 kB / 379.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.004582, allocations: 81.05 kB / 379.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.458e-05/0.004677, allocations: 142.2 kB / 379.3 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.004694, allocations: 25.7 kB / 379.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.004769, allocations: 131 kB / 379.5 MB, free: 412 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.01e-05/0.004789, allocations: 7.984 kB / 379.5 MB, free: 404 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.004826, allocations: 19.38 kB / 379.5 MB, free: 376 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002843/0.005111, allocations: 0.4883 MB / 380 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.022e-05/0.005141, allocations: 25.7 kB / 380 MB, free: 15.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.332e-05/0.005164, allocations: 25.7 kB / 380 MB, free: 15.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.698e-05/0.005231, allocations: 63.09 kB / 380.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.005233, allocations: 0 / 380.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001058/0.005339, allocations: 93.09 kB / 380.2 MB, free: 15.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.005377, allocations: 37.64 kB / 380.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.005382, allocations: 8.031 kB / 380.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.005394, allocations: 0 / 380.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.005395, allocations: 0 / 380.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.005399, allocations: 0 / 380.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.528e-05/0.005415, allocations: 3.938 kB / 380.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.005427, allocations: 4 kB / 380.2 MB, free: 15.56 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.0001277/0.005555, allocations: 182.3 kB / 380.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.47e-05/0.00557, allocations: 7.953 kB / 380.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-06/0.005577, allocations: 3 kB / 380.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.005579, allocations: 0 / 380.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.005582, allocations: 4 kB / 380.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.005584, allocations: 0 / 380.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001078/0.005692, allocations: 116.6 kB / 380.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.005693, allocations: 0 / 380.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.926e-06/0.005696, allocations: 3.984 kB / 380.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.005697, allocations: 0 / 380.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.005705, allocations: 4 kB / 380.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.005706, allocations: 0 / 380.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.005707, allocations: 0 / 380.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001558/0.005863, allocations: 139.7 kB / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-06/0.005867, allocations: 32 / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.005886, allocations: 4 kB / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-06/0.005895, allocations: 0 / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.571e-05/0.00591, allocations: 4 kB / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.005913, allocations: 0 / 380.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.269e-05/0.005976, allocations: 119.2 kB / 380.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005976, allocations: 0 / 380.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002264/0.006202, allocations: 27.92 kB / 380.8 MB, free: 14.87 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.001056/0.007258, allocations: 290.9 kB / 381.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001496/0.007408, allocations: 118.5 kB / 381.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.00741, allocations: 4.062 kB / 381.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.873e-05/0.007488, allocations: 96.78 kB / 381.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.007621, allocations: 7.984 kB / 381.3 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.007875, allocations: 117.6 kB / 381.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.601e-05/0.007931, allocations: 51.36 kB / 381.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.229e-06/0.007937, allocations: 0 / 381.5 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.007952, allocations: 12.5 kB / 381.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.007953, allocations: 0 / 381.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of Templates: time 0.003806/0.01176, allocations: 0.8474 MB / 382.4 MB, free: 13.29 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","/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.840369270066731]