Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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.0008999/0.0008999, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009399/0.0009399, allocations: 173.1 kB / 24.92 MB, free: 8.762 MB / 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 0.992/0.992, allocations: 177.1 MB / 205.3 MB, free: 5.465 MB / 186.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.2661/0.2661, allocations: 34.25 MB / 296.1 MB, free: 0.6484 MB / 266.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 325.2 MB, free: 7.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.303e-05/2.443e-05, allocations: 7.516 kB / 325.3 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001337/0.001361, allocations: 0.5395 MB / 325.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008567/0.002218, allocations: 0.9155 MB / 326.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.296e-05/0.002241, allocations: 0 / 326.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.002255, allocations: 0 / 326.7 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.002422, allocations: 4 kB / 326.7 MB, free: 6.191 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.00285, allocations: 73.72 kB / 326.8 MB, free: 6.137 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.635e-05/0.002916, allocations: 7.922 kB / 326.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.644e-05/0.002963, allocations: 8 kB / 326.8 MB, free: 6.121 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.126e-05/0.003004, allocations: 3.984 kB / 326.8 MB, free: 6.117 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.262e-05/0.003097, allocations: 0 / 326.8 MB, free: 6.117 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-06/0.003106, allocations: 0 / 326.8 MB, free: 6.117 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.003233, allocations: 59.89 kB / 326.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.808e-06/0.003243, allocations: 0 / 326.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.749e-05/0.003261, allocations: 7.984 kB / 326.9 MB, free: 6.051 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.003395, allocations: 52.5 kB / 326.9 MB, free: 6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003396, allocations: 4 kB / 326.9 MB, free: 5.996 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003397, allocations: 3.938 kB / 326.9 MB, free: 5.992 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.003401, allocations: 0 / 326.9 MB, free: 5.992 MB / 298.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.0002356/0.003637, allocations: 259 kB / 327.2 MB, free: 5.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.00367, allocations: 8.031 kB / 327.2 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.21e-05/0.003692, allocations: 0.9375 kB / 327.2 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.771e-05/0.00377, allocations: 109.8 kB / 327.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-06/0.003778, allocations: 384 / 327.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.872e-06/0.003785, allocations: 4.359 kB / 327.3 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.317e-05/0.003848, allocations: 55.97 kB / 327.4 MB, free: 5.496 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.003854, allocations: 4.188 kB / 327.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.541e-06/0.00386, allocations: 384 / 327.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.003863, allocations: 384 / 327.4 MB, free: 5.492 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.529e-05/0.003879, allocations: 37.58 kB / 327.4 MB, free: 5.449 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.978e-05/0.003939, allocations: 57.73 kB / 327.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.51e-05/0.003984, allocations: 48.3 kB / 327.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.035e-05/0.004024, allocations: 34.56 kB / 327.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.679e-06/0.004029, allocations: 0 / 327.5 MB, free: 5.273 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.004063, allocations: 60.33 kB / 327.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.004064, allocations: 0 / 327.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001091/0.004173, allocations: 118.7 kB / 327.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.004207, allocations: 81.11 kB / 327.8 MB, free: 4.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.049e-05/0.004258, allocations: 94.72 kB / 327.9 MB, free: 4.855 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.004266, allocations: 25.7 kB / 327.9 MB, free: 4.824 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.223e-05/0.004288, allocations: 88.12 kB / 328 MB, free: 4.734 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.271e-05/0.004301, allocations: 8.297 kB / 328 MB, free: 4.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.00432, allocations: 9.719 kB / 328 MB, free: 4.711 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.521e-05/0.004406, allocations: 322.8 kB / 328.3 MB, free: 4.387 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.153e-05/0.004417, allocations: 25.7 kB / 328.4 MB, free: 4.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.371e-05/0.004431, allocations: 25.95 kB / 328.4 MB, free: 4.324 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.035e-05/0.004461, allocations: 64.33 kB / 328.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.004463, allocations: 7.875 kB / 328.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.094e-05/0.004514, allocations: 89.09 kB / 328.5 MB, free: 4.133 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.00454, allocations: 32.52 kB / 328.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.004545, allocations: 0 / 328.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.836e-06/0.004553, allocations: 0 / 328.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.004555, allocations: 0 / 328.6 MB, free: 4.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.004559, allocations: 4 kB / 328.6 MB, free: 4.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.017e-05/0.004569, allocations: 4 kB / 328.6 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.89e-06/0.004574, allocations: 4.031 kB / 328.6 MB, free: 4.086 MB / 298.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 5.718e-05/0.004631, allocations: 135.5 kB / 328.7 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-06/0.004637, allocations: 7.984 kB / 328.7 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.053e-05/0.004648, allocations: 7 kB / 328.7 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.004648, allocations: 0 / 328.7 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.00465, allocations: 0 / 328.7 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.004652, allocations: 0 / 328.7 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.098e-05/0.004693, allocations: 65.84 kB / 328.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.5e-07/0.004694, allocations: 0 / 328.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-07/0.004694, allocations: 0 / 328.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.01e-07/0.004695, allocations: 0 / 328.8 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-06/0.004698, allocations: 4 kB / 328.8 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.614e-06/0.004701, allocations: 7.938 kB / 328.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.004702, allocations: 0 / 328.8 MB, free: 3.832 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.926e-05/0.004761, allocations: 116.5 kB / 328.9 MB, free: 3.688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-06/0.004766, allocations: 3.984 kB / 328.9 MB, free: 3.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.004777, allocations: 4 kB / 328.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.957e-06/0.004781, allocations: 0 / 328.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-06/0.004789, allocations: 0 / 328.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-06/0.00479, allocations: 0 / 328.9 MB, free: 3.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.947e-06/0.004799, allocations: 8.891 kB / 328.9 MB, free: 3.668 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004799, allocations: 4 kB / 328.9 MB, free: 3.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000109/0.004908, allocations: 15.94 kB / 329 MB, free: 3.648 MB / 298.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.0003355/0.005244, allocations: 215.2 kB / 329.2 MB, free: 3.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.445e-05/0.005328, allocations: 124.1 kB / 329.3 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.00533, allocations: 0 / 329.3 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.005363, allocations: 85.97 kB / 329.4 MB, free: 3.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.488e-05/0.005418, allocations: 6.125 kB / 329.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001439/0.005562, allocations: 110 kB / 329.5 MB, free: 3.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.968e-05/0.005592, allocations: 63.47 kB / 329.5 MB, free: 3.008 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.979e-06/0.005597, allocations: 0 / 329.5 MB, free: 3.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.005631, allocations: 51.38 kB / 329.6 MB, free: 2.957 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.005631, allocations: 0 / 329.6 MB, free: 2.957 MB / 298.7 MB Notification: Performance of Templates: time 0.002432/0.008064, allocations: 0.7679 MB / 330.4 MB, free: 2.191 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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.8272405778989196]