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.001764/0.001764, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.00229/0.00229, allocations: 215.5 kB / 24.48 MB, free: 3.836 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.526/1.526, allocations: 230.5 MB / 258.1 MB, free: 7.781 MB / 206.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.2446/0.2446, allocations: 46.96 MB / 361.6 MB, free: 3.941 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 0.002472/0.002472, allocations: 83.81 kB / 0.4973 GB, free: 7.086 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3398, allocations: 66.09 MB / 0.5619 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001688/0.3415, allocations: 485.1 kB / 0.5623 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007272/0.3423, allocations: 265.5 kB / 0.5626 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.531e-05/0.3423, allocations: 0 / 0.5626 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.3423, allocations: 0 / 0.5626 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.472e-06/0.3423, allocations: 3.938 kB / 0.5626 GB, free: 3.25 MB / 398.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.0003697/0.3427, allocations: 59.8 kB / 0.5627 GB, free: 3.191 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.513e-05/0.3427, allocations: 8 kB / 0.5627 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.658e-05/0.3428, allocations: 0 / 0.5627 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.3428, allocations: 0 / 0.5627 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.606e-05/0.3428, allocations: 0 / 0.5627 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.576e-06/0.3428, allocations: 0 / 0.5627 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001765/0.343, allocations: 63.95 kB / 0.5627 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.27e-05/0.343, allocations: 7.984 kB / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.343, allocations: 0 / 0.5627 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.3432, allocations: 47.73 kB / 0.5628 GB, free: 3.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3432, allocations: 0 / 0.5628 GB, free: 3.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.3432, allocations: 0 / 0.5628 GB, free: 3.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.3432, allocations: 11.94 kB / 0.5628 GB, free: 3.059 MB / 398.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.000393/0.3436, allocations: 282.7 kB / 0.5631 GB, free: 2.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3436, allocations: 8.031 kB / 0.5631 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.3437, allocations: 0.9375 kB / 0.5631 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.3438, allocations: 110.5 kB / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.3438, allocations: 384 / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.3438, allocations: 384 / 0.5632 GB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.3439, allocations: 59.95 kB / 0.5632 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3439, allocations: 192 / 0.5632 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.3439, allocations: 3.938 kB / 0.5632 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3439, allocations: 3.938 kB / 0.5632 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.584e-05/0.344, allocations: 33.7 kB / 0.5633 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.3441, allocations: 97.33 kB / 0.5634 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.191e-05/0.3442, allocations: 52.23 kB / 0.5634 GB, free: 2.301 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.282e-05/0.3442, allocations: 30.56 kB / 0.5634 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.578e-06/0.3442, allocations: 0 / 0.5634 GB, free: 2.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.496e-05/0.3443, allocations: 60.33 kB / 0.5635 GB, free: 2.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.3443, allocations: 0 / 0.5635 GB, free: 2.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002184/0.3445, allocations: 122.7 kB / 0.5636 GB, free: 2.043 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.3446, allocations: 77.11 kB / 0.5637 GB, free: 1.949 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.01e-05/0.3446, allocations: 93.94 kB / 0.5638 GB, free: 1.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.3446, allocations: 33.64 kB / 0.5638 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/0.3447, allocations: 84.12 kB / 0.5639 GB, free: 1.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.3447, allocations: 0 / 0.5639 GB, free: 1.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.3447, allocations: 17.72 kB / 0.5639 GB, free: 1.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3449, allocations: 310.8 kB / 0.5642 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.964e-05/0.3449, allocations: 33.64 kB / 0.5642 GB, free: 1.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.113e-05/0.345, allocations: 29.69 kB / 0.5643 GB, free: 1.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.73e-05/0.345, allocations: 60.27 kB / 0.5643 GB, free: 1.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.345, allocations: 0 / 0.5643 GB, free: 1.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.952e-05/0.3451, allocations: 93.17 kB / 0.5644 GB, free: 1.129 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.81e-05/0.3452, allocations: 33.69 kB / 0.5645 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.3452, allocations: 0 / 0.5645 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.3452, allocations: 0 / 0.5645 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.732e-06/0.3452, allocations: 11.88 kB / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.3452, allocations: 0 / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.3452, allocations: 0 / 0.5645 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.3452, allocations: 0 / 0.5645 GB, free: 1.078 MB / 398.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.0001134/0.3453, allocations: 135.5 kB / 0.5646 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-06/0.3454, allocations: 3.984 kB / 0.5646 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.488e-05/0.3454, allocations: 7.031 kB / 0.5646 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3454, allocations: 3.938 kB / 0.5646 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3454, allocations: 0 / 0.5646 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.3454, allocations: 3.984 kB / 0.5646 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.597e-05/0.3455, allocations: 101.3 kB / 0.5647 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3455, allocations: 0 / 0.5647 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.495e-06/0.3455, allocations: 4 kB / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.3455, allocations: 0 / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.3455, allocations: 0 / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3455, allocations: 0 / 0.5647 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3455, allocations: 7.938 kB / 0.5647 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.3456, allocations: 120.5 kB / 0.5648 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.118e-06/0.3456, allocations: 3.938 kB / 0.5648 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.149e-05/0.3456, allocations: 3.938 kB / 0.5648 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.3456, allocations: 0 / 0.5648 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.591e-05/0.3457, allocations: 7.938 kB / 0.5648 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3457, allocations: 0 / 0.5648 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.014e-05/0.3457, allocations: 79.27 kB / 0.5649 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3457, allocations: 0 / 0.5649 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.3459, allocations: 23.94 kB / 0.5649 GB, free: 0.5039 MB / 398.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.0007361/0.3467, allocations: 282.5 kB / 0.5652 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.3468, allocations: 118.8 kB / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3468, allocations: 0 / 0.5653 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.485e-05/0.3469, allocations: 81.11 kB / 0.5654 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.347, allocations: 2.031 kB / 0.5654 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002492/0.3473, allocations: 132.4 kB / 0.5655 GB, free: 15.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.059e-05/0.3473, allocations: 63.28 kB / 0.5656 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.45e-05/0.3473, allocations: 7.438 kB / 0.5656 GB, free: 15.78 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3473, allocations: 0 / 0.5656 GB, free: 15.78 MB / 414.1 MB Notification: Performance of Templates: time 0.002915/0.3503, allocations: 0.9639 MB / 0.5665 GB, free: 14.82 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/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: 7.554101819638163]