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.001331/0.001331, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001541/0.001541, allocations: 209.9 kB / 23.73 MB, free: 4.387 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.498/1.498, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.2529/0.2529, allocations: 46.96 MB / 360.9 MB, free: 4.027 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+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: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 67.91 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3344, allocations: 66.04 MB / 0.5606 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001679/0.336, allocations: 491.9 kB / 0.561 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006726/0.3367, allocations: 225.7 kB / 0.5613 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.491e-05/0.3367, allocations: 0 / 0.5613 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.705e-05/0.3368, allocations: 4 kB / 0.5613 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-06/0.3368, allocations: 0 / 0.5613 GB, free: 3.543 MB / 398.1 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.0003764/0.3371, allocations: 51.77 kB / 0.5613 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.485e-05/0.3372, allocations: 0 / 0.5613 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.3373, allocations: 0 / 0.5613 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.814e-05/0.3373, allocations: 0 / 0.5613 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.41e-05/0.3373, allocations: 4 kB / 0.5613 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.584e-06/0.3373, allocations: 0 / 0.5613 GB, free: 3.488 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.3375, allocations: 47.95 kB / 0.5614 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.3375, allocations: 3.984 kB / 0.5614 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.3375, allocations: 4 kB / 0.5614 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.3376, allocations: 43.75 kB / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3376, allocations: 0 / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3376, allocations: 0 / 0.5614 GB, free: 3.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.3376, allocations: 0 / 0.5614 GB, free: 3.395 MB / 398.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.0003872/0.338, allocations: 285.9 kB / 0.5617 GB, free: 3.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.3381, allocations: 12.03 kB / 0.5617 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.3381, allocations: 30.75 kB / 0.5617 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.321e-05/0.3381, allocations: 0.9375 kB / 0.5617 GB, free: 3.027 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.3383, allocations: 110.5 kB / 0.5618 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.3383, allocations: 4.375 kB / 0.5618 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.3383, allocations: 384 / 0.5618 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.3384, allocations: 55.97 kB / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.3384, allocations: 7.938 kB / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-06/0.3384, allocations: 0 / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3384, allocations: 0 / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.672e-05/0.3385, allocations: 25.7 kB / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.3386, allocations: 124.8 kB / 0.562 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.72e-05/0.3387, allocations: 44.22 kB / 0.5621 GB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.853e-05/0.3387, allocations: 34.66 kB / 0.5621 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.3388, allocations: 3.984 kB / 0.5621 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.49e-05/0.3388, allocations: 56.27 kB / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3388, allocations: 4 kB / 0.5622 GB, free: 2.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002439/0.3391, allocations: 122.7 kB / 0.5623 GB, free: 2.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.3391, allocations: 81.11 kB / 0.5624 GB, free: 2.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.855e-05/0.3392, allocations: 93.81 kB / 0.5625 GB, free: 2.098 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.3392, allocations: 25.7 kB / 0.5625 GB, free: 2.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.331e-05/0.3393, allocations: 80.14 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.3393, allocations: 0 / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.3393, allocations: 21.66 kB / 0.5626 GB, free: 1.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.3395, allocations: 314.8 kB / 0.5629 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.535e-05/0.3395, allocations: 25.7 kB / 0.5629 GB, free: 1.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.245e-05/0.3395, allocations: 33.83 kB / 0.5629 GB, free: 1.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.16e-05/0.3396, allocations: 64.27 kB / 0.563 GB, free: 1.492 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3396, allocations: 0 / 0.563 GB, free: 1.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.139e-05/0.3397, allocations: 85.09 kB / 0.5631 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/0.3397, allocations: 33.7 kB / 0.5631 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.3397, allocations: 11.88 kB / 0.5631 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3398, allocations: 0 / 0.5631 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3398, allocations: 0 / 0.5631 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.3398, allocations: 0 / 0.5631 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.078e-05/0.3398, allocations: 8.031 kB / 0.5631 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.3398, allocations: 4 kB / 0.5631 GB, free: 1.328 MB / 398.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 0.000108/0.3399, allocations: 131.5 kB / 0.5633 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.3399, allocations: 7.984 kB / 0.5633 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.587e-05/0.3399, allocations: 10.94 kB / 0.5633 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3399, allocations: 0 / 0.5633 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3399, allocations: 3.938 kB / 0.5633 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3399, allocations: 0 / 0.5633 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001199/0.3401, allocations: 120.8 kB / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3401, allocations: 0 / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3401, allocations: 0 / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3401, allocations: 4 kB / 0.5634 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.128e-06/0.3401, allocations: 3.938 kB / 0.5634 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3401, allocations: 3.984 kB / 0.5634 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.3401, allocations: 0 / 0.5634 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.3402, allocations: 112.5 kB / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.945e-06/0.3402, allocations: 7.984 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3402, allocations: 3.938 kB / 0.5635 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.3402, allocations: 0 / 0.5635 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.3403, allocations: 3.938 kB / 0.5635 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3403, allocations: 4 kB / 0.5635 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.671e-05/0.3403, allocations: 79.31 kB / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3403, allocations: 0 / 0.5636 GB, free: 0.75 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.3405, allocations: 19.94 kB / 0.5636 GB, free: 0.7305 MB / 398.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.0008829/0.3414, allocations: 0.7428 MB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.3416, allocations: 118.7 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3416, allocations: 0 / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.759e-05/0.3417, allocations: 85.05 kB / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.3418, allocations: 0 / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.3422, allocations: 148.3 kB / 0.5647 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.805e-05/0.3422, allocations: 55.48 kB / 0.5647 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.238e-05/0.3423, allocations: 7.984 kB / 0.5647 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.3423, allocations: 7.438 kB / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3423, allocations: 0 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02857/0.3709, allocations: 1.935 MB / 0.5666 GB, free: 13.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.56, allocations: 3.938 kB / 0.5666 GB, free: 13.65 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/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: 14.443726215977222]