Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.001266/0.001266, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001634/0.001634, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9932/0.9932, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3877/0.3877, allocations: 34.27 MB / 296.1 MB, free: 0.6406 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 378.5 MB, free: 2.406 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.202e-05/3.398e-05, allocations: 2.312 kB / 378.5 MB, free: 2.402 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001826/0.00186, allocations: 492.9 kB / 379 MB, free: 1.918 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005069/0.002367, allocations: 231.4 kB / 379.2 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.983e-05/0.002397, allocations: 0 / 379.2 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.002414, allocations: 0 / 379.2 MB, free: 1.691 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.436e-06/0.002422, allocations: 0 / 379.2 MB, free: 1.691 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.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.0003125/0.002735, allocations: 43.83 kB / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.542e-05/0.0028, allocations: 0 / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.002845, allocations: 3.984 kB / 379.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.115e-05/0.002886, allocations: 0 / 379.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.217e-05/0.002918, allocations: 4 kB / 379.2 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.987e-06/0.002927, allocations: 0 / 379.2 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001247/0.003052, allocations: 55.83 kB / 379.3 MB, free: 1.586 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.003061, allocations: 0 / 379.3 MB, free: 1.586 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.003081, allocations: 4 kB / 379.3 MB, free: 1.582 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001328/0.003214, allocations: 55.8 kB / 379.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.003217, allocations: 0 / 379.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.003219, allocations: 0 / 379.3 MB, free: 1.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.003227, allocations: 0 / 379.3 MB, free: 1.527 MB / 346.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.0003673/0.003594, allocations: 378 kB / 379.7 MB, free: 1.113 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.003646, allocations: 12.03 kB / 379.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.003677, allocations: 0.9375 kB / 379.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.317e-05/0.00375, allocations: 104.6 kB / 379.8 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.003761, allocations: 4.375 kB / 379.8 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.003771, allocations: 8.312 kB / 379.8 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.461e-05/0.003855, allocations: 59.95 kB / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.071e-06/0.003861, allocations: 192 / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.751e-06/0.003867, allocations: 384 / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.003873, allocations: 4.375 kB / 379.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.106e-05/0.003894, allocations: 29.64 kB / 379.9 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.586e-05/0.00399, allocations: 93.27 kB / 380 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.681e-05/0.004036, allocations: 48.77 kB / 380.1 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.282e-05/0.004059, allocations: 45.31 kB / 380.1 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.004065, allocations: 8.094 kB / 380.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.273e-05/0.004108, allocations: 63.08 kB / 380.2 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.004109, allocations: 0 / 380.2 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001821/0.004291, allocations: 114.8 kB / 380.3 MB, free: 400 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.004336, allocations: 85.09 kB / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.901e-05/0.004395, allocations: 142.2 kB / 380.5 MB, free: 140 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.104e-05/0.004406, allocations: 25.7 kB / 380.5 MB, free: 108 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.555e-05/0.004462, allocations: 126.9 kB / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.004483, allocations: 352 / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.004517, allocations: 27.48 kB / 380.7 MB, free: 15.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.004668, allocations: 0.4883 MB / 381.2 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.585e-05/0.004703, allocations: 29.64 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.182e-05/0.004725, allocations: 29.7 kB / 381.2 MB, free: 15.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.214e-05/0.004777, allocations: 63.08 kB / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.00478, allocations: 0 / 381.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.565e-05/0.004856, allocations: 89.06 kB / 381.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.004899, allocations: 36.05 kB / 381.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.004905, allocations: 0 / 381.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.004915, allocations: 0 / 381.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.004916, allocations: 4.094 kB / 381.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.004921, allocations: 3.984 kB / 381.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.004938, allocations: 0 / 381.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.004946, allocations: 4 kB / 381.4 MB, free: 15.14 MB / 362.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 9.956e-05/0.005045, allocations: 190.2 kB / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-06/0.005053, allocations: 4 kB / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.294e-05/0.005065, allocations: 3 kB / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.005068, allocations: 0 / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.00507, allocations: 0 / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.005073, allocations: 0 / 381.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.77e-05/0.005141, allocations: 105.2 kB / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.005142, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-07/0.005143, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.005145, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-06/0.005149, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.005149, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.00515, allocations: 0 / 381.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001112/0.005261, allocations: 127.8 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-06/0.005266, allocations: 4 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.005278, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.556e-06/0.005286, allocations: 11.94 kB / 381.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.005298, allocations: 7.969 kB / 381.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.005301, allocations: 4 kB / 381.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.083e-05/0.005342, allocations: 127.2 kB / 382 MB, free: 14.49 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005342, allocations: 0 / 382 MB, free: 14.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001581/0.0055, allocations: 19.92 kB / 382 MB, free: 14.47 MB / 362.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.0004537/0.005954, allocations: 191.5 kB / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.006083, allocations: 126.5 kB / 382.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.006086, allocations: 0 / 382.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.504e-05/0.006121, allocations: 88.8 kB / 382.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001076/0.006228, allocations: 12.05 kB / 382.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002112/0.00644, allocations: 113.7 kB / 382.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.355e-05/0.006483, allocations: 55.36 kB / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.695e-06/0.006491, allocations: 0 / 382.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.314e-05/0.006554, allocations: 78.12 kB / 382.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.006555, allocations: 0 / 382.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of Templates: time 0.002567/0.009122, allocations: 0.6853 MB / 383.4 MB, free: 13.05 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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","",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.4054101551882923]