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.0008847/0.0008847, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.003019/0.003019, allocations: 159.7 kB / 24.7 MB, free: 9.441 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 0.9042/0.9042, allocations: 177 MB / 204.9 MB, free: 5.762 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.2397/0.2397, allocations: 34.24 MB / 295.6 MB, free: 0.6719 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.854e-06/1.854e-06, allocations: 0 / 443.4 MB, free: 1.117 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.371e-05/2.557e-05, allocations: 2.281 kB / 443.4 MB, free: 1.113 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0009959/0.001021, allocations: 489 kB / 443.9 MB, free: 0.6367 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004801/0.001502, allocations: 255.4 kB / 444.1 MB, free: 396 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.532e-05/0.001527, allocations: 0 / 444.1 MB, free: 396 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.777e-05/0.001545, allocations: 4 kB / 444.1 MB, free: 392 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.704e-06/0.001552, allocations: 0 / 444.1 MB, free: 392 kB / 410.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.0003324/0.001885, allocations: 47.77 kB / 444.2 MB, free: 344 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.957e-05/0.001944, allocations: 4 kB / 444.2 MB, free: 340 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.648e-05/0.001991, allocations: 7.984 kB / 444.2 MB, free: 332 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.161e-05/0.002022, allocations: 4 kB / 444.2 MB, free: 328 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.847e-05/0.002051, allocations: 3.984 kB / 444.2 MB, free: 324 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.002064, allocations: 0 / 444.2 MB, free: 324 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.002191, allocations: 67.83 kB / 444.3 MB, free: 256 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.002198, allocations: 3.938 kB / 444.3 MB, free: 252 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.998e-05/0.002218, allocations: 0 / 444.3 MB, free: 252 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000132/0.00235, allocations: 67.8 kB / 444.3 MB, free: 184 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.002352, allocations: 0 / 444.3 MB, free: 184 kB / 410.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.002353, allocations: 0 / 444.3 MB, free: 184 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.002357, allocations: 4 kB / 444.3 MB, free: 180 kB / 410.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.2112/0.2136, allocations: 278.4 kB / 444.6 MB, free: 44.35 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.2137, allocations: 11.98 kB / 444.6 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.979e-05/0.2137, allocations: 0.9375 kB / 444.6 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.43e-05/0.2138, allocations: 102.9 kB / 444.7 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.2138, allocations: 3.25 kB / 444.7 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.2138, allocations: 4.031 kB / 444.7 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.2139, allocations: 56.09 kB / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2139, allocations: 192 / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.2139, allocations: 1.219 kB / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.2139, allocations: 1.656 kB / 444.8 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.401e-05/0.2139, allocations: 35.88 kB / 444.8 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.79e-05/0.214, allocations: 99.14 kB / 444.9 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.411e-05/0.2141, allocations: 48.94 kB / 445 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.579e-05/0.2141, allocations: 34.41 kB / 445 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.2141, allocations: 0 / 445 MB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2141, allocations: 62.48 kB / 445.1 MB, free: 43.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.2141, allocations: 0 / 445.1 MB, free: 43.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002/0.2143, allocations: 120.6 kB / 445.2 MB, free: 43.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.2144, allocations: 78.75 kB / 445.2 MB, free: 43.62 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.325e-05/0.2144, allocations: 90.61 kB / 445.3 MB, free: 43.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.615e-06/0.2144, allocations: 25.7 kB / 445.4 MB, free: 43.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.252e-05/0.2144, allocations: 84.64 kB / 445.4 MB, free: 43.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.518e-05/0.2144, allocations: 3.828 kB / 445.4 MB, free: 43.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.2145, allocations: 14 kB / 445.5 MB, free: 43.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.2145, allocations: 316.2 kB / 445.8 MB, free: 43.08 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.629e-05/0.2145, allocations: 33.48 kB / 445.8 MB, free: 43.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.33e-05/0.2145, allocations: 31.97 kB / 445.8 MB, free: 43.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.66e-05/0.2146, allocations: 62.67 kB / 445.9 MB, free: 42.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2146, allocations: 0 / 445.9 MB, free: 42.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.103e-05/0.2146, allocations: 92.59 kB / 446 MB, free: 42.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.2147, allocations: 31.64 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.2147, allocations: 0 / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.2147, allocations: 3.656 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.2147, allocations: 2.516 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2147, allocations: 0 / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.2147, allocations: 10.78 kB / 446 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.2147, allocations: 0 / 446 MB, free: 42.82 MB / 410.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 5.376e-05/0.2148, allocations: 140.5 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-06/0.2148, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.212e-05/0.2148, allocations: 3 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2148, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2148, allocations: 2.969 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2148, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.168e-05/0.2148, allocations: 97.27 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.7e-07/0.2148, allocations: 0 / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.282e-06/0.2148, allocations: 9.922 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.51e-07/0.2148, allocations: 0 / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.2149, allocations: 1 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.2149, allocations: 2.438 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.31e-07/0.2149, allocations: 0 / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.934e-05/0.2149, allocations: 119.6 kB / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.599e-06/0.2149, allocations: 5.562 kB / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.2149, allocations: 0 / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.989e-06/0.2149, allocations: 0 / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.215, allocations: 2.969 kB / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-06/0.215, allocations: 0.5938 kB / 446.4 MB, free: 42.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.538e-05/0.215, allocations: 80.34 kB / 446.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.215, allocations: 0 / 446.5 MB, free: 42.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001914/0.2152, allocations: 24.59 kB / 446.5 MB, free: 42.34 MB / 410.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.0005093/0.2157, allocations: 301.5 kB / 446.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.2158, allocations: 119 kB / 446.9 MB, free: 42.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2158, allocations: 2.656 kB / 446.9 MB, free: 42.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.396e-05/0.2158, allocations: 84.53 kB / 447 MB, free: 42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001117/0.2159, allocations: 5.031 kB / 447 MB, free: 42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001723/0.2161, allocations: 125.7 kB / 447.1 MB, free: 41.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.533e-05/0.2161, allocations: 54.55 kB / 447.2 MB, free: 41.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.134e-05/0.2161, allocations: 11.12 kB / 447.2 MB, free: 41.78 MB / 410.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2161, allocations: 0 / 447.2 MB, free: 41.78 MB / 410.7 MB Notification: Performance of Templates: time 0.002156/0.2183, allocations: 0.9756 MB / 448.2 MB, free: 41.68 MB / 410.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=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.6036219242960215]