Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 75.77 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009715/0.0009715, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.065/1.065, allocations: 177.1 MB / 205 MB, free: 4.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2735/0.2735, allocations: 32.8 MB / 294.3 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.395e-06/2.395e-06, allocations: 0 / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.896e-05/3.136e-05, allocations: 2.312 kB / 376 MB, free: 4.699 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001836/0.001867, allocations: 0.5001 MB / 376.5 MB, free: 4.199 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.003355, allocations: 1.395 MB / 377.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.569e-05/0.003381, allocations: 0 / 377.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.071e-05/0.003402, allocations: 0 / 377.9 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.003626, allocations: 11.88 kB / 377.9 MB, free: 2.785 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488: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.0008944/0.004521, allocations: 274.9 kB / 378.2 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.737e-05/0.004568, allocations: 0 / 378.2 MB, free: 2.527 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.366e-05/0.004602, allocations: 7.984 kB / 378.2 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.778e-05/0.004629, allocations: 0 / 378.2 MB, free: 2.52 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.895e-05/0.004668, allocations: 4 kB / 378.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.015e-06/0.004676, allocations: 4 kB / 378.2 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.007045, allocations: 0.9891 MB / 379.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.067e-05/0.007055, allocations: 0 / 379.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.007076, allocations: 8 kB / 379.2 MB, free: 1.762 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.007387, allocations: 219.4 kB / 379.4 MB, free: 1.547 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.007391, allocations: 4 kB / 379.4 MB, free: 1.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.007392, allocations: 0 / 379.4 MB, free: 1.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.007397, allocations: 0 / 379.4 MB, free: 1.543 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.0003382/0.007735, allocations: 405.7 kB / 379.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.007771, allocations: 8.031 kB / 379.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.007811, allocations: 9.234 kB / 379.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.834e-05/0.007889, allocations: 108.6 kB / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.007901, allocations: 384 / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.007913, allocations: 4.375 kB / 379.9 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.967e-05/0.008002, allocations: 59.91 kB / 380 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.008012, allocations: 4.125 kB / 380 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.008022, allocations: 12.12 kB / 380 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.008029, allocations: 0 / 380 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.658e-05/0.008046, allocations: 25.7 kB / 380 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001039/0.00815, allocations: 112.6 kB / 380.1 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.456e-05/0.008194, allocations: 48.77 kB / 380.2 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.098e-05/0.008215, allocations: 37.48 kB / 380.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-06/0.008219, allocations: 0 / 380.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.008256, allocations: 71.03 kB / 380.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.22e-07/0.008256, allocations: 0 / 380.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001683/0.008425, allocations: 118.8 kB / 380.4 MB, free: 360 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.008463, allocations: 81.05 kB / 380.5 MB, free: 260 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.149e-05/0.008535, allocations: 157.9 kB / 380.6 MB, free: 84 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.008544, allocations: 25.7 kB / 380.7 MB, free: 52 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.008591, allocations: 130.9 kB / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.008609, allocations: 0 / 380.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.008635, allocations: 19.38 kB / 380.8 MB, free: 15.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.008743, allocations: 492.1 kB / 381.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.743e-05/0.00876, allocations: 33.95 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.464e-05/0.008775, allocations: 33.64 kB / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.461e-05/0.008809, allocations: 67.09 kB / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.008811, allocations: 0 / 381.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.258e-05/0.008874, allocations: 89.09 kB / 381.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.008902, allocations: 29.7 kB / 381.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.008906, allocations: 4 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.00892, allocations: 0 / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.57e-06/0.008926, allocations: 3.938 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.00893, allocations: 4.094 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.12e-05/0.008941, allocations: 0 / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.008948, allocations: 0 / 381.5 MB, free: 15.09 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.982e-05/0.009017, allocations: 190.3 kB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-06/0.009022, allocations: 3.938 kB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.184e-05/0.009034, allocations: 7.156 kB / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.009035, allocations: 0 / 381.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.009039, allocations: 3.938 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.009042, allocations: 3.984 kB / 381.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.138e-05/0.009104, allocations: 120.5 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.009104, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.009105, allocations: 4 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.009106, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.009112, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.009112, allocations: 0 / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.009114, allocations: 3.984 kB / 381.9 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.26e-05/0.009206, allocations: 135.8 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.38e-06/0.009212, allocations: 0 / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.422e-05/0.009226, allocations: 4 kB / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.541e-06/0.009232, allocations: 0 / 382 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.009243, allocations: 3.938 kB / 382 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.009245, allocations: 4.031 kB / 382 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.391e-05/0.009279, allocations: 131.1 kB / 382.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009279, allocations: 0 / 382.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000213/0.009492, allocations: 63.8 kB / 382.2 MB, free: 14.34 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.0005991/0.01009, allocations: 369 kB / 382.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.931e-05/0.01019, allocations: 118.5 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01019, allocations: 3.938 kB / 382.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.01022, allocations: 96.84 kB / 382.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.01032, allocations: 12.05 kB / 382.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000183/0.01051, allocations: 120.1 kB / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.905e-05/0.01054, allocations: 51.36 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.401e-06/0.01054, allocations: 0 / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.195e-05/0.01055, allocations: 12.5 kB / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01055, allocations: 0 / 383 MB, free: 13.54 MB / 362.7 MB Notification: Performance of Templates: time 0.003322/0.01388, allocations: 1.657 MB / 384.6 MB, free: 11.89 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.333004789892584]