Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001754/0.001754, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.001953/0.001953, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.585/1.585, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.247/0.247, allocations: 46.89 MB / 361.1 MB, free: 4.637 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002662/0.002662, allocations: 76.16 kB / 0.4967 GB, free: 8.406 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3443, allocations: 65.96 MB / 0.5612 GB, free: 34.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001409/0.3457, allocations: 488.4 kB / 0.5616 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005163/0.3463, allocations: 278.1 kB / 0.5619 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.346e-05/0.3463, allocations: 0 / 0.5619 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.3463, allocations: 2.625 kB / 0.5619 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.012e-06/0.3463, allocations: 0 / 0.5619 GB, free: 34.02 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:398:3-453: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.0003112/0.3466, allocations: 57.55 kB / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.422e-05/0.3467, allocations: 0 / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.3467, allocations: 3.062 kB / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.43e-05/0.3467, allocations: 0 / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.161e-05/0.3467, allocations: 3.469 kB / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-06/0.3467, allocations: 2.844 kB / 0.5619 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.3469, allocations: 73.28 kB / 0.562 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.3469, allocations: 0 / 0.562 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.736e-05/0.3469, allocations: 0 / 0.562 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.347, allocations: 59.69 kB / 0.5621 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.347, allocations: 0 / 0.5621 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.347, allocations: 0 / 0.5621 GB, free: 33.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.347, allocations: 0 / 0.5621 GB, free: 33.94 MB / 446.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.0002522/0.3473, allocations: 357.8 kB / 0.5624 GB, free: 33.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.879e-05/0.3473, allocations: 9.344 kB / 0.5624 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.3473, allocations: 0.9375 kB / 0.5624 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.242e-05/0.3474, allocations: 171.1 kB / 0.5626 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.209e-05/0.3474, allocations: 3.594 kB / 0.5626 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.3474, allocations: 384 / 0.5626 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.976e-05/0.3475, allocations: 32.97 kB / 0.5626 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.3475, allocations: 192 / 0.5626 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.3475, allocations: 3.938 kB / 0.5626 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.386e-06/0.3475, allocations: 1.219 kB / 0.5626 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.532e-05/0.3475, allocations: 0 / 0.5626 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.887e-05/0.3476, allocations: 153.7 kB / 0.5628 GB, free: 33.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.511e-05/0.3476, allocations: 22.42 kB / 0.5628 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.3476, allocations: 12.83 kB / 0.5628 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.3476, allocations: 0 / 0.5628 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.3477, allocations: 58.95 kB / 0.5629 GB, free: 33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3477, allocations: 0 / 0.5629 GB, free: 33 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001444/0.3478, allocations: 68.41 kB / 0.5629 GB, free: 32.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.3479, allocations: 77.11 kB / 0.563 GB, free: 32.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.308e-05/0.3479, allocations: 94.42 kB / 0.5631 GB, free: 32.74 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-06/0.3479, allocations: 29.7 kB / 0.5631 GB, free: 32.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.779e-06/0.3479, allocations: 85.3 kB / 0.5632 GB, free: 32.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.3479, allocations: 0 / 0.5632 GB, free: 32.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.089e-05/0.3479, allocations: 13.94 kB / 0.5632 GB, free: 32.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.948e-05/0.348, allocations: 310.8 kB / 0.5635 GB, free: 32.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.348, allocations: 3.844 kB / 0.5635 GB, free: 32.29 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.348, allocations: 3.328 kB / 0.5635 GB, free: 32.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.886e-05/0.348, allocations: 63.2 kB / 0.5636 GB, free: 32.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.348, allocations: 0 / 0.5636 GB, free: 32.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.795e-05/0.3481, allocations: 61.91 kB / 0.5636 GB, free: 32.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.3481, allocations: 35.39 kB / 0.5637 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.3481, allocations: 0 / 0.5637 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3481, allocations: 3.938 kB / 0.5637 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.3481, allocations: 3.938 kB / 0.5637 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3481, allocations: 3.156 kB / 0.5637 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.3481, allocations: 6.438 kB / 0.5637 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.3481, allocations: 0 / 0.5637 GB, free: 32.11 MB / 446.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 4.368e-05/0.3482, allocations: 134.7 kB / 0.5638 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-06/0.3482, allocations: 0 / 0.5638 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.147e-06/0.3482, allocations: 14.3 kB / 0.5638 GB, free: 31.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.3482, allocations: 0 / 0.5638 GB, free: 31.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3482, allocations: 0 / 0.5638 GB, free: 31.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.3482, allocations: 3.062 kB / 0.5638 GB, free: 31.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.733e-05/0.3482, allocations: 145.7 kB / 0.564 GB, free: 31.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.3482, allocations: 0 / 0.564 GB, free: 31.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.002e-06/0.3482, allocations: 3.281 kB / 0.564 GB, free: 31.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3482, allocations: 0 / 0.564 GB, free: 31.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3482, allocations: 11.19 kB / 0.564 GB, free: 31.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.3482, allocations: 0 / 0.564 GB, free: 31.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3482, allocations: 0 / 0.564 GB, free: 31.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.378e-05/0.3483, allocations: 91.58 kB / 0.5641 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.3483, allocations: 84.36 kB / 0.5642 GB, free: 31.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.3483, allocations: 3.938 kB / 0.5642 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.3483, allocations: 0 / 0.5642 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-06/0.3484, allocations: 0 / 0.5642 GB, free: 31.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.3484, allocations: 3.219 kB / 0.5642 GB, free: 31.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.005e-05/0.3484, allocations: 76.75 kB / 0.5642 GB, free: 31.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3484, allocations: 3.938 kB / 0.5642 GB, free: 31.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.3486, allocations: 27.25 kB / 0.5643 GB, free: 31.48 MB / 446.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.0005832/0.3492, allocations: 271.2 kB / 0.5645 GB, free: 31.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.873e-05/0.3493, allocations: 60.98 kB / 0.5646 GB, free: 31.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3493, allocations: 0 / 0.5646 GB, free: 31.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.666e-05/0.3493, allocations: 58.47 kB / 0.5646 GB, free: 31.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.3494, allocations: 3.125 kB / 0.5646 GB, free: 31.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001278/0.3495, allocations: 91.73 kB / 0.5647 GB, free: 31.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.408e-05/0.3496, allocations: 0.6691 MB / 0.5654 GB, free: 30.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.119e-06/0.3496, allocations: 7.938 kB / 0.5654 GB, free: 30.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.685e-06/0.3496, allocations: 10.41 kB / 0.5654 GB, free: 30.4 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3496, allocations: 0 / 0.5654 GB, free: 30.4 MB / 446.1 MB Notification: Performance of Templates: time 0.003068/0.3527, allocations: 0.7876 MB / 0.5662 GB, free: 30.27 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.266936292871833]