Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.00141/0.00141, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001305/0.001305, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8914/0.8914, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2426/0.2426, allocations: 34.24 MB / 294.8 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 442.1 MB, free: 1.609 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.839e-05/1.991e-05, allocations: 5.094 kB / 442.1 MB, free: 1.605 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001129/0.001149, allocations: 493 kB / 442.6 MB, free: 1.125 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004182/0.001567, allocations: 211.6 kB / 442.8 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.875e-05/0.001586, allocations: 4 kB / 442.8 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.0016, allocations: 0 / 442.8 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-06/0.001606, allocations: 0 / 442.8 MB, free: 0.9141 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0002824/0.001888, allocations: 55.67 kB / 442.9 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.066e-05/0.001949, allocations: 4 kB / 442.9 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.055e-05/0.001989, allocations: 0 / 442.9 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.78e-05/0.002017, allocations: 0 / 442.9 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.456e-05/0.002042, allocations: 0 / 442.9 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.002049, allocations: 0 / 442.9 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.002163, allocations: 55.89 kB / 442.9 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.744e-06/0.002171, allocations: 0 / 442.9 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.002193, allocations: 0 / 442.9 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.002304, allocations: 55.86 kB / 443 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.002306, allocations: 0 / 443 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.002307, allocations: 0 / 443 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.002311, allocations: 0 / 443 MB, free: 0.7461 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.0002289/0.00254, allocations: 283.9 kB / 443.3 MB, free: 440 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.002576, allocations: 8.031 kB / 443.3 MB, free: 432 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.294e-05/0.002599, allocations: 38.69 kB / 443.3 MB, free: 384 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.235e-05/0.002622, allocations: 4.922 kB / 443.3 MB, free: 380 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.877e-05/0.00267, allocations: 105.8 kB / 443.4 MB, free: 248 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.436e-06/0.002679, allocations: 384 / 443.4 MB, free: 248 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.971e-06/0.002685, allocations: 384 / 443.4 MB, free: 248 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.733e-05/0.002762, allocations: 59.97 kB / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.00277, allocations: 192 / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.002777, allocations: 384 / 443.5 MB, free: 176 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.002783, allocations: 4.125 kB / 443.5 MB, free: 172 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.555e-05/0.002808, allocations: 29.7 kB / 443.5 MB, free: 136 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1769/0.1797, allocations: 116.8 kB / 443.6 MB, free: 44.22 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.768e-05/0.1798, allocations: 44.75 kB / 443.7 MB, free: 44.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.812e-05/0.1798, allocations: 39.45 kB / 443.7 MB, free: 44.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.1798, allocations: 0 / 443.7 MB, free: 44.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.1799, allocations: 61.8 kB / 443.8 MB, free: 44.06 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.713e-06/0.1799, allocations: 0 / 443.8 MB, free: 44.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.000165/0.18, allocations: 116.4 kB / 443.9 MB, free: 43.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.1801, allocations: 84.98 kB / 444 MB, free: 43.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.403e-05/0.1801, allocations: 95.47 kB / 444.1 MB, free: 43.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-06/0.1801, allocations: 25.7 kB / 444.1 MB, free: 43.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.771e-06/0.1801, allocations: 80.14 kB / 444.2 MB, free: 43.63 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.1801, allocations: 8.812 kB / 444.2 MB, free: 43.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.286e-05/0.1801, allocations: 12.28 kB / 444.2 MB, free: 43.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.753e-05/0.1801, allocations: 313.5 kB / 444.5 MB, free: 43.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.023e-05/0.1802, allocations: 26.42 kB / 444.5 MB, free: 43.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.276e-05/0.1802, allocations: 28.39 kB / 444.5 MB, free: 43.24 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.642e-05/0.1802, allocations: 68.95 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1802, allocations: 0 / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.707e-05/0.1802, allocations: 87.52 kB / 444.7 MB, free: 43.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1803, allocations: 36.48 kB / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1803, allocations: 0 / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.1803, allocations: 0.5312 kB / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.1803, allocations: 3.812 kB / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1803, allocations: 3.375 kB / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.1803, allocations: 0.6562 kB / 444.7 MB, free: 43.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.1803, allocations: 6.562 kB / 444.7 MB, free: 43.04 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 3.859e-05/0.1803, allocations: 139.8 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-06/0.1803, allocations: 0 / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.1804, allocations: 6.281 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1804, allocations: 0 / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1804, allocations: 6.141 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1804, allocations: 5.125 kB / 444.9 MB, free: 42.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.945e-05/0.1804, allocations: 120 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.1804, allocations: 0 / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.41e-07/0.1804, allocations: 0 / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.91e-07/0.1804, allocations: 2.906 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.1804, allocations: 1.734 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1804, allocations: 7.156 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1804, allocations: 0 / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.341e-05/0.1805, allocations: 117.6 kB / 445.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-06/0.1805, allocations: 2.844 kB / 445.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-06/0.1805, allocations: 0 / 445.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.859e-06/0.1805, allocations: 4.469 kB / 445.1 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.1805, allocations: 1.625 kB / 445.2 MB, free: 42.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.534e-06/0.1805, allocations: 2.688 kB / 445.2 MB, free: 42.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.464e-06/0.1805, allocations: 75.28 kB / 445.2 MB, free: 42.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1805, allocations: 0 / 445.2 MB, free: 42.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001589/0.1807, allocations: 26.34 kB / 445.3 MB, free: 42.53 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.0003725/0.181, allocations: 0.7418 MB / 446 MB, free: 41.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.118e-05/0.1811, allocations: 113.5 kB / 446.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.1811, allocations: 3.719 kB / 446.1 MB, free: 41.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.206e-05/0.1811, allocations: 81.42 kB / 446.2 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.761e-05/0.1812, allocations: 5.734 kB / 446.2 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002398/0.1815, allocations: 143.7 kB / 446.3 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.69e-05/0.1815, allocations: 57.66 kB / 446.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.69e-06/0.1815, allocations: 3.906 kB / 446.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.448e-05/0.1815, allocations: 11.44 kB / 446.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.1815, allocations: 0 / 446.4 MB, free: 41.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01462/0.1961, allocations: 2.072 MB / 448.5 MB, free: 40.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.805/7.001, allocations: 9.922 kB / 448.5 MB, free: 40.46 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.csv: Error: Error opening file: ModelicaTest_trunk_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.021932957693934]