Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001483/0.001483, allocations: 92.31 kB / 20.96 MB, free: 3.477 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.001596/0.001596, allocations: 161.7 kB / 24.26 MB, free: 176 kB / 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 1.542/1.542, allocations: 177.2 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.347/0.347, allocations: 32.79 MB / 293.9 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.434e-05/2.596e-05, allocations: 2.312 kB / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001561/0.001587, allocations: 492.9 kB / 375.7 MB, free: 4.531 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005784/0.002165, allocations: 215.6 kB / 375.9 MB, free: 4.32 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.002185, allocations: 4 kB / 375.9 MB, free: 4.316 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.889e-06/0.002195, allocations: 3.938 kB / 375.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.288e-06/0.002199, allocations: 0 / 375.9 MB, free: 4.312 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002542/0.002454, allocations: 43.81 kB / 376 MB, free: 4.27 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.699e-05/0.002501, allocations: 4 kB / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.165e-05/0.002542, allocations: 0 / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.308e-05/0.002565, allocations: 0 / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.891e-05/0.002594, allocations: 0 / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-06/0.002602, allocations: 0 / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001278/0.00273, allocations: 47.95 kB / 376 MB, free: 4.219 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.214e-06/0.002737, allocations: 3.938 kB / 376 MB, free: 4.215 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.488e-05/0.002762, allocations: 7.938 kB / 376 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000139/0.002901, allocations: 55.86 kB / 376.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.002903, allocations: 0 / 376.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.002903, allocations: 0 / 376.1 MB, free: 4.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.002907, allocations: 0 / 376.1 MB, free: 4.152 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.0003591/0.003266, allocations: 276 kB / 376.4 MB, free: 3.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.003305, allocations: 8.031 kB / 376.4 MB, free: 3.836 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.00335, allocations: 4.938 kB / 376.4 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.003459, allocations: 105.7 kB / 376.5 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.003471, allocations: 384 / 376.5 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-06/0.003479, allocations: 384 / 376.5 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.003596, allocations: 71.89 kB / 376.5 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.003607, allocations: 4.172 kB / 376.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.003615, allocations: 384 / 376.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.00362, allocations: 384 / 376.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.074e-05/0.00366, allocations: 33.64 kB / 376.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.003789, allocations: 97.33 kB / 376.7 MB, free: 3.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.261e-05/0.003862, allocations: 52.23 kB / 376.7 MB, free: 3.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.509e-05/0.003897, allocations: 30.56 kB / 376.8 MB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.538e-06/0.003906, allocations: 0 / 376.8 MB, free: 3.348 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.003968, allocations: 68.27 kB / 376.8 MB, free: 3.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.003969, allocations: 4 kB / 376.8 MB, free: 3.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002356/0.004205, allocations: 118.8 kB / 376.9 MB, free: 3.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.004268, allocations: 77.11 kB / 377 MB, free: 3.027 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.106e-05/0.004329, allocations: 89.86 kB / 377.1 MB, free: 2.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.00435, allocations: 29.7 kB / 377.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.004402, allocations: 80.14 kB / 377.2 MB, free: 2.812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.004418, allocations: 0 / 377.2 MB, free: 2.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.004451, allocations: 13.72 kB / 377.2 MB, free: 2.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.004624, allocations: 318.8 kB / 377.5 MB, free: 2.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.727e-05/0.004651, allocations: 25.7 kB / 377.6 MB, free: 2.441 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.552e-05/0.004677, allocations: 37.75 kB / 377.6 MB, free: 2.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.034e-05/0.004747, allocations: 60.27 kB / 377.7 MB, free: 2.324 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.004749, allocations: 0 / 377.7 MB, free: 2.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001036/0.004853, allocations: 89.11 kB / 377.8 MB, free: 2.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.004894, allocations: 37.69 kB / 377.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.004899, allocations: 0 / 377.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.004917, allocations: 0 / 377.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.004918, allocations: 0 / 377.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.004923, allocations: 0 / 377.8 MB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.699e-05/0.00494, allocations: 8.031 kB / 377.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.004945, allocations: 0 / 377.8 MB, free: 2.168 MB / 346.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 0.0001066/0.005052, allocations: 135.5 kB / 377.9 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.005068, allocations: 11.89 kB / 377.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.546e-06/0.005076, allocations: 3 kB / 377.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.005078, allocations: 0 / 377.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.005081, allocations: 0 / 377.9 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.005086, allocations: 3.984 kB / 377.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.636e-05/0.005182, allocations: 101.3 kB / 378 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.005183, allocations: 4 kB / 378.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.005184, allocations: 0 / 378.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.005185, allocations: 4 kB / 378.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.005191, allocations: 0 / 378.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.005193, allocations: 3.938 kB / 378.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.005193, allocations: 0 / 378.1 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.005343, allocations: 120.5 kB / 378.2 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-06/0.00535, allocations: 4 kB / 378.2 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.005363, allocations: 0 / 378.2 MB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.197e-05/0.005375, allocations: 4 kB / 378.2 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.005389, allocations: 0 / 378.2 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.005401, allocations: 4 kB / 378.2 MB, free: 1.703 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.24e-05/0.005443, allocations: 83.25 kB / 378.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.005443, allocations: 0 / 378.3 MB, free: 1.621 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002322/0.005676, allocations: 19.92 kB / 378.3 MB, free: 1.602 MB / 346.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.0005426/0.006218, allocations: 200.9 kB / 378.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.006357, allocations: 110.8 kB / 378.6 MB, free: 1.301 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.006358, allocations: 0 / 378.6 MB, free: 1.301 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.585e-05/0.006424, allocations: 85.09 kB / 378.7 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.006549, allocations: 0 / 378.7 MB, free: 1.199 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002142/0.006763, allocations: 112 kB / 378.8 MB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.673e-05/0.00682, allocations: 59.47 kB / 378.8 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.378e-06/0.006824, allocations: 4 kB / 378.8 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.499e-05/0.006839, allocations: 8.5 kB / 378.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.00684, allocations: 0 / 378.9 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of Templates: time 0.003437/0.01028, allocations: 0.6276 MB / 379.5 MB, free: 352 kB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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: 4.687095588073134]