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.0009176/0.0009176, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001044/0.001044, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9104/0.9104, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2761/0.2761, allocations: 34.24 MB / 294.9 MB, free: 0.7109 MB / 266.7 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 1.423e-06/1.423e-06, allocations: 0 / 442.1 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.206e-05, allocations: 2.844 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001191/0.001213, allocations: 491.1 kB / 442.6 MB, free: 1.207 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004301/0.001643, allocations: 219.5 kB / 442.8 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.001663, allocations: 0 / 442.8 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.52e-05/0.001678, allocations: 0 / 442.8 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-06/0.001685, allocations: 3.938 kB / 442.8 MB, free: 0.9883 MB / 410.7 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.0003026/0.001988, allocations: 47.81 kB / 442.9 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.48e-05/0.002042, allocations: 0 / 442.9 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.252e-05/0.002085, allocations: 8 kB / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.973e-05/0.002115, allocations: 0 / 442.9 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.674e-05/0.002141, allocations: 3.938 kB / 442.9 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.973e-06/0.002148, allocations: 0 / 442.9 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.002255, allocations: 51.89 kB / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-06/0.002263, allocations: 0 / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.003e-05/0.002283, allocations: 0 / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000109/0.002392, allocations: 51.86 kB / 443 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.002394, allocations: 3.938 kB / 443 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.002395, allocations: 0 / 443 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.002399, allocations: 4 kB / 443 MB, free: 0.8203 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.0002446/0.002644, allocations: 280 kB / 443.3 MB, free: 0.5078 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.00268, allocations: 8.031 kB / 443.3 MB, free: 0.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.372e-05/0.002704, allocations: 30.75 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.308e-05/0.002727, allocations: 0.9375 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.538e-05/0.002782, allocations: 109.8 kB / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.002792, allocations: 384 / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-06/0.002799, allocations: 384 / 443.4 MB, free: 336 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.41e-05/0.002883, allocations: 59.91 kB / 443.5 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.002889, allocations: 192 / 443.5 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.002897, allocations: 384 / 443.5 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.002907, allocations: 8.062 kB / 443.5 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.27e-05/0.00293, allocations: 33.7 kB / 443.5 MB, free: 216 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.379e-05/0.003024, allocations: 124.7 kB / 443.6 MB, free: 48 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1793/0.1824, allocations: 44.31 kB / 443.7 MB, free: 44.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.694e-05/0.1824, allocations: 33.95 kB / 443.7 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.1824, allocations: 0 / 443.7 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1824, allocations: 59.17 kB / 443.8 MB, free: 44.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.1824, allocations: 0 / 443.8 MB, free: 44.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001649/0.1826, allocations: 118.9 kB / 443.9 MB, free: 43.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/0.1826, allocations: 80.86 kB / 444 MB, free: 43.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.334e-05/0.1826, allocations: 98.28 kB / 444.1 MB, free: 43.76 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.889e-06/0.1826, allocations: 25.7 kB / 444.1 MB, free: 43.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.621e-06/0.1827, allocations: 80.14 kB / 444.2 MB, free: 43.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.728e-05/0.1827, allocations: 2.969 kB / 444.2 MB, free: 43.65 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.153e-05/0.1827, allocations: 12.91 kB / 444.2 MB, free: 43.63 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.741e-05/0.1827, allocations: 314.7 kB / 444.5 MB, free: 43.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.107e-05/0.1827, allocations: 29.55 kB / 444.5 MB, free: 43.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-06/0.1827, allocations: 35.45 kB / 444.6 MB, free: 43.26 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.553e-05/0.1828, allocations: 60.55 kB / 444.6 MB, free: 43.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1828, allocations: 0 / 444.6 MB, free: 43.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.696e-05/0.1828, allocations: 92.2 kB / 444.7 MB, free: 43.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.669e-05/0.1828, allocations: 32.23 kB / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.1828, allocations: 0 / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1828, allocations: 2.219 kB / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.824e-06/0.1828, allocations: 5.203 kB / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1829, allocations: 0 / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.1829, allocations: 0 / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1829, allocations: 2.844 kB / 444.8 MB, free: 43.06 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 4.281e-05/0.1829, allocations: 142.6 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-06/0.1829, allocations: 0.5625 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.026e-05/0.1829, allocations: 4.969 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1829, allocations: 0 / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1829, allocations: 0 / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1829, allocations: 7.109 kB / 444.9 MB, free: 42.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.302e-05/0.183, allocations: 118.9 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.183, allocations: 0 / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.183, allocations: 6.594 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.62e-07/0.183, allocations: 0 / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.183, allocations: 0 / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.183, allocations: 1.781 kB / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.183, allocations: 0 / 445 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.237e-05/0.183, allocations: 121.7 kB / 445.1 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-06/0.1831, allocations: 10.58 kB / 445.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.02e-05/0.1831, allocations: 0 / 445.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.851e-06/0.1831, allocations: 0 / 445.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.188e-05/0.1831, allocations: 13.19 kB / 445.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-06/0.1831, allocations: 0 / 445.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.636e-06/0.1831, allocations: 75.28 kB / 445.2 MB, free: 42.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1831, allocations: 0 / 445.2 MB, free: 42.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001532/0.1832, allocations: 18.42 kB / 445.3 MB, free: 42.55 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.00039/0.1836, allocations: 0.7554 MB / 446 MB, free: 41.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.225e-05/0.1837, allocations: 114.1 kB / 446.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1837, allocations: 0 / 446.1 MB, free: 41.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.438e-05/0.1837, allocations: 84.55 kB / 446.2 MB, free: 41.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.745e-05/0.1838, allocations: 2.906 kB / 446.2 MB, free: 41.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002167/0.184, allocations: 148.1 kB / 446.4 MB, free: 41.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.196e-05/0.1841, allocations: 55.53 kB / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.368e-06/0.1841, allocations: 2.938 kB / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.171e-05/0.1841, allocations: 8.5 kB / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1841, allocations: 0 / 446.4 MB, free: 41.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.1996, allocations: 2.084 MB / 448.5 MB, free: 40.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.781/6.981, allocations: 7.766 kB / 448.5 MB, free: 40.5 MB / 410.7 MB " [Timeout remaining time 653] (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/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_4.1.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.csv: Error: Error opening file: ModelicaTest_4.1.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.10165171790868]