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.001834/0.001834, allocations: 85.23 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002201/0.002201, allocations: 165.6 kB / 23.95 MB, free: 4.168 MB / 14.72 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.445/1.445, allocations: 177.1 MB / 204.3 MB, free: 9.188 MB / 190.1 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.1999/0.1999, allocations: 32.79 MB / 293.5 MB, free: 52 kB / 270.1 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 2.234e-06/2.234e-06, allocations: 0 / 440.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.957e-05/4.181e-05, allocations: 6.219 kB / 440.1 MB, free: 8.195 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002278/0.002319, allocations: 488.4 kB / 440.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007389/0.003058, allocations: 219.4 kB / 440.8 MB, free: 7.508 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.979e-05/0.003088, allocations: 4 kB / 440.8 MB, free: 7.504 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.003102, allocations: 0 / 440.8 MB, free: 7.504 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.089e-06/0.003107, allocations: 0 / 440.8 MB, free: 7.504 MB / 366.1 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.0003655/0.003472, allocations: 43.77 kB / 440.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.355e-05/0.003536, allocations: 8 kB / 440.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.557e-05/0.003581, allocations: 0 / 440.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.781e-05/0.003609, allocations: 3.938 kB / 440.8 MB, free: 7.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.146e-05/0.003641, allocations: 0 / 440.8 MB, free: 7.449 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.003649, allocations: 4 kB / 440.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.003797, allocations: 51.88 kB / 440.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.347e-06/0.003806, allocations: 4 kB / 440.9 MB, free: 7.391 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.003832, allocations: 4 kB / 440.9 MB, free: 7.387 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.003978, allocations: 51.86 kB / 440.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.003981, allocations: 0 / 440.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.01e-07/0.003981, allocations: 0 / 440.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.003987, allocations: 3.938 kB / 440.9 MB, free: 7.332 MB / 366.1 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.0003994/0.004386, allocations: 276 kB / 441.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.004428, allocations: 8.031 kB / 441.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.266e-05/0.004461, allocations: 4.938 kB / 441.2 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.004567, allocations: 105.8 kB / 441.3 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.00458, allocations: 4.312 kB / 441.3 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/0.004589, allocations: 4.375 kB / 441.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001221/0.004711, allocations: 55.97 kB / 441.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.004724, allocations: 4.188 kB / 441.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.004733, allocations: 384 / 441.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.004742, allocations: 384 / 441.4 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.661e-05/0.004779, allocations: 33.64 kB / 441.4 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.004904, allocations: 93.33 kB / 441.5 MB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.013e-05/0.004984, allocations: 60.23 kB / 441.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.128e-05/0.005015, allocations: 30.56 kB / 441.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.005025, allocations: 0 / 441.6 MB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/0.005077, allocations: 64.33 kB / 441.7 MB, free: 6.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.005078, allocations: 0 / 441.7 MB, free: 6.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002242/0.005302, allocations: 118.8 kB / 441.8 MB, free: 6.312 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.378e-05/0.005366, allocations: 81.05 kB / 441.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.00542, allocations: 89.86 kB / 441.9 MB, free: 6.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.005435, allocations: 25.7 kB / 442 MB, free: 6.086 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.671e-05/0.005472, allocations: 80.14 kB / 442 MB, free: 6.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.785e-05/0.00549, allocations: 7.953 kB / 442.1 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.00552, allocations: 13.66 kB / 442.1 MB, free: 5.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.005656, allocations: 318.8 kB / 442.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.609e-05/0.005682, allocations: 37.81 kB / 442.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.101e-05/0.005703, allocations: 25.7 kB / 442.4 MB, free: 5.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.071e-05/0.005773, allocations: 60.27 kB / 442.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005775, allocations: 0 / 442.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.562e-05/0.005871, allocations: 93.05 kB / 442.6 MB, free: 5.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.005906, allocations: 33.69 kB / 442.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.005911, allocations: 0 / 442.6 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.005925, allocations: 4 kB / 442.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.005926, allocations: 0 / 442.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.005931, allocations: 96 / 442.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.609e-05/0.005947, allocations: 7.938 kB / 442.6 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.005953, allocations: 0 / 442.6 MB, free: 5.348 MB / 366.1 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.79e-05/0.006051, allocations: 135.5 kB / 442.8 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/0.00606, allocations: 0 / 442.8 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.475e-05/0.006075, allocations: 10.97 kB / 442.8 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.006076, allocations: 3.938 kB / 442.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.006081, allocations: 0 / 442.8 MB, free: 5.184 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.006086, allocations: 4 kB / 442.8 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.163e-05/0.006168, allocations: 97.27 kB / 442.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.006168, allocations: 0 / 442.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.52e-07/0.006169, allocations: 4 kB / 442.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.006171, allocations: 0 / 442.9 MB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.006181, allocations: 4 kB / 442.9 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.006181, allocations: 0 / 442.9 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.006182, allocations: 0 / 442.9 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001267/0.006309, allocations: 124.4 kB / 443 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-06/0.006314, allocations: 0 / 443 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.006325, allocations: 0 / 443 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.32e-05/0.006338, allocations: 8 kB / 443 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.017e-05/0.006358, allocations: 7.984 kB / 443 MB, free: 4.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.006361, allocations: 4.031 kB / 443 MB, free: 4.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.604e-05/0.006397, allocations: 75.28 kB / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.006397, allocations: 0 / 443.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000217/0.006614, allocations: 15.94 kB / 443.1 MB, free: 4.785 MB / 366.1 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.0004902/0.007104, allocations: 205.7 kB / 443.3 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001356/0.00724, allocations: 110.8 kB / 443.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.007242, allocations: 0 / 443.4 MB, free: 4.477 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.244e-05/0.007295, allocations: 85.09 kB / 443.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.007421, allocations: 6.281 kB / 443.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002127/0.007634, allocations: 106.6 kB / 443.6 MB, free: 4.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.851e-05/0.007682, allocations: 63.47 kB / 443.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.174e-06/0.007689, allocations: 0 / 443.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.007706, allocations: 8.5 kB / 443.7 MB, free: 4.145 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.007706, allocations: 0 / 443.7 MB, free: 4.145 MB / 366.1 MB Notification: Performance of Templates: time 0.003672/0.01138, allocations: 0.6133 MB / 444.3 MB, free: 3.535 MB / 366.1 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.739308979362249]