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.001582/0.001582, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001726/0.001726, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.453/1.453, allocations: 230.6 MB / 258.3 MB, free: 7.961 MB / 206.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.2239/0.2239, allocations: 44.92 MB / 359.6 MB, free: 6.266 MB / 286.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 67.89 kB / 0.4943 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3085, allocations: 65.47 MB / 0.5582 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001613/0.3101, allocations: 0.4898 MB / 0.5587 GB, free: 7.234 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3114, allocations: 0.863 MB / 0.5596 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.249e-05/0.3115, allocations: 0 / 0.5596 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.2e-05/0.3115, allocations: 0 / 0.5596 GB, free: 6.371 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.3116, allocations: 11.92 kB / 0.5596 GB, free: 6.359 MB / 398.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.0006164/0.3122, allocations: 59.77 kB / 0.5596 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.744e-05/0.3123, allocations: 0 / 0.5596 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.334e-05/0.3123, allocations: 0 / 0.5596 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.96e-05/0.3124, allocations: 7.984 kB / 0.5596 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.889e-05/0.3124, allocations: 8 kB / 0.5596 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-06/0.3124, allocations: 0 / 0.5596 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.3126, allocations: 63.94 kB / 0.5597 GB, free: 6.223 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-06/0.3126, allocations: 3.938 kB / 0.5597 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.3126, allocations: 4 kB / 0.5597 GB, free: 6.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.3127, allocations: 47.72 kB / 0.5597 GB, free: 6.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3128, allocations: 0 / 0.5597 GB, free: 6.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.3128, allocations: 0 / 0.5597 GB, free: 6.172 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.3128, allocations: 0 / 0.5597 GB, free: 6.172 MB / 398.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.000358/0.3131, allocations: 286.5 kB / 0.56 GB, free: 5.859 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.3132, allocations: 15.97 kB / 0.56 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.3132, allocations: 0.9375 kB / 0.56 GB, free: 5.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.3133, allocations: 102.5 kB / 0.5601 GB, free: 5.719 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.3133, allocations: 8.312 kB / 0.5601 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.3133, allocations: 384 / 0.5601 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.061e-05/0.3134, allocations: 30.25 kB / 0.5602 GB, free: 5.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3134, allocations: 4.188 kB / 0.5602 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.3134, allocations: 3.938 kB / 0.5602 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.376e-06/0.3134, allocations: 0 / 0.5602 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.422e-05/0.3134, allocations: 4 kB / 0.5602 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.3136, allocations: 124.8 kB / 0.5603 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.238e-05/0.3136, allocations: 18.52 kB / 0.5603 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.742e-05/0.3136, allocations: 8.844 kB / 0.5603 GB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.3136, allocations: 4.094 kB / 0.5603 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.339e-05/0.3137, allocations: 56.27 kB / 0.5604 GB, free: 5.387 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3137, allocations: 4 kB / 0.5604 GB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.3139, allocations: 67.34 kB / 0.5605 GB, free: 5.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.3139, allocations: 85.03 kB / 0.5605 GB, free: 5.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.739e-05/0.314, allocations: 93.86 kB / 0.5606 GB, free: 5.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.314, allocations: 25.7 kB / 0.5607 GB, free: 5.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.688e-05/0.3141, allocations: 80.14 kB / 0.5607 GB, free: 4.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.3141, allocations: 0 / 0.5607 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.3141, allocations: 13.97 kB / 0.5607 GB, free: 4.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.3142, allocations: 318.8 kB / 0.561 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-06/0.3143, allocations: 0 / 0.561 GB, free: 4.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.24e-06/0.3143, allocations: 0 / 0.561 GB, free: 4.648 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.229e-05/0.3143, allocations: 64.25 kB / 0.5611 GB, free: 4.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.3143, allocations: 3.938 kB / 0.5611 GB, free: 4.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.558e-05/0.3144, allocations: 59.41 kB / 0.5612 GB, free: 4.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.3144, allocations: 39.98 kB / 0.5612 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3144, allocations: 7.938 kB / 0.5612 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.3144, allocations: 4.094 kB / 0.5612 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3144, allocations: 0 / 0.5612 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.3145, allocations: 0 / 0.5612 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.544e-05/0.3145, allocations: 3.984 kB / 0.5612 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.3145, allocations: 0 / 0.5612 GB, free: 4.438 MB / 398.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 9.268e-05/0.3146, allocations: 139.5 kB / 0.5614 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.266e-06/0.3146, allocations: 0 / 0.5614 GB, free: 4.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.106e-05/0.3146, allocations: 6.938 kB / 0.5614 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.3146, allocations: 3.938 kB / 0.5614 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.3146, allocations: 8 kB / 0.5614 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3146, allocations: 0 / 0.5614 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.608e-05/0.3147, allocations: 116.8 kB / 0.5615 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3147, allocations: 0 / 0.5615 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3147, allocations: 0 / 0.5615 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3147, allocations: 3.984 kB / 0.5615 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.3147, allocations: 7.938 kB / 0.5615 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.3147, allocations: 0 / 0.5615 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3147, allocations: 0 / 0.5615 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001132/0.3148, allocations: 102.8 kB / 0.5616 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.765e-06/0.3148, allocations: 3.953 kB / 0.5616 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.64e-05/0.3148, allocations: 3.938 kB / 0.5616 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.831e-05/0.3149, allocations: 4 kB / 0.5616 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.3149, allocations: 0 / 0.5616 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3149, allocations: 4 kB / 0.5616 GB, free: 3.957 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.649e-05/0.3149, allocations: 75.28 kB / 0.5617 GB, free: 3.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3149, allocations: 0 / 0.5617 GB, free: 3.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.3151, allocations: 28.05 kB / 0.5617 GB, free: 3.855 MB / 398.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.0004357/0.3156, allocations: 189.4 kB / 0.5619 GB, free: 3.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.3157, allocations: 63.39 kB / 0.5619 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3157, allocations: 0 / 0.5619 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.776e-05/0.3157, allocations: 55.41 kB / 0.562 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.3159, allocations: 0 / 0.562 GB, free: 3.551 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001991/0.3161, allocations: 114.6 kB / 0.5621 GB, free: 3.406 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3164, allocations: 0.6769 MB / 0.5628 GB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.344e-05/0.3164, allocations: 15.38 kB / 0.5628 GB, free: 2.688 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3164, allocations: 0 / 0.5628 GB, free: 2.688 MB / 398.1 MB Notification: Performance of Templates: time 0.002644/0.319, allocations: 0.8092 MB / 0.5636 GB, free: 1.879 MB / 398.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/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: 7.66014132485725]