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.001687/0.001687, allocations: 113.5 kB / 17.13 MB, free: 5.891 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.002196/0.002196, allocations: 212.3 kB / 20.09 MB, free: 2.941 MB / 14.72 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 1.454/1.454, allocations: 207.6 MB / 230.5 MB, free: 4.031 MB / 174.1 MB " [Timeout remaining time 178] 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.3196/0.3196, allocations: 44.23 MB / 326.6 MB, free: 6.812 MB / 254.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003239/0.003239, allocations: 71.89 kB / 462.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.3013, allocations: 61 MB / 0.5109 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001466/0.3028, allocations: 496.3 kB / 0.5114 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004556/0.3032, allocations: 214.1 kB / 0.5116 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.44e-05/0.3033, allocations: 5.094 kB / 0.5116 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.092e-05/0.3033, allocations: 0 / 0.5116 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.3033, allocations: 0 / 0.5116 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.3035, allocations: 42.39 kB / 0.5117 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.225e-05/0.3036, allocations: 5.188 kB / 0.5117 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.3036, allocations: 1.188 kB / 0.5117 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.545e-05/0.3036, allocations: 1.094 kB / 0.5117 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.087e-05/0.3037, allocations: 3.938 kB / 0.5117 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.989e-06/0.3037, allocations: 4 kB / 0.5117 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.3038, allocations: 50.84 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.675e-06/0.3038, allocations: 0 / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.3038, allocations: 1.062 kB / 0.5117 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.3039, allocations: 41.19 kB / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3039, allocations: 0 / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.3039, allocations: 1.031 kB / 0.5118 GB, free: 12.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3039, allocations: 3.938 kB / 0.5118 GB, free: 12.61 MB / 382.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.0002649/0.3042, allocations: 354.6 kB / 0.5121 GB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3043, allocations: 18.02 kB / 0.5121 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.055e-05/0.3043, allocations: 30.75 kB / 0.5121 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.3043, allocations: 10.02 kB / 0.5122 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.049e-05/0.3044, allocations: 160.4 kB / 0.5123 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.3044, allocations: 5.406 kB / 0.5123 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.3044, allocations: 1.438 kB / 0.5123 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.903e-05/0.3045, allocations: 32.34 kB / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3045, allocations: 3.938 kB / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.3045, allocations: 1.094 kB / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3045, allocations: 0 / 0.5123 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.777e-05/0.3045, allocations: 5.375 kB / 0.5124 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.626e-05/0.3046, allocations: 150.9 kB / 0.5125 GB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.366e-05/0.3046, allocations: 16.7 kB / 0.5125 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.424e-05/0.3047, allocations: 10.03 kB / 0.5125 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.3047, allocations: 0 / 0.5125 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.3047, allocations: 57.42 kB / 0.5126 GB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.292e-06/0.3047, allocations: 4 kB / 0.5126 GB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.3049, allocations: 71.16 kB / 0.5126 GB, free: 11.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.637e-05/0.3049, allocations: 78.17 kB / 0.5127 GB, free: 11.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.025e-05/0.3049, allocations: 93.84 kB / 0.5128 GB, free: 11.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.275e-06/0.3049, allocations: 26.89 kB / 0.5128 GB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.217e-05/0.3049, allocations: 80.14 kB / 0.5129 GB, free: 11.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.3049, allocations: 1.188 kB / 0.5129 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/0.305, allocations: 14.78 kB / 0.5129 GB, free: 11.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.684e-05/0.305, allocations: 319.9 kB / 0.5132 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.305, allocations: 1.062 kB / 0.5132 GB, free: 10.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.79e-06/0.305, allocations: 1.031 kB / 0.5132 GB, free: 10.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.735e-05/0.3051, allocations: 59.8 kB / 0.5133 GB, free: 10.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3051, allocations: 0 / 0.5133 GB, free: 10.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.37e-05/0.3051, allocations: 66.39 kB / 0.5134 GB, free: 10.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.3052, allocations: 31.33 kB / 0.5134 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3052, allocations: 3.938 kB / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3052, allocations: 5.156 kB / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.81e-07/0.3052, allocations: 0 / 0.5134 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3052, allocations: 5.047 kB / 0.5134 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.601e-05/0.3052, allocations: 0 / 0.5134 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.3052, allocations: 1.094 kB / 0.5134 GB, free: 10.71 MB / 382.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 5.491e-05/0.3053, allocations: 145.7 kB / 0.5135 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.255e-06/0.3053, allocations: 1.25 kB / 0.5135 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.3053, allocations: 7.062 kB / 0.5135 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3053, allocations: 5.25 kB / 0.5136 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3053, allocations: 4 kB / 0.5136 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3053, allocations: 3.984 kB / 0.5136 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.539e-05/0.3054, allocations: 143.7 kB / 0.5137 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.3054, allocations: 3.984 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.664e-06/0.3054, allocations: 1 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3054, allocations: 0 / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3054, allocations: 4.969 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.3054, allocations: 0 / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3054, allocations: 5.219 kB / 0.5137 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.879e-05/0.3055, allocations: 97.39 kB / 0.5138 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.3055, allocations: 77.11 kB / 0.5139 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.3055, allocations: 5.125 kB / 0.5139 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-06/0.3055, allocations: 1.594 kB / 0.5139 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.3055, allocations: 0 / 0.5139 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3055, allocations: 1.438 kB / 0.5139 GB, free: 10.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.37e-05/0.3055, allocations: 79.28 kB / 0.514 GB, free: 10.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3055, allocations: 0 / 0.514 GB, free: 10.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002142/0.3057, allocations: 15.72 kB / 0.514 GB, free: 10.05 MB / 382.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.0005445/0.3063, allocations: 0.7253 MB / 0.5147 GB, free: 9.355 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.815e-05/0.3064, allocations: 70.23 kB / 0.5148 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3064, allocations: 3.938 kB / 0.5148 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.744e-05/0.3064, allocations: 51.41 kB / 0.5148 GB, free: 9.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.3065, allocations: 5.594 kB / 0.5148 GB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002556/0.3068, allocations: 132.3 kB / 0.5149 GB, free: 9.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.367e-05/0.3069, allocations: 0.669 MB / 0.5156 GB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.3069, allocations: 3.312 kB / 0.5156 GB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.173e-05/0.3069, allocations: 7.438 kB / 0.5156 GB, free: 8.352 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3069, allocations: 0 / 0.5156 GB, free: 8.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02086/0.3277, allocations: 1.403 MB / 0.517 GB, free: 7.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.372, allocations: 6.016 kB / 0.517 GB, free: 7.43 MB / 382.1 MB " [Timeout remaining time 652] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 11.12084942299407]