Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001863/0.001863, allocations: 116.8 kB / 19.17 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002328/0.002328, allocations: 214.6 kB / 22.13 MB, free: 0.9414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 230.2 MB / 255.2 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2313/0.2313, allocations: 46.89 MB / 358.1 MB, free: 10.5 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002322/0.002322, allocations: 75.86 kB / 0.4923 GB, free: 8.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1233, allocations: 65.99 MB / 0.5568 GB, free: 5.941 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001803/0.1251, allocations: 494.6 kB / 0.5572 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005894/0.1257, allocations: 215.8 kB / 0.5575 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.1257, allocations: 0 / 0.5575 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.704e-05/0.1257, allocations: 0 / 0.5575 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.661e-06/0.1258, allocations: 0 / 0.5575 GB, free: 5.242 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.0003282/0.1261, allocations: 43.83 kB / 0.5575 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.86e-05/0.1261, allocations: 12 kB / 0.5575 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.773e-05/0.1262, allocations: 0 / 0.5575 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.416e-05/0.1262, allocations: 0 / 0.5575 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.318e-05/0.1262, allocations: 0 / 0.5575 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.723e-06/0.1262, allocations: 4 kB / 0.5575 GB, free: 5.184 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.1264, allocations: 47.95 kB / 0.5576 GB, free: 5.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.079e-05/0.1264, allocations: 3.984 kB / 0.5576 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.1264, allocations: 0 / 0.5576 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.1266, allocations: 47.88 kB / 0.5576 GB, free: 5.086 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.1266, allocations: 0 / 0.5576 GB, free: 5.086 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1266, allocations: 0 / 0.5576 GB, free: 5.086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1266, allocations: 0 / 0.5576 GB, free: 5.086 MB / 414.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.0004009/0.127, allocations: 357.2 kB / 0.5579 GB, free: 4.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.127, allocations: 8.031 kB / 0.558 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.127, allocations: 0.9375 kB / 0.558 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.1272, allocations: 160.4 kB / 0.5581 GB, free: 4.477 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.1272, allocations: 4.375 kB / 0.5581 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.1272, allocations: 384 / 0.5581 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.597e-05/0.1273, allocations: 30.2 kB / 0.5581 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.1273, allocations: 192 / 0.5581 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.1273, allocations: 15.92 kB / 0.5582 GB, free: 4.422 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.1273, allocations: 0 / 0.5582 GB, free: 4.422 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.685e-05/0.1273, allocations: 0 / 0.5582 GB, free: 4.422 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001498/0.1275, allocations: 145.6 kB / 0.5583 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.411e-05/0.1275, allocations: 22.61 kB / 0.5583 GB, free: 4.199 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.043e-05/0.1276, allocations: 8.797 kB / 0.5583 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.1276, allocations: 0 / 0.5583 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.1276, allocations: 60.27 kB / 0.5584 GB, free: 4.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.1276, allocations: 4.062 kB / 0.5584 GB, free: 4.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001836/0.1278, allocations: 63.33 kB / 0.5584 GB, free: 4.035 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.1279, allocations: 85.11 kB / 0.5585 GB, free: 3.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.235e-05/0.1279, allocations: 93.81 kB / 0.5586 GB, free: 3.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1279, allocations: 25.7 kB / 0.5586 GB, free: 3.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.128, allocations: 84.08 kB / 0.5587 GB, free: 3.715 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.128, allocations: 3.938 kB / 0.5587 GB, free: 3.711 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.128, allocations: 21.83 kB / 0.5587 GB, free: 3.684 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1282, allocations: 310.8 kB / 0.559 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-06/0.1282, allocations: 0 / 0.559 GB, free: 3.371 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.532e-06/0.1282, allocations: 3.938 kB / 0.559 GB, free: 3.367 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.56e-05/0.1282, allocations: 64.27 kB / 0.5591 GB, free: 3.289 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1282, allocations: 0 / 0.5591 GB, free: 3.289 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.416e-05/0.1283, allocations: 63.39 kB / 0.5592 GB, free: 3.215 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.1284, allocations: 29.7 kB / 0.5592 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1284, allocations: 4.094 kB / 0.5592 GB, free: 3.176 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.1284, allocations: 7.938 kB / 0.5592 GB, free: 3.168 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.1284, allocations: 0 / 0.5592 GB, free: 3.168 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.1284, allocations: 3.984 kB / 0.5592 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.1284, allocations: 0 / 0.5592 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1284, allocations: 0 / 0.5592 GB, free: 3.164 MB / 414.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.446e-05/0.1285, allocations: 135.5 kB / 0.5593 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.1285, allocations: 7.938 kB / 0.5593 GB, free: 3.008 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.932e-05/0.1285, allocations: 11.05 kB / 0.5594 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1285, allocations: 4 kB / 0.5594 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1285, allocations: 0 / 0.5594 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1285, allocations: 0 / 0.5594 GB, free: 2.996 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.1287, allocations: 149.7 kB / 0.5595 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1287, allocations: 0 / 0.5595 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-06/0.1287, allocations: 4 kB / 0.5595 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1287, allocations: 0 / 0.5595 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.1287, allocations: 3.938 kB / 0.5595 GB, free: 2.793 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1287, allocations: 3.984 kB / 0.5595 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1287, allocations: 4 kB / 0.5595 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.1288, allocations: 86.84 kB / 0.5596 GB, free: 2.676 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.1288, allocations: 77.11 kB / 0.5597 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.1289, allocations: 11.92 kB / 0.5597 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-06/0.1289, allocations: 3.938 kB / 0.5597 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.1289, allocations: 3.984 kB / 0.5597 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.1289, allocations: 0 / 0.5597 GB, free: 2.562 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.02e-05/0.1289, allocations: 76.97 kB / 0.5598 GB, free: 2.488 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1289, allocations: 11.91 kB / 0.5598 GB, free: 2.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002388/0.1292, allocations: 19.94 kB / 0.5598 GB, free: 2.457 MB / 414.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.000493/0.1296, allocations: 186.1 kB / 0.56 GB, free: 2.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.1298, allocations: 55.41 kB / 0.56 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1298, allocations: 0 / 0.56 GB, free: 2.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.169e-05/0.1298, allocations: 63.33 kB / 0.5601 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001316/0.1299, allocations: 7.938 kB / 0.5601 GB, free: 2.148 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002224/0.1302, allocations: 106.9 kB / 0.5602 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.1305, allocations: 0.6729 MB / 0.5609 GB, free: 1.312 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.47e-05/0.1305, allocations: 7.438 kB / 0.5609 GB, free: 1.305 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1305, allocations: 0 / 0.5609 GB, free: 1.305 MB / 414.1 MB Notification: Performance of Templates: time 0.002599/0.1331, allocations: 0.7532 MB / 0.5616 GB, free: 0.5469 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 7.4479246200062335]