Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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.001094/0.001094, allocations: 80.2 kB / 20.65 MB, free: 3.84 MB / 18.57 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.0011/0.0011, allocations: 173 kB / 24.05 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 158.6 MB / 185.9 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.136/0.136, allocations: 32.37 MB / 270.7 MB, free: 14.54 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 348.1 MB, free: 9.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.594e-05, allocations: 2.312 kB / 348.1 MB, free: 9.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001447/0.001473, allocations: 0.5033 MB / 348.6 MB, free: 8.707 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004394/0.001912, allocations: 219.3 kB / 348.8 MB, free: 8.492 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.5e-05/0.001937, allocations: 3.938 kB / 348.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.001953, allocations: 0 / 348.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.001959, allocations: 0 / 348.8 MB, free: 8.488 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.002212, allocations: 47.81 kB / 348.9 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.658e-05/0.002259, allocations: 0 / 348.9 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.201e-05/0.002291, allocations: 0 / 348.9 MB, free: 8.441 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.856e-05/0.002319, allocations: 4 kB / 348.9 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.453e-05/0.002344, allocations: 0 / 348.9 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.091e-06/0.00235, allocations: 0 / 348.9 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.002455, allocations: 55.83 kB / 348.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.466e-06/0.002463, allocations: 4 kB / 348.9 MB, free: 8.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.41e-05/0.002477, allocations: 0 / 348.9 MB, free: 8.379 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.002579, allocations: 51.86 kB / 349 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.002581, allocations: 0 / 349 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.002581, allocations: 0 / 349 MB, free: 8.328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.002585, allocations: 0 / 349 MB, free: 8.328 MB / 282.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.0002161/0.002801, allocations: 381.9 kB / 349.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.002844, allocations: 12.03 kB / 349.4 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.002871, allocations: 0.9375 kB / 349.4 MB, free: 7.898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.899e-05/0.00291, allocations: 104.6 kB / 349.5 MB, free: 7.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.00292, allocations: 4.375 kB / 349.5 MB, free: 7.766 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-06/0.002926, allocations: 4.375 kB / 349.5 MB, free: 7.762 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.937e-05/0.002985, allocations: 59.89 kB / 349.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.002992, allocations: 192 / 349.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.002999, allocations: 4.375 kB / 349.5 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.003005, allocations: 384 / 349.5 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.335e-05/0.003018, allocations: 29.64 kB / 349.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.081e-05/0.003089, allocations: 93.27 kB / 349.7 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.416e-05/0.003123, allocations: 48.77 kB / 349.7 MB, free: 7.469 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.257e-05/0.003136, allocations: 37.48 kB / 349.7 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.258e-06/0.00314, allocations: 11.94 kB / 349.7 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.003167, allocations: 63.08 kB / 349.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.02e-07/0.003168, allocations: 0 / 349.8 MB, free: 7.332 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001331/0.003301, allocations: 110.8 kB / 349.9 MB, free: 7.199 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.96e-05/0.00332, allocations: 81.11 kB / 350 MB, free: 7.102 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.135e-05/0.003342, allocations: 146.2 kB / 350.1 MB, free: 6.945 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.029e-06/0.003347, allocations: 25.7 kB / 350.2 MB, free: 6.914 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.182e-05/0.003358, allocations: 130.9 kB / 350.3 MB, free: 6.781 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.003374, allocations: 3.938 kB / 350.3 MB, free: 6.777 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.0034, allocations: 23.38 kB / 350.3 MB, free: 6.746 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.121e-05/0.003441, allocations: 0.4885 MB / 350.8 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.186e-05/0.003453, allocations: 25.7 kB / 350.8 MB, free: 6.215 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.488e-06/0.003463, allocations: 33.64 kB / 350.9 MB, free: 6.176 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.198e-05/0.003495, allocations: 63.08 kB / 350.9 MB, free: 6.098 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.003496, allocations: 0 / 350.9 MB, free: 6.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.279e-05/0.003559, allocations: 85.11 kB / 351 MB, free: 5.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.003581, allocations: 33.7 kB / 351 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.003586, allocations: 0 / 351 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.003598, allocations: 0 / 351 MB, free: 5.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.0036, allocations: 12.08 kB / 351.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-06/0.003603, allocations: 0 / 351.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.305e-05/0.003616, allocations: 352 / 351.1 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.003623, allocations: 7.984 kB / 351.1 MB, free: 5.938 MB / 282.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 5.097e-05/0.003674, allocations: 190.2 kB / 351.3 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.093e-06/0.003681, allocations: 4 kB / 351.3 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.393e-05/0.003695, allocations: 3 kB / 351.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.003696, allocations: 0 / 351.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.003697, allocations: 0 / 351.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.0037, allocations: 0 / 351.3 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.546e-05/0.003746, allocations: 101.2 kB / 351.4 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.003747, allocations: 7.984 kB / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.003748, allocations: 0 / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.003749, allocations: 0 / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.003753, allocations: 0 / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.003754, allocations: 0 / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.003755, allocations: 0 / 351.4 MB, free: 5.594 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.584e-05/0.00382, allocations: 127.8 kB / 351.5 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.917e-06/0.003824, allocations: 4 kB / 351.5 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-06/0.003833, allocations: 0 / 351.5 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.464e-06/0.003841, allocations: 4 kB / 351.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.108e-06/0.00385, allocations: 8.016 kB / 351.5 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-06/0.003852, allocations: 7.938 kB / 351.5 MB, free: 5.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.178e-05/0.003864, allocations: 123.2 kB / 351.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.003864, allocations: 0 / 351.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000194/0.004058, allocations: 19.88 kB / 351.7 MB, free: 5.27 MB / 282.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.0003493/0.004407, allocations: 209.6 kB / 351.9 MB, free: 5.102 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.348e-05/0.004501, allocations: 126.5 kB / 352 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.004503, allocations: 0 / 352 MB, free: 4.949 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.717e-05/0.00452, allocations: 88.8 kB / 352.1 MB, free: 4.84 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.004634, allocations: 3.938 kB / 352.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001382/0.004772, allocations: 121.8 kB / 352.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.88e-05/0.004791, allocations: 55.36 kB / 352.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.55e-06/0.004797, allocations: 0 / 352.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.004829, allocations: 70.2 kB / 352.3 MB, free: 4.535 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.00483, allocations: 0 / 352.3 MB, free: 4.535 MB / 282.7 MB Notification: Performance of Templates: time 0.002428/0.007258, allocations: 0.6883 MB / 353 MB, free: 3.848 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.059446780011058]