Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 212.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.3 MB / 258 MB, free: 8.188 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2315/0.2315, allocations: 46.93 MB / 361.3 MB, free: 4.387 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 79.88 kB / 0.4971 GB, free: 7.523 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.365, allocations: 66.04 MB / 0.5616 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001739/0.3667, allocations: 492.9 kB / 0.5621 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000638/0.3673, allocations: 233.6 kB / 0.5623 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.432e-05/0.3674, allocations: 3.938 kB / 0.5623 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.701e-05/0.3674, allocations: 0 / 0.5623 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.3674, allocations: 0 / 0.5623 GB, free: 3.797 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003318/0.3677, allocations: 43.84 kB / 0.5624 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.844e-05/0.3678, allocations: 3.984 kB / 0.5624 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.121e-05/0.3678, allocations: 4 kB / 0.5624 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.457e-05/0.3678, allocations: 7.984 kB / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.26e-05/0.3679, allocations: 0 / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.3679, allocations: 0 / 0.5624 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.368, allocations: 51.95 kB / 0.5624 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.368, allocations: 4 kB / 0.5624 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.3681, allocations: 0 / 0.5624 GB, free: 3.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.3682, allocations: 43.69 kB / 0.5625 GB, free: 3.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3682, allocations: 0 / 0.5625 GB, free: 3.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3682, allocations: 0 / 0.5625 GB, free: 3.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.3682, allocations: 0 / 0.5625 GB, free: 3.645 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.0004092/0.3686, allocations: 278.8 kB / 0.5627 GB, free: 3.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3687, allocations: 12.03 kB / 0.5628 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.3687, allocations: 0.9375 kB / 0.5628 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.919e-05/0.3688, allocations: 110.5 kB / 0.5629 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/0.3688, allocations: 384 / 0.5629 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.3688, allocations: 4.375 kB / 0.5629 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3689, allocations: 30.2 kB / 0.5629 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3689, allocations: 192 / 0.5629 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.3689, allocations: 3.938 kB / 0.5629 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.3689, allocations: 4 kB / 0.5629 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.886e-05/0.369, allocations: 4 kB / 0.5629 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.3691, allocations: 116.7 kB / 0.563 GB, free: 2.988 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.92e-05/0.3692, allocations: 26.59 kB / 0.563 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.739e-05/0.3692, allocations: 8.797 kB / 0.563 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.3692, allocations: 0 / 0.563 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/0.3692, allocations: 64.2 kB / 0.5631 GB, free: 2.863 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.3693, allocations: 0 / 0.5631 GB, free: 2.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001826/0.3694, allocations: 67.39 kB / 0.5632 GB, free: 2.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.3695, allocations: 81.11 kB / 0.5633 GB, free: 2.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.57e-05/0.3696, allocations: 97.81 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.3696, allocations: 25.7 kB / 0.5634 GB, free: 2.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.3696, allocations: 80.14 kB / 0.5634 GB, free: 2.469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.3696, allocations: 0 / 0.5634 GB, free: 2.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.3697, allocations: 13.84 kB / 0.5635 GB, free: 2.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.3698, allocations: 318.8 kB / 0.5638 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.3698, allocations: 0 / 0.5638 GB, free: 2.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.29e-06/0.3698, allocations: 3.938 kB / 0.5638 GB, free: 2.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.839e-05/0.3699, allocations: 68.25 kB / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3699, allocations: 0 / 0.5638 GB, free: 2.043 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.121e-05/0.37, allocations: 59.41 kB / 0.5639 GB, free: 1.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/0.37, allocations: 29.7 kB / 0.5639 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.37, allocations: 8.078 kB / 0.5639 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.37, allocations: 3.938 kB / 0.5639 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.173e-06/0.37, allocations: 4 kB / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.37, allocations: 0 / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.37, allocations: 0 / 0.5639 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.37, allocations: 3.984 kB / 0.5639 GB, free: 1.918 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.0001018/0.3701, allocations: 136.4 kB / 0.5641 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.3702, allocations: 3.938 kB / 0.5641 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.671e-05/0.3702, allocations: 6.938 kB / 0.5641 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.3702, allocations: 4 kB / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3702, allocations: 0 / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-06/0.3702, allocations: 0 / 0.5641 GB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.3703, allocations: 124.8 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3703, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3703, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.3703, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.3703, allocations: 7.938 kB / 0.5642 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3703, allocations: 0 / 0.5642 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.3703, allocations: 7.984 kB / 0.5642 GB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001052/0.3704, allocations: 90.83 kB / 0.5643 GB, free: 1.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.541e-06/0.3704, allocations: 7.938 kB / 0.5643 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.3704, allocations: 3.938 kB / 0.5643 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.3704, allocations: 0 / 0.5643 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.514e-05/0.3705, allocations: 0 / 0.5643 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3705, allocations: 0 / 0.5643 GB, free: 1.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.531e-05/0.3705, allocations: 75.28 kB / 0.5644 GB, free: 1.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3705, allocations: 7.938 kB / 0.5644 GB, free: 1.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002372/0.3707, allocations: 27.95 kB / 0.5644 GB, free: 1.34 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.0004433/0.3712, allocations: 178.2 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001105/0.3713, allocations: 59.39 kB / 0.5646 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3713, allocations: 0 / 0.5646 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.692e-05/0.3713, allocations: 55.41 kB / 0.5647 GB, free: 1.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001291/0.3715, allocations: 6.344 kB / 0.5647 GB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000221/0.3717, allocations: 84.98 kB / 0.5648 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.372, allocations: 0.673 MB / 0.5654 GB, free: 236 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.47e-06/0.372, allocations: 4 kB / 0.5654 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.377e-05/0.372, allocations: 7.438 kB / 0.5655 GB, free: 224 kB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.372, allocations: 0 / 0.5655 GB, free: 224 kB / 398.1 MB Notification: Performance of Templates: time 0.003579/0.3756, allocations: 0.5951 MB / 0.566 GB, free: 15.62 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.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.164744887501001]