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.00139/0.00139, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002458/0.002458, allocations: 212.4 kB / 23.74 MB, free: 4.672 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.613/1.613, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.253/0.253, allocations: 46.94 MB / 360.9 MB, free: 4.273 MB / 286.1 MB " [Timeout remaining time 179] 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.002166/0.002166, allocations: 71.89 kB / 0.4966 GB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3921, allocations: 66.04 MB / 0.5611 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001672/0.3938, allocations: 481 kB / 0.5616 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001537/0.3953, allocations: 0.8785 MB / 0.5624 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.127e-05/0.3953, allocations: 0 / 0.5624 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.3954, allocations: 0 / 0.5624 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.3956, allocations: 7.984 kB / 0.5624 GB, free: 3.066 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.0007/0.3963, allocations: 60.97 kB / 0.5625 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.28e-05/0.3963, allocations: 4 kB / 0.5625 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.016e-05/0.3964, allocations: 0 / 0.5625 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.017e-05/0.3964, allocations: 0 / 0.5625 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.3965, allocations: 11.98 kB / 0.5625 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.729e-06/0.3965, allocations: 0 / 0.5625 GB, free: 2.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.3967, allocations: 67.88 kB / 0.5626 GB, free: 2.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.3967, allocations: 4 kB / 0.5626 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.439e-05/0.3967, allocations: 3.938 kB / 0.5626 GB, free: 2.922 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.3969, allocations: 47.73 kB / 0.5626 GB, free: 2.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3969, allocations: 0 / 0.5626 GB, free: 2.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3969, allocations: 0 / 0.5626 GB, free: 2.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3969, allocations: 0 / 0.5626 GB, free: 2.879 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.000444/0.3973, allocations: 282.5 kB / 0.5629 GB, free: 2.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3974, allocations: 12.03 kB / 0.5629 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/0.3974, allocations: 0.9375 kB / 0.5629 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001288/0.3975, allocations: 102.5 kB / 0.563 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.3975, allocations: 4.375 kB / 0.563 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.3976, allocations: 4.375 kB / 0.563 GB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.3977, allocations: 34.19 kB / 0.563 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3977, allocations: 192 / 0.563 GB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3977, allocations: 3.938 kB / 0.5631 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.3977, allocations: 3.938 kB / 0.5631 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.205e-05/0.3977, allocations: 4 kB / 0.5631 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.3979, allocations: 120.8 kB / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.463e-05/0.398, allocations: 22.61 kB / 0.5632 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.961e-05/0.398, allocations: 12.78 kB / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.398, allocations: 0 / 0.5632 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001215/0.3981, allocations: 60.2 kB / 0.5633 GB, free: 2.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3981, allocations: 4.062 kB / 0.5633 GB, free: 2.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002119/0.3983, allocations: 67.34 kB / 0.5633 GB, free: 2.012 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.127e-05/0.3984, allocations: 77.23 kB / 0.5634 GB, free: 1.918 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.622e-05/0.3985, allocations: 97.84 kB / 0.5635 GB, free: 1.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.3985, allocations: 25.7 kB / 0.5635 GB, free: 1.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.433e-05/0.3985, allocations: 80.14 kB / 0.5636 GB, free: 1.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.3986, allocations: 4 kB / 0.5636 GB, free: 1.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001226/0.3987, allocations: 13.72 kB / 0.5636 GB, free: 1.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3989, allocations: 310.8 kB / 0.5639 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.412e-05/0.3989, allocations: 4 kB / 0.5639 GB, free: 1.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-06/0.3989, allocations: 4.125 kB / 0.5639 GB, free: 1.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.768e-05/0.3989, allocations: 68.19 kB / 0.564 GB, free: 1.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3989, allocations: 0 / 0.564 GB, free: 1.273 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.296e-05/0.399, allocations: 63.41 kB / 0.564 GB, free: 1.199 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.3991, allocations: 29.7 kB / 0.5641 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.3991, allocations: 3.938 kB / 0.5641 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.3991, allocations: 0 / 0.5641 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-06/0.3991, allocations: 4 kB / 0.5641 GB, free: 1.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3991, allocations: 4 kB / 0.5641 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.838e-05/0.3991, allocations: 4.094 kB / 0.5641 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.3991, allocations: 3.984 kB / 0.5641 GB, free: 1.145 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.0001159/0.3993, allocations: 139.5 kB / 0.5642 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.3993, allocations: 3.984 kB / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.682e-05/0.3993, allocations: 6.938 kB / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.3993, allocations: 0 / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3993, allocations: 0 / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3993, allocations: 0 / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.3994, allocations: 124.8 kB / 0.5644 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3994, allocations: 4 kB / 0.5644 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.3994, allocations: 7.875 kB / 0.5644 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3994, allocations: 0 / 0.5644 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-06/0.3994, allocations: 3.938 kB / 0.5644 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3994, allocations: 0 / 0.5644 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3994, allocations: 4 kB / 0.5644 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.3996, allocations: 86.83 kB / 0.5645 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.185e-06/0.3996, allocations: 7.984 kB / 0.5645 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.3996, allocations: 7.938 kB / 0.5645 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.526e-06/0.3996, allocations: 0 / 0.5645 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-06/0.3996, allocations: 0 / 0.5645 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.3996, allocations: 7.938 kB / 0.5645 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.738e-05/0.3996, allocations: 75.28 kB / 0.5646 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3996, allocations: 0 / 0.5646 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.3999, allocations: 19.92 kB / 0.5646 GB, free: 0.5703 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.0004491/0.4003, allocations: 190.1 kB / 0.5648 GB, free: 412 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.4004, allocations: 67.33 kB / 0.5648 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4004, allocations: 4 kB / 0.5648 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.602e-05/0.4005, allocations: 51.41 kB / 0.5649 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.4006, allocations: 4 kB / 0.5649 GB, free: 260 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002162/0.4008, allocations: 85 kB / 0.565 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.4012, allocations: 0.6729 MB / 0.5656 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.41e-06/0.4012, allocations: 0 / 0.5656 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.333e-05/0.4012, allocations: 7.438 kB / 0.5656 GB, free: 15.44 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4012, allocations: 4.125 kB / 0.5656 GB, free: 15.43 MB / 414.1 MB Notification: Performance of Templates: time 0.003353/0.4046, allocations: 0.6601 MB / 0.5663 GB, free: 14.78 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.506060488987714]