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.001341/0.001341, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00141/0.00141, allocations: 209.5 kB / 23.73 MB, free: 4.523 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.226/0.226, allocations: 46.95 MB / 360.9 MB, free: 4.047 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.001983/0.001983, allocations: 67.89 kB / 0.4961 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3236, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001526/0.3252, allocations: 481 kB / 0.561 GB, free: 3.777 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005647/0.3257, allocations: 221.8 kB / 0.5612 GB, free: 3.562 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.3257, allocations: 4 kB / 0.5612 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.133e-05/0.3258, allocations: 0 / 0.5612 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.759e-06/0.3258, allocations: 0 / 0.5612 GB, free: 3.559 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.0002711/0.326, allocations: 43.84 kB / 0.5613 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.234e-05/0.3261, allocations: 0 / 0.5613 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.999e-05/0.3261, allocations: 0 / 0.5613 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.995e-05/0.3261, allocations: 7.984 kB / 0.5613 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.836e-05/0.3262, allocations: 3.938 kB / 0.5613 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.524e-06/0.3262, allocations: 3.938 kB / 0.5613 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.3263, allocations: 55.95 kB / 0.5614 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.633e-06/0.3263, allocations: 0 / 0.5614 GB, free: 3.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.828e-05/0.3263, allocations: 4 kB / 0.5614 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.3264, allocations: 43.73 kB / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3264, allocations: 0 / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3264, allocations: 0 / 0.5614 GB, free: 3.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3264, allocations: 4 kB / 0.5614 GB, free: 3.398 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.0003411/0.3268, allocations: 278 kB / 0.5617 GB, free: 3.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.3268, allocations: 8.031 kB / 0.5617 GB, free: 3.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.888e-05/0.3269, allocations: 34.69 kB / 0.5617 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.3269, allocations: 0.9375 kB / 0.5617 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.327, allocations: 114.5 kB / 0.5618 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.327, allocations: 4.312 kB / 0.5618 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-06/0.327, allocations: 4.375 kB / 0.5618 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.577e-05/0.3271, allocations: 59.95 kB / 0.5619 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3271, allocations: 7.875 kB / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.3271, allocations: 0 / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.3271, allocations: 0 / 0.5619 GB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.16e-05/0.3272, allocations: 25.7 kB / 0.5619 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.3273, allocations: 116.8 kB / 0.562 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.236e-05/0.3274, allocations: 48.31 kB / 0.5621 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.041e-05/0.3274, allocations: 34.55 kB / 0.5621 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.3274, allocations: 0 / 0.5621 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/0.3275, allocations: 64.33 kB / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3275, allocations: 0 / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001983/0.3277, allocations: 126.7 kB / 0.5623 GB, free: 2.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.3277, allocations: 77.11 kB / 0.5624 GB, free: 2.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.055e-05/0.3278, allocations: 93.81 kB / 0.5625 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.3278, allocations: 25.7 kB / 0.5625 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.3278, allocations: 80.14 kB / 0.5626 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.399e-05/0.3279, allocations: 0 / 0.5626 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/0.3279, allocations: 13.72 kB / 0.5626 GB, free: 1.969 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.328, allocations: 314.8 kB / 0.5629 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.359e-05/0.328, allocations: 33.83 kB / 0.5629 GB, free: 1.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.796e-05/0.3281, allocations: 25.7 kB / 0.5629 GB, free: 1.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.657e-05/0.3281, allocations: 68.19 kB / 0.563 GB, free: 1.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.3281, allocations: 0 / 0.563 GB, free: 1.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.993e-05/0.3282, allocations: 93.11 kB / 0.5631 GB, free: 1.391 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.3282, allocations: 29.7 kB / 0.5631 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3282, allocations: 3.938 kB / 0.5631 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.3283, allocations: 3.984 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.715e-06/0.3283, allocations: 4 kB / 0.5631 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.3283, allocations: 8.078 kB / 0.5631 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.419e-05/0.3283, allocations: 0 / 0.5631 GB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.3283, allocations: 0 / 0.5631 GB, free: 1.336 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 9.604e-05/0.3284, allocations: 135.5 kB / 0.5633 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.254e-06/0.3284, allocations: 0 / 0.5633 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.172e-05/0.3284, allocations: 6.938 kB / 0.5633 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.3284, allocations: 3.938 kB / 0.5633 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3284, allocations: 0 / 0.5633 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.3284, allocations: 0 / 0.5633 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.26e-05/0.3285, allocations: 124.7 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3285, allocations: 4 kB / 0.5634 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3285, allocations: 0 / 0.5634 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.3285, allocations: 0 / 0.5634 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.3285, allocations: 7.938 kB / 0.5634 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3285, allocations: 3.938 kB / 0.5634 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3285, allocations: 4 kB / 0.5634 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.3286, allocations: 116.5 kB / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-06/0.3286, allocations: 0 / 0.5635 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.3286, allocations: 3.938 kB / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-06/0.3287, allocations: 0 / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.351e-05/0.3287, allocations: 4 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.3287, allocations: 4.031 kB / 0.5635 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.357e-05/0.3287, allocations: 75.28 kB / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3287, allocations: 0 / 0.5636 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3289, allocations: 19.92 kB / 0.5636 GB, free: 0.7422 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.0007439/0.3297, allocations: 0.7548 MB / 0.5644 GB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001212/0.3298, allocations: 106.8 kB / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3298, allocations: 0 / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.555e-05/0.3299, allocations: 89.09 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.0001194/0.33, allocations: 4 kB / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003669/0.3303, allocations: 144.4 kB / 0.5647 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.938e-05/0.3304, allocations: 63.19 kB / 0.5647 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.3304, allocations: 0 / 0.5647 GB, free: 15.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.3304, allocations: 7.438 kB / 0.5647 GB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3304, allocations: 0 / 0.5647 GB, free: 15.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.3576, allocations: 1.955 MB / 0.5667 GB, free: 13.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.06, allocations: 4.062 kB / 0.5667 GB, free: 13.64 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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: 13.927435685007367]