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.0009281/0.0009281, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005185/0.005185, allocations: 160.7 kB / 24.7 MB, free: 8.898 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.8741/0.8741, allocations: 177.1 MB / 205 MB, free: 5.73 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.227/0.227, allocations: 34.26 MB / 295.7 MB, free: 0.6914 MB / 266.7 MB " [Timeout remaining time 180] 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 2.716e-06/2.716e-06, allocations: 0 / 443.4 MB, free: 1.176 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.621e-05/3.892e-05, allocations: 3.266 kB / 443.4 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001256/0.001295, allocations: 495 kB / 443.9 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005602/0.001855, allocations: 215.6 kB / 444.1 MB, free: 492 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.328e-05/0.001878, allocations: 0 / 444.1 MB, free: 492 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.778e-05/0.001896, allocations: 0 / 444.1 MB, free: 492 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.983e-06/0.001903, allocations: 0 / 444.1 MB, free: 492 kB / 410.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.0003116/0.002215, allocations: 51.77 kB / 444.2 MB, free: 440 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.301e-05/0.002268, allocations: 0 / 444.2 MB, free: 440 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.804e-05/0.002306, allocations: 0 / 444.2 MB, free: 440 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.544e-05/0.002331, allocations: 0 / 444.2 MB, free: 440 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.621e-05/0.002357, allocations: 8 kB / 444.2 MB, free: 432 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.414e-06/0.002365, allocations: 0 / 444.2 MB, free: 432 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.002471, allocations: 43.95 kB / 444.2 MB, free: 388 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.00248, allocations: 3.984 kB / 444.2 MB, free: 384 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.002501, allocations: 4 kB / 444.2 MB, free: 380 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.002623, allocations: 51.81 kB / 444.3 MB, free: 328 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.002625, allocations: 0 / 444.3 MB, free: 328 kB / 410.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.002626, allocations: 0 / 444.3 MB, free: 328 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.00263, allocations: 0 / 444.3 MB, free: 328 kB / 410.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.0002479/0.002878, allocations: 276 kB / 444.5 MB, free: 12 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.002913, allocations: 12.03 kB / 444.5 MB, free: 0 / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.701e-05/0.00297, allocations: 2.609 kB / 444.5 MB, free: 44.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.46e-05/0.003015, allocations: 107.4 kB / 444.7 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.003029, allocations: 3.844 kB / 444.7 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.003037, allocations: 384 / 444.7 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.965e-05/0.003116, allocations: 59.25 kB / 444.7 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.003124, allocations: 4.031 kB / 444.7 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.003131, allocations: 6.188 kB / 444.7 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.003135, allocations: 1.094 kB / 444.7 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.661e-05/0.003152, allocations: 29.64 kB / 444.8 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.671e-05/0.003218, allocations: 100.6 kB / 444.9 MB, free: 44.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.363e-05/0.003252, allocations: 48.69 kB / 444.9 MB, free: 44.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.22e-05/0.003264, allocations: 31.38 kB / 444.9 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.814e-06/0.003272, allocations: 2.938 kB / 444.9 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.003295, allocations: 61.44 kB / 445 MB, free: 43.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.003296, allocations: 3.562 kB / 445 MB, free: 43.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001343/0.00343, allocations: 121.8 kB / 445.1 MB, free: 43.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.003455, allocations: 77.92 kB / 445.2 MB, free: 43.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.401e-05/0.003469, allocations: 92.95 kB / 445.3 MB, free: 43.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-06/0.003473, allocations: 26.45 kB / 445.3 MB, free: 43.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.31e-06/0.003479, allocations: 80.14 kB / 445.4 MB, free: 43.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.003493, allocations: 3.266 kB / 445.4 MB, free: 43.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.139e-05/0.003514, allocations: 14.19 kB / 445.4 MB, free: 43.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.425e-05/0.003539, allocations: 318 kB / 445.7 MB, free: 43.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.003549, allocations: 33.55 kB / 445.7 MB, free: 43.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.492e-06/0.003556, allocations: 28.14 kB / 445.8 MB, free: 43.14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.325e-05/0.003579, allocations: 62.17 kB / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.00358, allocations: 2.906 kB / 445.8 MB, free: 43.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 2.871e-05/0.003609, allocations: 89.64 kB / 445.9 MB, free: 42.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.003629, allocations: 35.05 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.003634, allocations: 0 / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.003646, allocations: 3.781 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.003647, allocations: 0 / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.003651, allocations: 2.844 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.185e-05/0.003663, allocations: 7.172 kB / 446 MB, free: 42.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.003669, allocations: 0 / 446 MB, free: 42.95 MB / 410.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 3.299e-05/0.003702, allocations: 134.5 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-06/0.003705, allocations: 2.188 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.135e-06/0.003713, allocations: 6.906 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.003716, allocations: 2.906 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.003719, allocations: 1.5 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.003721, allocations: 3.906 kB / 446.1 MB, free: 42.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.704e-05/0.003748, allocations: 104.6 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.003749, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.003749, allocations: 1.75 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.00375, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-06/0.003755, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.003756, allocations: 0 / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.003756, allocations: 2.75 kB / 446.2 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.204e-05/0.003798, allocations: 120.2 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-06/0.003801, allocations: 0 / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-06/0.003811, allocations: 6.516 kB / 446.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.359e-06/0.003815, allocations: 1.969 kB / 446.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-06/0.003825, allocations: 1.375 kB / 446.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-06/0.003827, allocations: 2.531 kB / 446.4 MB, free: 42.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.502e-06/0.003833, allocations: 75.28 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003833, allocations: 3.656 kB / 446.4 MB, free: 42.47 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001439/0.003977, allocations: 15.84 kB / 446.4 MB, free: 42.47 MB / 410.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.0002669/0.004244, allocations: 207.5 kB / 446.7 MB, free: 42.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.861e-05/0.004313, allocations: 116.2 kB / 446.8 MB, free: 42.24 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.004314, allocations: 0 / 446.8 MB, free: 42.24 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.343e-05/0.004327, allocations: 84.06 kB / 446.8 MB, free: 42.15 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.896e-05/0.004416, allocations: 2.688 kB / 446.8 MB, free: 42.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001405/0.004557, allocations: 133.1 kB / 447 MB, free: 42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.015e-05/0.004577, allocations: 54.3 kB / 447 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.097e-06/0.004586, allocations: 8.5 kB / 447 MB, free: 41.93 MB / 410.7 MB Notification: Performance of SimCode: time 3.31e-07/0.004587, allocations: 0 / 447 MB, free: 41.93 MB / 410.7 MB Notification: Performance of Templates: time 0.001477/0.006063, allocations: 0.7655 MB / 447.8 MB, free: 41.86 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.576431799679995]