Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007424/0.0007424, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009641/0.001707, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007276/0.0007276, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009059/0.001634, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9976/0.9976, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09596/1.094, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2665/0.2665, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03174/0.2982, allocations: 13.09 MB / 291.3 MB, free: 7.375 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 292.6 MB, free: 6.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.707e-05/1.841e-05, allocations: 3.078 kB / 292.6 MB, free: 6.336 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001013/0.001032, allocations: 0.5438 MB / 293.1 MB, free: 5.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.002473, allocations: 1.407 MB / 294.6 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.002499, allocations: 4 kB / 294.6 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.958e-06/0.002503, allocations: 0 / 294.6 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.246e-05/0.002575, allocations: 23.84 kB / 294.6 MB, free: 4.355 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487: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.001022/0.003597, allocations: 234.3 kB / 294.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.518e-05/0.003672, allocations: 4 kB / 294.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.042e-05/0.003713, allocations: 0 / 294.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.028e-05/0.003773, allocations: 8.438 kB / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.632e-05/0.003819, allocations: 0.5 kB / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.003833, allocations: 0 / 294.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002531/0.006364, allocations: 1.007 MB / 295.8 MB, free: 3.375 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.212e-05/0.006376, allocations: 7.938 kB / 295.8 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.006395, allocations: 4 kB / 295.8 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.006679, allocations: 179.5 kB / 296 MB, free: 3.188 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.719e-05/0.006706, allocations: 0 / 296 MB, free: 3.188 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.006708, allocations: 0 / 296 MB, free: 3.188 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.00673, allocations: 3.938 kB / 296 MB, free: 3.184 MB / 282.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.0004236/0.007154, allocations: 302.1 kB / 296.3 MB, free: 2.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.0072, allocations: 12.03 kB / 296.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.028e-05/0.00724, allocations: 0.9375 kB / 296.3 MB, free: 2.848 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001328/0.007373, allocations: 102.5 kB / 296.4 MB, free: 2.723 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.007389, allocations: 12.36 kB / 296.4 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.115e-05/0.0074, allocations: 384 / 296.4 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001034/0.007503, allocations: 59.97 kB / 296.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.007513, allocations: 192 / 296.5 MB, free: 2.641 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.007523, allocations: 4.125 kB / 296.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.007529, allocations: 0 / 296.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.402e-05/0.007553, allocations: 33.64 kB / 296.5 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.573e-05/0.007628, allocations: 57.56 kB / 296.6 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.117e-05/0.00768, allocations: 48.3 kB / 296.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.007698, allocations: 34.56 kB / 296.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.007702, allocations: 4 kB / 296.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.007742, allocations: 60.33 kB / 296.7 MB, free: 2.344 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.007743, allocations: 0 / 296.7 MB, free: 2.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.00789, allocations: 118.7 kB / 296.9 MB, free: 2.203 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.007924, allocations: 85.05 kB / 296.9 MB, free: 2.102 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.654e-05/0.007991, allocations: 106.6 kB / 297 MB, free: 1.984 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.008, allocations: 25.7 kB / 297.1 MB, free: 1.953 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.102e-05/0.008021, allocations: 80.14 kB / 297.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.008041, allocations: 3.953 kB / 297.1 MB, free: 1.867 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.008068, allocations: 17.95 kB / 297.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.216e-05/0.00815, allocations: 314.8 kB / 297.5 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.949e-05/0.00817, allocations: 25.7 kB / 297.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.359e-05/0.008183, allocations: 29.7 kB / 297.5 MB, free: 1.461 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.283e-05/0.008226, allocations: 64.2 kB / 297.6 MB, free: 1.383 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.008229, allocations: 0 / 297.6 MB, free: 1.383 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.99e-05/0.008288, allocations: 85.09 kB / 297.7 MB, free: 1.281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.008331, allocations: 33.7 kB / 297.7 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.008336, allocations: 0 / 297.7 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/0.008344, allocations: 0 / 297.7 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.598e-06/0.008349, allocations: 4.094 kB / 297.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-06/0.008352, allocations: 0 / 297.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.00837, allocations: 7.938 kB / 297.7 MB, free: 1.23 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.008377, allocations: 0 / 297.7 MB, free: 1.23 MB / 282.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 7.001e-05/0.008447, allocations: 143.5 kB / 297.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-06/0.008452, allocations: 4 kB / 297.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.195e-05/0.008464, allocations: 3.156 kB / 297.9 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.008468, allocations: 3.984 kB / 297.9 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.00847, allocations: 0 / 297.9 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.008474, allocations: 3.938 kB / 297.9 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.758e-05/0.008532, allocations: 65.91 kB / 297.9 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.008534, allocations: 3.984 kB / 297.9 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.008535, allocations: 0 / 297.9 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.27e-06/0.00854, allocations: 0 / 297.9 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-07/0.008541, allocations: 7.938 kB / 297.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.008545, allocations: 0 / 297.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.008546, allocations: 0 / 297.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.008547, allocations: 0 / 297.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.461e-05/0.008632, allocations: 116.5 kB / 298.1 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.008644, allocations: 4 kB / 298.1 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.801e-06/0.00865, allocations: 4.031 kB / 298.1 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.025e-05/0.00866, allocations: 3.938 kB / 298.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-06/0.008664, allocations: 4 kB / 298.1 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.243e-05/0.008676, allocations: 8.859 kB / 298.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008676, allocations: 0 / 298.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002341/0.00891, allocations: 67.8 kB / 298.1 MB, free: 0.7305 MB / 282.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.0008128/0.009723, allocations: 423.1 kB / 298.6 MB, free: 476 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000127/0.00985, allocations: 127.5 kB / 298.7 MB, free: 320 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.009854, allocations: 4.062 kB / 298.7 MB, free: 316 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.009891, allocations: 85.97 kB / 298.8 MB, free: 208 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.557e-05/0.009956, allocations: 4 kB / 298.8 MB, free: 204 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001771/0.01013, allocations: 119 kB / 298.9 MB, free: 52 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.448e-05/0.01018, allocations: 55.36 kB / 298.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.01018, allocations: 0 / 298.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.616e-05/0.01022, allocations: 55.36 kB / 299 MB, free: 15.92 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01022, allocations: 0 / 299 MB, free: 15.92 MB / 298.7 MB Notification: Performance of Templates: time 0.003584/0.0138, allocations: 1.891 MB / 300.9 MB, free: 14.04 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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: 2.7282114615663886]