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.001362/0.001362, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.001528/0.001528, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.513/1.513, allocations: 230.2 MB / 257.8 MB, free: 8.5 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.2371/0.2371, allocations: 46.89 MB / 361.1 MB, free: 4.609 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.002417/0.002417, allocations: 79.86 kB / 0.4967 GB, free: 7.816 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3562, allocations: 65.98 MB / 0.5612 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001762/0.358, allocations: 499.5 kB / 0.5616 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006179/0.3586, allocations: 217.6 kB / 0.5618 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.19e-05/0.3587, allocations: 0 / 0.5618 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.252e-05/0.3587, allocations: 0 / 0.5618 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.3587, allocations: 8 kB / 0.5619 GB, free: 4.316 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.0003193/0.359, allocations: 43.83 kB / 0.5619 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.374e-05/0.3591, allocations: 3.984 kB / 0.5619 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.767e-05/0.3591, allocations: 4 kB / 0.5619 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.515e-05/0.3591, allocations: 0 / 0.5619 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.47e-05/0.3591, allocations: 0 / 0.5619 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.152e-06/0.3591, allocations: 0 / 0.5619 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001444/0.3593, allocations: 55.95 kB / 0.562 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-06/0.3593, allocations: 0 / 0.562 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.721e-05/0.3593, allocations: 0 / 0.562 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3594, allocations: 51.66 kB / 0.562 GB, free: 4.164 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.319e-06/0.3595, allocations: 4 kB / 0.562 GB, free: 4.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3595, allocations: 4 kB / 0.562 GB, free: 4.156 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.3595, allocations: 3.938 kB / 0.562 GB, free: 4.152 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.000381/0.3598, allocations: 344 kB / 0.5623 GB, free: 3.762 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3599, allocations: 12.03 kB / 0.5624 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.3599, allocations: 0.9375 kB / 0.5624 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.36, allocations: 164.3 kB / 0.5625 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3601, allocations: 384 / 0.5625 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.3601, allocations: 384 / 0.5625 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.273e-05/0.3602, allocations: 42.25 kB / 0.5626 GB, free: 3.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.3602, allocations: 192 / 0.5626 GB, free: 3.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3602, allocations: 3.938 kB / 0.5626 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3602, allocations: 0 / 0.5626 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.223e-05/0.3602, allocations: 4 kB / 0.5626 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.3603, allocations: 145.7 kB / 0.5627 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.223e-05/0.3604, allocations: 18.52 kB / 0.5627 GB, free: 3.277 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.677e-05/0.3604, allocations: 8.953 kB / 0.5627 GB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-06/0.3604, allocations: 4 kB / 0.5627 GB, free: 3.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.3605, allocations: 64.25 kB / 0.5628 GB, free: 3.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.655e-06/0.3605, allocations: 3.984 kB / 0.5628 GB, free: 3.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.3606, allocations: 63.34 kB / 0.5629 GB, free: 3.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.3607, allocations: 77.11 kB / 0.5629 GB, free: 3.012 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.3607, allocations: 97.75 kB / 0.563 GB, free: 2.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.3608, allocations: 25.7 kB / 0.563 GB, free: 2.875 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.3608, allocations: 88.27 kB / 0.5631 GB, free: 2.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.108e-05/0.3608, allocations: 3.938 kB / 0.5631 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.3608, allocations: 17.7 kB / 0.5632 GB, free: 2.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.361, allocations: 314.8 kB / 0.5635 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.361, allocations: 4 kB / 0.5635 GB, free: 2.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.819e-06/0.361, allocations: 0 / 0.5635 GB, free: 2.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.622e-05/0.3611, allocations: 60.27 kB / 0.5635 GB, free: 2.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.3611, allocations: 0 / 0.5635 GB, free: 2.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.438e-05/0.3612, allocations: 71.45 kB / 0.5636 GB, free: 2.281 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.3612, allocations: 29.7 kB / 0.5636 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3612, allocations: 0 / 0.5636 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3612, allocations: 3.938 kB / 0.5636 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.3612, allocations: 3.938 kB / 0.5636 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3612, allocations: 0 / 0.5636 GB, free: 2.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.445e-05/0.3613, allocations: 4 kB / 0.5636 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.3613, allocations: 0 / 0.5636 GB, free: 2.234 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.0001002/0.3614, allocations: 135.6 kB / 0.5637 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.3614, allocations: 7.984 kB / 0.5638 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.28e-05/0.3614, allocations: 7.062 kB / 0.5638 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.3614, allocations: 0 / 0.5638 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.3614, allocations: 3.938 kB / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3614, allocations: 0 / 0.5638 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.3615, allocations: 141.7 kB / 0.5639 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3615, allocations: 4 kB / 0.5639 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3615, allocations: 0 / 0.5639 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3615, allocations: 3.984 kB / 0.5639 GB, free: 1.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.3615, allocations: 3.938 kB / 0.5639 GB, free: 1.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.3615, allocations: 4 kB / 0.5639 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3615, allocations: 0 / 0.5639 GB, free: 1.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.3616, allocations: 90.84 kB / 0.564 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.3617, allocations: 85.03 kB / 0.5641 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.3617, allocations: 3.938 kB / 0.5641 GB, free: 1.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.3617, allocations: 4 kB / 0.5641 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.338e-06/0.3617, allocations: 0 / 0.5641 GB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-06/0.3617, allocations: 4.031 kB / 0.5641 GB, free: 1.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.662e-05/0.3618, allocations: 75.28 kB / 0.5642 GB, free: 1.562 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3618, allocations: 0 / 0.5642 GB, free: 1.562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.362, allocations: 15.94 kB / 0.5642 GB, free: 1.547 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.0004816/0.3625, allocations: 205.3 kB / 0.5644 GB, free: 1.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.3626, allocations: 63.39 kB / 0.5644 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3626, allocations: 0 / 0.5644 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.89e-05/0.3626, allocations: 59.47 kB / 0.5645 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3627, allocations: 0 / 0.5645 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.363, allocations: 92.94 kB / 0.5646 GB, free: 1.105 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.3633, allocations: 0.6729 MB / 0.5652 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.841e-06/0.3633, allocations: 0 / 0.5652 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.209e-05/0.3633, allocations: 7.438 kB / 0.5653 GB, free: 408 kB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3633, allocations: 4 kB / 0.5653 GB, free: 404 kB / 398.1 MB Notification: Performance of Templates: time 0.003354/0.3666, allocations: 0.5914 MB / 0.5658 GB, free: 15.8 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.176741037052125]