Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.00128/0.00128, allocations: 86.47 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001465/0.001465, allocations: 165.1 kB / 23.95 MB, free: 4.16 MB / 14.72 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.418/1.418, allocations: 177.2 MB / 204.3 MB, free: 9.16 MB / 190.1 MB " [Timeout remaining time 178] 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.1985/0.1985, allocations: 32.81 MB / 293.5 MB, free: 12 kB / 270.1 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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.225e-06/2.225e-06, allocations: 0 / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.419e-05/3.642e-05, allocations: 2.281 kB / 440.1 MB, free: 8.191 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001795/0.001831, allocations: 0.4934 MB / 440.6 MB, free: 7.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.003178, allocations: 0.8764 MB / 441.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.846e-05/0.003207, allocations: 0 / 441.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.451e-05/0.003221, allocations: 0 / 441.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.003452, allocations: 15.88 kB / 441.4 MB, free: 6.805 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0007759/0.004228, allocations: 57.19 kB / 441.5 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.432e-05/0.004293, allocations: 7.969 kB / 441.5 MB, free: 6.746 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.77e-05/0.00434, allocations: 4 kB / 441.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.549e-05/0.004376, allocations: 0 / 441.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.981e-05/0.004446, allocations: 0 / 441.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.004458, allocations: 4 kB / 441.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001741/0.004632, allocations: 55.89 kB / 441.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.004642, allocations: 4 kB / 441.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.434e-05/0.004667, allocations: 0 / 441.6 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002189/0.004886, allocations: 59.84 kB / 441.6 MB, free: 6.621 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.004889, allocations: 3.938 kB / 441.6 MB, free: 6.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.00489, allocations: 0 / 441.6 MB, free: 6.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.004897, allocations: 4 kB / 441.6 MB, free: 6.613 MB / 366.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.000406/0.005303, allocations: 276 kB / 441.9 MB, free: 6.305 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.005346, allocations: 8.031 kB / 441.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.005392, allocations: 0.9375 kB / 441.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.005538, allocations: 109.8 kB / 442 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.005552, allocations: 384 / 442 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.00556, allocations: 384 / 442 MB, free: 6.164 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.005668, allocations: 63.89 kB / 442.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.005679, allocations: 192 / 442.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.005689, allocations: 384 / 442.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.005694, allocations: 384 / 442.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.715e-05/0.005731, allocations: 33.64 kB / 442.1 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.00586, allocations: 101.3 kB / 442.2 MB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.671e-05/0.005927, allocations: 48.3 kB / 442.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.556e-05/0.005962, allocations: 38.56 kB / 442.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.005972, allocations: 0 / 442.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.444e-05/0.006027, allocations: 64.27 kB / 442.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.006028, allocations: 0 / 442.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000216/0.006244, allocations: 122.8 kB / 442.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.852e-05/0.006312, allocations: 77.11 kB / 442.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.986e-05/0.006392, allocations: 97.8 kB / 442.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.006406, allocations: 25.7 kB / 442.7 MB, free: 5.359 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.655e-05/0.006443, allocations: 84.08 kB / 442.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.006459, allocations: 256 / 442.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.006493, allocations: 21.72 kB / 442.8 MB, free: 5.246 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.006627, allocations: 310.8 kB / 443.1 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.631e-05/0.006654, allocations: 29.69 kB / 443.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.822e-05/0.006682, allocations: 33.64 kB / 443.2 MB, free: 4.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.372e-05/0.006736, allocations: 68.2 kB / 443.2 MB, free: 4.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.006738, allocations: 0 / 443.2 MB, free: 4.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.182e-05/0.00683, allocations: 93.08 kB / 443.3 MB, free: 4.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.006861, allocations: 29.7 kB / 443.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.006865, allocations: 0 / 443.3 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.006879, allocations: 4.094 kB / 443.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.00688, allocations: 0 / 443.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.006887, allocations: 4 kB / 443.3 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.011e-05/0.006907, allocations: 3.938 kB / 443.4 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.006912, allocations: 0 / 443.4 MB, free: 4.621 MB / 366.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 8.952e-05/0.007002, allocations: 135.5 kB / 443.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.00701, allocations: 0 / 443.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.007026, allocations: 10.98 kB / 443.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.007027, allocations: 3.938 kB / 443.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.007031, allocations: 0 / 443.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.007035, allocations: 7.938 kB / 443.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.064e-05/0.007116, allocations: 97.33 kB / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.007116, allocations: 0 / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.007117, allocations: 0 / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.007118, allocations: 0 / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.007125, allocations: 0 / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-07/0.007126, allocations: 0 / 443.6 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.007126, allocations: 4 kB / 443.6 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001196/0.007246, allocations: 120.5 kB / 443.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-06/0.00725, allocations: 0 / 443.7 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.007265, allocations: 4.016 kB / 443.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.233e-05/0.007277, allocations: 8 kB / 443.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.007287, allocations: 0 / 443.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.00729, allocations: 0 / 443.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.007329, allocations: 75.28 kB / 443.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.007329, allocations: 0 / 443.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.007575, allocations: 23.88 kB / 443.8 MB, free: 4.062 MB / 366.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.0004858/0.008061, allocations: 207.6 kB / 444 MB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000131/0.008192, allocations: 110.8 kB / 444.1 MB, free: 3.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.008194, allocations: 3.938 kB / 444.1 MB, free: 3.746 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.089e-05/0.008255, allocations: 89.16 kB / 444.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.008392, allocations: 0 / 444.2 MB, free: 3.641 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002336/0.008626, allocations: 114.6 kB / 444.3 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.568e-05/0.008681, allocations: 51.36 kB / 444.4 MB, free: 3.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.925e-06/0.008689, allocations: 3.984 kB / 444.4 MB, free: 3.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.295e-05/0.008702, allocations: 12.5 kB / 444.4 MB, free: 3.41 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.008702, allocations: 0 / 444.4 MB, free: 3.41 MB / 366.1 MB Notification: Performance of Templates: time 0.003427/0.01213, allocations: 0.6806 MB / 445.1 MB, free: 2.738 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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: 4.666706558316946]