Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001137/0.001137, allocations: 76.5 kB / 19.92 MB, free: 4.637 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.001424/0.001424, allocations: 174.3 kB / 23.2 MB, free: 1.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9332/0.9332, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1354/0.1354, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.314e-06/2.314e-06, allocations: 0 / 406.8 MB, free: 13.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.888e-05/3.119e-05, allocations: 5.656 kB / 406.8 MB, free: 13.54 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001772/0.001803, allocations: 495 kB / 407.3 MB, free: 13.06 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006065/0.002409, allocations: 213.2 kB / 407.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.416e-05/0.002434, allocations: 4 kB / 407.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.782e-05/0.002451, allocations: 0 / 407.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.845e-06/0.002459, allocations: 0 / 407.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.002777, allocations: 51.75 kB / 407.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.747e-05/0.002854, allocations: 3.938 kB / 407.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.747e-05/0.002901, allocations: 0 / 407.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.301e-05/0.002934, allocations: 4 kB / 407.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.974e-05/0.002964, allocations: 0 / 407.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.458e-06/0.002974, allocations: 0 / 407.6 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.003109, allocations: 47.89 kB / 407.6 MB, free: 12.75 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.025e-05/0.00312, allocations: 3.984 kB / 407.6 MB, free: 12.74 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.423e-05/0.003144, allocations: 8 kB / 407.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.003279, allocations: 51.81 kB / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.003282, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.003284, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.00329, allocations: 0 / 407.7 MB, free: 12.68 MB / 346.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.0003344/0.003624, allocations: 276 kB / 408 MB, free: 12.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.003667, allocations: 8.031 kB / 408 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.003702, allocations: 34.75 kB / 408 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.003732, allocations: 0.9375 kB / 408 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.286e-05/0.003805, allocations: 101.8 kB / 408.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.003817, allocations: 4.312 kB / 408.1 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.003828, allocations: 4.375 kB / 408.1 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.003931, allocations: 59.95 kB / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.00394, allocations: 192 / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.485e-06/0.003949, allocations: 4.312 kB / 408.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.003955, allocations: 4.125 kB / 408.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.165e-05/0.003987, allocations: 33.69 kB / 408.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.004101, allocations: 116.8 kB / 408.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.552e-05/0.004157, allocations: 44.31 kB / 408.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.461e-05/0.004181, allocations: 34.55 kB / 408.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.004191, allocations: 4.062 kB / 408.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.004231, allocations: 64.25 kB / 408.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.004232, allocations: 0 / 408.5 MB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002639/0.004496, allocations: 122.7 kB / 408.6 MB, free: 11.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.004541, allocations: 81.05 kB / 408.7 MB, free: 11.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.411e-05/0.004575, allocations: 89.86 kB / 408.7 MB, free: 11.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.004589, allocations: 29.7 kB / 408.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.382e-05/0.004613, allocations: 80.14 kB / 408.9 MB, free: 11.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.004631, allocations: 3.953 kB / 408.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.004665, allocations: 13.72 kB / 408.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/0.004757, allocations: 318.8 kB / 409.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.333e-05/0.00478, allocations: 29.83 kB / 409.2 MB, free: 10.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.649e-05/0.004797, allocations: 25.7 kB / 409.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.242e-05/0.004849, allocations: 68.19 kB / 409.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.004851, allocations: 0 / 409.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.404e-05/0.004935, allocations: 89.11 kB / 409.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.004969, allocations: 36.36 kB / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.004975, allocations: 3.984 kB / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.004993, allocations: 0 / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.004994, allocations: 0 / 409.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.005, allocations: 8.031 kB / 409.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.005017, allocations: 0 / 409.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.005024, allocations: 0 / 409.4 MB, free: 10.63 MB / 346.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 7.79e-05/0.005102, allocations: 135.5 kB / 409.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.005114, allocations: 4 kB / 409.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.005125, allocations: 3 kB / 409.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.005127, allocations: 4 kB / 409.6 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.005133, allocations: 3.938 kB / 409.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.005136, allocations: 0 / 409.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.94e-05/0.005215, allocations: 120.8 kB / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.005217, allocations: 0 / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.005217, allocations: 4 kB / 409.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.005221, allocations: 7.938 kB / 409.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.005228, allocations: 0 / 409.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.00523, allocations: 3.938 kB / 409.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.005233, allocations: 3.938 kB / 409.7 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.005338, allocations: 116.5 kB / 409.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-06/0.005345, allocations: 0 / 409.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.005359, allocations: 4 kB / 409.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.158e-05/0.005371, allocations: 0 / 409.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.314e-05/0.005384, allocations: 3.938 kB / 409.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.005389, allocations: 8.016 kB / 409.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.412e-05/0.005413, allocations: 75.28 kB / 409.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.005414, allocations: 0 / 409.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002441/0.005658, allocations: 15.94 kB / 409.9 MB, free: 10.04 MB / 346.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.0007775/0.006435, allocations: 0.7717 MB / 410.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001116/0.006547, allocations: 106.8 kB / 410.8 MB, free: 9.117 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.00655, allocations: 4 kB / 410.8 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.42e-05/0.006584, allocations: 81.09 kB / 410.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001494/0.006734, allocations: 11.88 kB / 410.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.007136, allocations: 144.5 kB / 411.1 MB, free: 8.816 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.258e-05/0.007179, allocations: 59.36 kB / 411.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.561e-06/0.007185, allocations: 3.938 kB / 411.1 MB, free: 8.734 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.757e-05/0.007202, allocations: 8.5 kB / 411.1 MB, free: 8.727 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.007203, allocations: 0 / 411.1 MB, free: 8.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.02108, allocations: 2.057 MB / 413.2 MB, free: 6.664 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.609/6.631, allocations: 4 kB / 413.2 MB, free: 6.66 MB / 346.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Utilities_TestWriteFile.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.csv: Error: Error opening file: ModelicaTest_3.2.3_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: 8.680495754815638]