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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 107.9 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3626/0.3626, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 67.88 kB / 465.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.3056, allocations: 62.02 MB / 0.5151 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001642/0.3073, allocations: 0.5409 MB / 0.5157 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005298/0.3079, allocations: 207.2 kB / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.287e-05/0.3079, allocations: 4 kB / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.547e-05/0.3079, allocations: 0 / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.999e-06/0.3079, allocations: 0 / 0.5159 GB, free: 37.3 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002671/0.3082, allocations: 37.66 kB / 0.5159 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.856e-05/0.3082, allocations: 0 / 0.5159 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.3083, allocations: 10.19 kB / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.561e-05/0.3083, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.156e-05/0.3083, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.672e-06/0.3083, allocations: 0 / 0.5159 GB, free: 37.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.3085, allocations: 52.11 kB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-06/0.3085, allocations: 2.844 kB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.883e-05/0.3085, allocations: 4 kB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.682e-05/0.3086, allocations: 42.28 kB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3086, allocations: 0 / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.3086, allocations: 0 / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.3086, allocations: 0 / 0.516 GB, free: 37.23 MB / 378.7 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.0002603/0.3089, allocations: 356.2 kB / 0.5164 GB, free: 36.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.3089, allocations: 11.66 kB / 0.5164 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.309, allocations: 0.9375 kB / 0.5164 GB, free: 36.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.269e-05/0.309, allocations: 163.8 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.309, allocations: 4.312 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-06/0.3091, allocations: 4.375 kB / 0.5165 GB, free: 36.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.044e-05/0.3091, allocations: 29.08 kB / 0.5166 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3091, allocations: 192 / 0.5166 GB, free: 36.61 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.3092, allocations: 3.938 kB / 0.5166 GB, free: 36.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3092, allocations: 2.906 kB / 0.5166 GB, free: 36.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.557e-05/0.3092, allocations: 3.938 kB / 0.5166 GB, free: 36.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.171e-05/0.3093, allocations: 152 kB / 0.5167 GB, free: 36.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.175e-05/0.3093, allocations: 18.58 kB / 0.5167 GB, free: 36.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.303e-05/0.3093, allocations: 11.86 kB / 0.5167 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.753e-06/0.3093, allocations: 0 / 0.5167 GB, free: 36.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.3094, allocations: 56.27 kB / 0.5168 GB, free: 36.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3094, allocations: 0 / 0.5168 GB, free: 36.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.3095, allocations: 75.36 kB / 0.5169 GB, free: 36.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.3096, allocations: 77.11 kB / 0.5169 GB, free: 36.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.334e-05/0.3096, allocations: 89.86 kB / 0.517 GB, free: 36.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.563e-06/0.3096, allocations: 29.83 kB / 0.5171 GB, free: 36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.119e-05/0.3096, allocations: 83.2 kB / 0.5171 GB, free: 35.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.3096, allocations: 3.984 kB / 0.5171 GB, free: 35.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.542e-05/0.3097, allocations: 16.05 kB / 0.5172 GB, free: 35.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.3097, allocations: 310.8 kB / 0.5175 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.759e-06/0.3097, allocations: 0 / 0.5175 GB, free: 35.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.06e-06/0.3098, allocations: 0 / 0.5175 GB, free: 35.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.536e-05/0.3098, allocations: 70.14 kB / 0.5175 GB, free: 35.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3098, allocations: 0 / 0.5175 GB, free: 35.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.712e-05/0.3099, allocations: 64.55 kB / 0.5176 GB, free: 35.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3099, allocations: 32.02 kB / 0.5176 GB, free: 35.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3099, allocations: 0 / 0.5176 GB, free: 35.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.3099, allocations: 7.938 kB / 0.5176 GB, free: 35.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.845e-06/0.3099, allocations: 0 / 0.5176 GB, free: 35.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3099, allocations: 3.938 kB / 0.5176 GB, free: 35.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.31, allocations: 2.875 kB / 0.5176 GB, free: 35.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.31, allocations: 0 / 0.5176 GB, free: 35.39 MB / 378.7 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 6.77e-05/0.31, allocations: 145.8 kB / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-06/0.31, allocations: 0 / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.137e-05/0.3101, allocations: 10.66 kB / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3101, allocations: 0 / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3101, allocations: 2.75 kB / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3101, allocations: 0 / 0.5178 GB, free: 35.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.782e-05/0.3101, allocations: 145 kB / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.3102, allocations: 0 / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3102, allocations: 0 / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.3102, allocations: 6.812 kB / 0.5179 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.3102, allocations: 7.938 kB / 0.5179 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3102, allocations: 0 / 0.5179 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3102, allocations: 0 / 0.5179 GB, free: 35.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.3104, allocations: 0.6372 MB / 0.5186 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.749e-05/0.3104, allocations: 81.09 kB / 0.5186 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.3104, allocations: 4.031 kB / 0.5186 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.368e-06/0.3105, allocations: 2.906 kB / 0.5186 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.3105, allocations: 3.938 kB / 0.5186 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.3105, allocations: 0 / 0.5186 GB, free: 34.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.403e-05/0.3105, allocations: 75.28 kB / 0.5187 GB, free: 34.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3105, allocations: 0 / 0.5187 GB, free: 34.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003192/0.3108, allocations: 25.72 kB / 0.5187 GB, free: 34.17 MB / 378.7 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.0003289/0.3112, allocations: 194 kB / 0.5189 GB, free: 34.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.877e-05/0.3112, allocations: 61.75 kB / 0.519 GB, free: 33.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3113, allocations: 2.844 kB / 0.519 GB, free: 33.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.056e-05/0.3113, allocations: 54.34 kB / 0.519 GB, free: 33.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001237/0.3114, allocations: 7.875 kB / 0.519 GB, free: 33.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001924/0.3116, allocations: 180.2 kB / 0.5192 GB, free: 33.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.3117, allocations: 0.672 MB / 0.5199 GB, free: 33.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.3117, allocations: 3.984 kB / 0.5199 GB, free: 33.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-06/0.3117, allocations: 15.5 kB / 0.5199 GB, free: 33 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3117, allocations: 0 / 0.5199 GB, free: 33 MB / 378.7 MB Notification: Performance of Templates: time 0.002412/0.3142, allocations: 0.5743 MB / 0.5205 GB, free: 32.89 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches