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.0009409/0.0009409, allocations: 83.69 kB / 20.67 MB, free: 3.879 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.001097/0.001097, allocations: 170 kB / 23.95 MB, free: 0.6055 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.9254/0.9254, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.2562/0.2562, allocations: 32.79 MB / 293.5 MB, free: 1.223 MB / 266.7 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 439.5 MB, free: 4.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.518e-05, allocations: 10.78 kB / 439.6 MB, free: 4.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00126/0.001285, allocations: 491 kB / 440 MB, free: 3.812 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004387/0.001724, allocations: 223.5 kB / 440.3 MB, free: 3.594 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.168e-05/0.001745, allocations: 0 / 440.3 MB, free: 3.594 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.668e-05/0.001762, allocations: 0 / 440.3 MB, free: 3.594 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.294e-06/0.001769, allocations: 4 kB / 440.3 MB, free: 3.59 MB / 410.7 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.000306/0.002075, allocations: 43.78 kB / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.738e-05/0.002133, allocations: 0 / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.002177, allocations: 0 / 440.3 MB, free: 3.547 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.002484, allocations: 7.984 kB / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.947e-05/0.002513, allocations: 3.984 kB / 440.3 MB, free: 3.535 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.002522, allocations: 0 / 440.3 MB, free: 3.535 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.002648, allocations: 47.84 kB / 440.4 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.002656, allocations: 3.984 kB / 440.4 MB, free: 3.484 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.112e-05/0.002677, allocations: 4 kB / 440.4 MB, free: 3.48 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001198/0.002797, allocations: 51.86 kB / 440.4 MB, free: 3.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.002799, allocations: 4 kB / 440.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.0028, allocations: 0 / 440.4 MB, free: 3.426 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.002805, allocations: 0 / 440.4 MB, free: 3.426 MB / 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.0002893/0.003095, allocations: 276 kB / 440.7 MB, free: 3.117 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.003139, allocations: 16.02 kB / 440.7 MB, free: 3.102 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.487e-05/0.003164, allocations: 30.75 kB / 440.7 MB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.676e-05/0.003191, allocations: 0.9375 kB / 440.7 MB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.784e-05/0.003248, allocations: 101.8 kB / 440.8 MB, free: 2.938 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.003258, allocations: 384 / 440.8 MB, free: 2.938 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-06/0.003264, allocations: 4.375 kB / 440.8 MB, free: 2.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.188e-05/0.003356, allocations: 63.95 kB / 440.9 MB, free: 2.859 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.003364, allocations: 192 / 440.9 MB, free: 2.859 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.003371, allocations: 4.375 kB / 440.9 MB, free: 2.855 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.00338, allocations: 4.125 kB / 440.9 MB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.705e-05/0.003407, allocations: 33.62 kB / 440.9 MB, free: 2.812 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001043/0.003511, allocations: 120.7 kB / 441.1 MB, free: 2.652 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.516e-05/0.003557, allocations: 40.28 kB / 441.1 MB, free: 2.598 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.992e-05/0.003576, allocations: 38.66 kB / 441.1 MB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.934e-06/0.003583, allocations: 0 / 441.1 MB, free: 2.551 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.00362, allocations: 60.27 kB / 441.2 MB, free: 2.477 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.003621, allocations: 4 kB / 441.2 MB, free: 2.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001739/0.003795, allocations: 118.7 kB / 441.3 MB, free: 2.332 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.003835, allocations: 85.05 kB / 441.4 MB, free: 2.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.955e-05/0.003864, allocations: 97.81 kB / 441.5 MB, free: 2.125 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.003874, allocations: 25.7 kB / 441.5 MB, free: 2.094 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.752e-05/0.003891, allocations: 80.14 kB / 441.6 MB, free: 2.012 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.003908, allocations: 0 / 441.6 MB, free: 2.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.12e-05/0.003929, allocations: 17.7 kB / 441.6 MB, free: 1.988 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.523e-05/0.004004, allocations: 310.8 kB / 441.9 MB, free: 1.676 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.004022, allocations: 25.7 kB / 441.9 MB, free: 1.645 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.394e-05/0.004036, allocations: 33.83 kB / 442 MB, free: 1.605 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.825e-05/0.004075, allocations: 64.27 kB / 442 MB, free: 1.527 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.004077, allocations: 0 / 442 MB, free: 1.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.813e-05/0.004135, allocations: 89.03 kB / 442.1 MB, free: 1.422 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.004169, allocations: 33.7 kB / 442.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.004175, allocations: 0 / 442.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.004189, allocations: 0 / 442.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.00419, allocations: 0 / 442.2 MB, free: 1.383 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/0.004197, allocations: 3.938 kB / 442.2 MB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.241e-05/0.004209, allocations: 4.031 kB / 442.2 MB, free: 1.375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.004218, allocations: 8 kB / 442.2 MB, free: 1.367 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 6.678e-05/0.004284, allocations: 140.2 kB / 442.3 MB, free: 1.215 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.979e-06/0.004289, allocations: 4 kB / 442.3 MB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.175e-05/0.004301, allocations: 7 kB / 442.3 MB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.004303, allocations: 0 / 442.3 MB, free: 1.199 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.004309, allocations: 3.938 kB / 442.3 MB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.004311, allocations: 0 / 442.3 MB, free: 1.195 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.177e-05/0.004373, allocations: 112.8 kB / 442.4 MB, free: 1.043 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.004375, allocations: 7.984 kB / 442.4 MB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.004376, allocations: 0 / 442.4 MB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.004377, allocations: 4 kB / 442.4 MB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.004387, allocations: 0 / 442.4 MB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.004387, allocations: 0 / 442.4 MB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.004389, allocations: 3.938 kB / 442.5 MB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.766e-05/0.004477, allocations: 120.5 kB / 442.6 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.629e-06/0.004482, allocations: 0 / 442.6 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.889e-06/0.004492, allocations: 4 kB / 442.6 MB, free: 0.875 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.442e-06/0.004498, allocations: 3.938 kB / 442.6 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.004511, allocations: 3.938 kB / 442.6 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.004513, allocations: 0 / 442.6 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.265e-05/0.004536, allocations: 83.31 kB / 442.7 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004536, allocations: 0 / 442.7 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001502/0.004686, allocations: 19.94 kB / 442.7 MB, free: 0.7656 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.0005321/0.005218, allocations: 0.7504 MB / 443.4 MB, free: 12 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1754/0.1807, allocations: 113.8 kB / 443.5 MB, free: 45.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1807, allocations: 0 / 443.5 MB, free: 45.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.263e-05/0.1807, allocations: 82.33 kB / 443.6 MB, free: 45.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001134/0.1808, allocations: 7.359 kB / 443.6 MB, free: 45.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002904/0.1811, allocations: 141.9 kB / 443.8 MB, free: 45.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.488e-05/0.1811, allocations: 59.19 kB / 443.8 MB, free: 45.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.68e-06/0.1811, allocations: 0 / 443.8 MB, free: 45.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/0.1811, allocations: 11.34 kB / 443.8 MB, free: 45.65 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1811, allocations: 0 / 443.8 MB, free: 45.65 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01646/0.1976, allocations: 2.079 MB / 445.9 MB, free: 44.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.822/7.02, allocations: 7.594 kB / 445.9 MB, free: 44.76 MB / 410.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.csv","/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] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.12276894878596]