Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001868/0.001868, allocations: 106.4 kB / 21.22 MB, free: 0.6758 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.003032/0.003032, allocations: 209.9 kB / 24.53 MB, free: 4.035 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.427/1.427, allocations: 230.3 MB / 258 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2165/0.2165, allocations: 46.89 MB / 361.3 MB, free: 4.441 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002305/0.002305, allocations: 87.84 kB / 0.497 GB, free: 7.605 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3728, allocations: 66.03 MB / 0.5615 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00175/0.3745, allocations: 481 kB / 0.562 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006517/0.3752, allocations: 233.6 kB / 0.5622 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.3752, allocations: 0 / 0.5622 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.3752, allocations: 0 / 0.5622 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.1e-06/0.3752, allocations: 0 / 0.5622 GB, free: 3.934 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0003276/0.3755, allocations: 43.84 kB / 0.5622 GB, free: 3.891 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.407e-05/0.3756, allocations: 7.984 kB / 0.5622 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.057e-05/0.3756, allocations: 8 kB / 0.5623 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.643e-05/0.3756, allocations: 0 / 0.5623 GB, free: 3.875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.811e-05/0.3757, allocations: 3.984 kB / 0.5623 GB, free: 3.871 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.3757, allocations: 0 / 0.5623 GB, free: 3.871 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.3758, allocations: 51.95 kB / 0.5623 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.242e-06/0.3758, allocations: 0 / 0.5623 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.896e-05/0.3758, allocations: 0 / 0.5623 GB, free: 3.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.376, allocations: 47.69 kB / 0.5624 GB, free: 3.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.376, allocations: 0 / 0.5624 GB, free: 3.777 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.376, allocations: 0 / 0.5624 GB, free: 3.777 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.376, allocations: 0 / 0.5624 GB, free: 3.777 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.0003772/0.3764, allocations: 278.8 kB / 0.5626 GB, free: 3.473 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3764, allocations: 8.031 kB / 0.5626 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.3764, allocations: 0.9375 kB / 0.5626 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.462e-05/0.3765, allocations: 114.5 kB / 0.5627 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.666e-06/0.3765, allocations: 384 / 0.5627 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.3765, allocations: 4.375 kB / 0.5627 GB, free: 3.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.3767, allocations: 30.27 kB / 0.5628 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3767, allocations: 192 / 0.5628 GB, free: 3.289 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3767, allocations: 3.938 kB / 0.5628 GB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3767, allocations: 4 kB / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.601e-05/0.3767, allocations: 0 / 0.5628 GB, free: 3.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001571/0.3769, allocations: 128.7 kB / 0.5629 GB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.872e-05/0.3769, allocations: 22.5 kB / 0.5629 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.3769, allocations: 4.859 kB / 0.5629 GB, free: 3.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.3769, allocations: 4.094 kB / 0.5629 GB, free: 3.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.474e-05/0.377, allocations: 64.27 kB / 0.563 GB, free: 2.992 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.377, allocations: 0 / 0.563 GB, free: 2.992 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001879/0.3772, allocations: 67.33 kB / 0.5631 GB, free: 2.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.3772, allocations: 77.11 kB / 0.5631 GB, free: 2.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.86e-05/0.3773, allocations: 93.81 kB / 0.5632 GB, free: 2.719 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.3773, allocations: 25.7 kB / 0.5632 GB, free: 2.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.669e-05/0.3774, allocations: 84.08 kB / 0.5633 GB, free: 2.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.3774, allocations: 0 / 0.5633 GB, free: 2.602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.3774, allocations: 25.72 kB / 0.5633 GB, free: 2.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.3776, allocations: 314.8 kB / 0.5636 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.064e-05/0.3776, allocations: 0 / 0.5636 GB, free: 2.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.397e-06/0.3777, allocations: 4 kB / 0.5637 GB, free: 2.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.122e-05/0.3777, allocations: 64.25 kB / 0.5637 GB, free: 2.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3777, allocations: 0 / 0.5637 GB, free: 2.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.003e-05/0.3778, allocations: 59.41 kB / 0.5638 GB, free: 2.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.3778, allocations: 33.7 kB / 0.5638 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3778, allocations: 4.094 kB / 0.5638 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3779, allocations: 3.938 kB / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.3779, allocations: 0 / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.3779, allocations: 0 / 0.5638 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.614e-05/0.3779, allocations: 3.938 kB / 0.5638 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3779, allocations: 7.984 kB / 0.5638 GB, free: 2.043 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.003e-05/0.378, allocations: 131.5 kB / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.378, allocations: 0 / 0.5639 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.269e-05/0.378, allocations: 6.938 kB / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.378, allocations: 8 kB / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.378, allocations: 0 / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.378, allocations: 0 / 0.564 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.3781, allocations: 116.8 kB / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.3781, allocations: 0 / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3781, allocations: 0 / 0.5641 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.102e-06/0.3781, allocations: 4 kB / 0.5641 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.3781, allocations: 3.938 kB / 0.5641 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3781, allocations: 0 / 0.5641 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3781, allocations: 0 / 0.5641 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.3782, allocations: 98.83 kB / 0.5642 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-06/0.3782, allocations: 0 / 0.5642 GB, free: 1.598 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.3782, allocations: 7.938 kB / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.3783, allocations: 0 / 0.5642 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.914e-05/0.3783, allocations: 7.938 kB / 0.5642 GB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.3783, allocations: 0 / 0.5642 GB, free: 1.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.231e-05/0.3783, allocations: 75.28 kB / 0.5643 GB, free: 1.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3783, allocations: 3.938 kB / 0.5643 GB, free: 1.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.3785, allocations: 23.95 kB / 0.5643 GB, free: 1.48 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.0004696/0.379, allocations: 179.5 kB / 0.5645 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.3791, allocations: 67.39 kB / 0.5645 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3791, allocations: 0 / 0.5645 GB, free: 1.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.59e-05/0.3792, allocations: 51.41 kB / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.3793, allocations: 6.5 kB / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00021/0.3795, allocations: 85 kB / 0.5647 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.3799, allocations: 0.6729 MB / 0.5653 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.35e-06/0.3799, allocations: 4.125 kB / 0.5653 GB, free: 368 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.068e-05/0.3799, allocations: 11.38 kB / 0.5653 GB, free: 356 kB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3799, allocations: 0 / 0.5653 GB, free: 356 kB / 398.1 MB Notification: Performance of Templates: time 0.003305/0.3832, allocations: 0.5913 MB / 0.5659 GB, free: 15.76 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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.0281586572527885]