Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.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.000998/0.000998, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001036/0.001036, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9628/0.9628, allocations: 177 MB / 204.8 MB, free: 5.578 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.2594/0.2594, allocations: 34.86 MB / 296.3 MB, free: 0.5469 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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.646e-05/1.78e-05, allocations: 2.312 kB / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001002/0.00102, allocations: 0.4936 MB / 379.2 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.002454, allocations: 1.387 MB / 380.6 MB, free: 244 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.429e-05/0.002478, allocations: 4 kB / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.82e-05/0.002496, allocations: 0 / 380.6 MB, free: 240 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.00271, allocations: 11.88 kB / 380.6 MB, free: 228 kB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:466:3-498:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008977/0.003608, allocations: 277.7 kB / 380.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.171e-05/0.003659, allocations: 7.844 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.084e-05/0.00369, allocations: 3.984 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.825e-05/0.003718, allocations: 0 / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.184e-05/0.00376, allocations: 11.98 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.003769, allocations: 0 / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002258/0.006027, allocations: 0.991 MB / 381.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.566e-06/0.006035, allocations: 0 / 381.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.869e-05/0.006054, allocations: 0 / 381.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002794/0.006333, allocations: 219.4 kB / 382.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.006335, allocations: 0 / 382.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.006336, allocations: 0 / 382.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.00634, allocations: 0 / 382.1 MB, free: 14.99 MB / 362.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.0003322/0.006672, allocations: 409.7 kB / 382.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.006712, allocations: 12.03 kB / 382.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.006748, allocations: 5.234 kB / 382.6 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.88e-05/0.006827, allocations: 116.5 kB / 382.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.006837, allocations: 4.375 kB / 382.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.006847, allocations: 4.312 kB / 382.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.567e-05/0.006933, allocations: 55.97 kB / 382.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.006942, allocations: 192 / 382.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.006951, allocations: 384 / 382.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.006958, allocations: 384 / 382.7 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.649e-05/0.007014, allocations: 37.64 kB / 382.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.854e-05/0.007113, allocations: 108.6 kB / 382.9 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.564e-05/0.007158, allocations: 56.73 kB / 382.9 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.081e-05/0.007179, allocations: 37.39 kB / 383 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-06/0.007183, allocations: 0 / 383 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/0.007218, allocations: 63.16 kB / 383 MB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.007219, allocations: 0 / 383 MB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001651/0.007384, allocations: 114.8 kB / 383.1 MB, free: 13.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.007419, allocations: 81.11 kB / 383.2 MB, free: 13.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.863e-05/0.007488, allocations: 162 kB / 383.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.725e-06/0.007496, allocations: 25.7 kB / 383.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.007525, allocations: 134.8 kB / 383.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.007539, allocations: 0 / 383.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/0.007625, allocations: 19.36 kB / 383.6 MB, free: 13.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.007729, allocations: 0.4884 MB / 384 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.543e-05/0.007745, allocations: 25.7 kB / 384.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.165e-05/0.007757, allocations: 25.7 kB / 384.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.246e-05/0.007789, allocations: 63.09 kB / 384.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.007791, allocations: 0 / 384.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.676e-05/0.007848, allocations: 97.28 kB / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.007869, allocations: 33.7 kB / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.007873, allocations: 0 / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.007887, allocations: 0 / 384.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.817e-06/0.00789, allocations: 3.938 kB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.007895, allocations: 0 / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.029e-05/0.007905, allocations: 3.938 kB / 384.3 MB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.007912, allocations: 4 kB / 384.3 MB, free: 12.52 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 6.873e-05/0.00798, allocations: 182.3 kB / 384.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.881e-06/0.007986, allocations: 4 kB / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.143e-05/0.007998, allocations: 7.188 kB / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.007999, allocations: 0 / 384.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.008003, allocations: 7.922 kB / 384.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.008006, allocations: 3.938 kB / 384.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.334e-05/0.00806, allocations: 116.6 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.00806, allocations: 0 / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.008061, allocations: 0 / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.008062, allocations: 0 / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.008069, allocations: 4 kB / 384.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.41e-07/0.00807, allocations: 4 kB / 384.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.00807, allocations: 0 / 384.6 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.562e-05/0.008146, allocations: 139.7 kB / 384.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.809e-06/0.008151, allocations: 4 kB / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.202e-05/0.008163, allocations: 0 / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.909e-06/0.008168, allocations: 0 / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.216e-05/0.00818, allocations: 4 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.008183, allocations: 4 kB / 384.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.73e-05/0.00821, allocations: 119.2 kB / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00821, allocations: 0 / 384.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002363/0.008446, allocations: 67.73 kB / 384.9 MB, free: 11.79 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.0006278/0.009074, allocations: 376.5 kB / 385.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002618/0.009336, allocations: 122.5 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.009337, allocations: 0 / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.888e-05/0.009366, allocations: 88.8 kB / 385.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.801e-05/0.009464, allocations: 7.984 kB / 385.5 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001784/0.009643, allocations: 124.1 kB / 385.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.769e-05/0.00967, allocations: 51.36 kB / 385.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.009675, allocations: 0 / 385.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.009688, allocations: 16.62 kB / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of SimCode: time 6.31e-07/0.009689, allocations: 0 / 385.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of Templates: time 0.003138/0.01283, allocations: 1.646 MB / 387.4 MB, free: 9.324 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1515347147360444]