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.001361/0.001361, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001616/0.001616, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.2403/0.2403, allocations: 46.96 MB / 360.9 MB, free: 4.039 MB / 286.1 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 0.003297/0.003297, allocations: 75.83 kB / 0.4966 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4171/0.4204, allocations: 66.03 MB / 0.561 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001765/0.4222, allocations: 495.9 kB / 0.5615 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.4237, allocations: 0.8669 MB / 0.5624 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.443e-05/0.4237, allocations: 0 / 0.5624 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.4237, allocations: 4 kB / 0.5624 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002018/0.4239, allocations: 7.938 kB / 0.5624 GB, free: 2.82 MB / 398.1 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.0006844/0.4246, allocations: 51.88 kB / 0.5624 GB, free: 2.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.771e-05/0.4247, allocations: 11.88 kB / 0.5624 GB, free: 2.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.4248, allocations: 7.984 kB / 0.5624 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.855e-05/0.4248, allocations: 0 / 0.5624 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.369e-05/0.4248, allocations: 11.98 kB / 0.5625 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.4248, allocations: 0 / 0.5625 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001435/0.425, allocations: 51.95 kB / 0.5625 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.418e-06/0.425, allocations: 3.938 kB / 0.5625 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.067e-05/0.425, allocations: 0 / 0.5625 GB, free: 2.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.4252, allocations: 51.67 kB / 0.5626 GB, free: 2.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4252, allocations: 0 / 0.5626 GB, free: 2.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4252, allocations: 0 / 0.5626 GB, free: 2.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.4252, allocations: 0 / 0.5626 GB, free: 2.637 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.0003849/0.4256, allocations: 286.5 kB / 0.5628 GB, free: 2.324 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4256, allocations: 12.03 kB / 0.5628 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.252e-05/0.4257, allocations: 0.9375 kB / 0.5628 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.4258, allocations: 106.5 kB / 0.5629 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.4258, allocations: 4.375 kB / 0.563 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.4258, allocations: 4.312 kB / 0.563 GB, free: 2.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.4259, allocations: 51.97 kB / 0.563 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.4259, allocations: 4.188 kB / 0.563 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.4259, allocations: 3.938 kB / 0.563 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.4259, allocations: 0 / 0.563 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.493e-05/0.426, allocations: 33.7 kB / 0.563 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.4261, allocations: 97.33 kB / 0.5631 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.428e-05/0.4262, allocations: 44.27 kB / 0.5632 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.976e-05/0.4262, allocations: 38.59 kB / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.506e-06/0.4263, allocations: 0 / 0.5632 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/0.4263, allocations: 60.27 kB / 0.5633 GB, free: 1.762 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4263, allocations: 0 / 0.5633 GB, free: 1.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000223/0.4265, allocations: 126.7 kB / 0.5634 GB, free: 1.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.4266, allocations: 77.11 kB / 0.5635 GB, free: 1.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.867e-05/0.4267, allocations: 97.98 kB / 0.5636 GB, free: 1.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.4267, allocations: 25.7 kB / 0.5636 GB, free: 1.383 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.363e-05/0.4267, allocations: 84.14 kB / 0.5637 GB, free: 1.297 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.4268, allocations: 3.938 kB / 0.5637 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.4268, allocations: 9.719 kB / 0.5637 GB, free: 1.277 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4269, allocations: 318.8 kB / 0.564 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.872e-05/0.427, allocations: 29.64 kB / 0.564 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.179e-05/0.427, allocations: 25.7 kB / 0.564 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.188e-05/0.4271, allocations: 64.27 kB / 0.5641 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.4271, allocations: 4 kB / 0.5641 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.06e-05/0.4271, allocations: 93.28 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.186e-05/0.4272, allocations: 36.2 kB / 0.5642 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.4272, allocations: 0 / 0.5642 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.4272, allocations: 3.938 kB / 0.5642 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.4272, allocations: 0 / 0.5642 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.4272, allocations: 0 / 0.5642 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.4272, allocations: 0 / 0.5642 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.4272, allocations: 7.938 kB / 0.5642 GB, free: 0.6484 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 0.0001112/0.4273, allocations: 139.5 kB / 0.5644 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.4274, allocations: 7.984 kB / 0.5644 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.312e-05/0.4274, allocations: 7.031 kB / 0.5644 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.4274, allocations: 3.938 kB / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.4274, allocations: 0 / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4274, allocations: 0 / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.004e-05/0.4275, allocations: 97.33 kB / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4275, allocations: 0 / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.4275, allocations: 0 / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.4275, allocations: 0 / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.4275, allocations: 0 / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4275, allocations: 3.984 kB / 0.5645 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4275, allocations: 3.938 kB / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.4276, allocations: 116.5 kB / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.914e-06/0.4276, allocations: 11.94 kB / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.4276, allocations: 0 / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.4276, allocations: 0 / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.141e-05/0.4277, allocations: 7.938 kB / 0.5646 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-06/0.4277, allocations: 4 kB / 0.5646 GB, free: 180 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.425e-05/0.4277, allocations: 79.22 kB / 0.5647 GB, free: 100 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4277, allocations: 0 / 0.5647 GB, free: 100 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.4279, allocations: 23.88 kB / 0.5647 GB, free: 76 kB / 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.0004987/0.4284, allocations: 197.2 kB / 0.5649 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001577/0.4286, allocations: 118.8 kB / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4286, allocations: 0 / 0.565 GB, free: 15.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.035e-05/0.4287, allocations: 85.09 kB / 0.5651 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001387/0.4288, allocations: 0 / 0.5651 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002299/0.429, allocations: 114.7 kB / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.284e-05/0.4291, allocations: 55.34 kB / 0.5653 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.48e-06/0.4291, allocations: 0 / 0.5653 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.398e-05/0.4291, allocations: 11.44 kB / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4291, allocations: 0 / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Templates: time 0.003871/0.433, allocations: 0.65 MB / 0.5659 GB, free: 14.79 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.307134555652738]