Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.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.001306/0.001306, allocations: 118 kB / 17.84 MB, free: 5.234 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.001469/0.001469, allocations: 203.8 kB / 20.79 MB, free: 2.297 MB / 14.72 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 1.55/1.55, allocations: 230.6 MB / 254.2 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1.032/1.032, allocations: 150 MB / 460.2 MB, free: 5.668 MB / 350.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA requested package Modelica of version 4.0.0. Modelica 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.002038/0.002038, allocations: 70.11 kB / 0.6368 GB, free: 30.45 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1851, allocations: 89.13 MB / 0.7238 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.003201/0.1883, allocations: 1.669 MB / 0.7254 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1894, allocations: 0.6195 MB / 0.7261 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.447e-05/0.1895, allocations: 7.938 kB / 0.7261 GB, free: 1.773 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.1896, allocations: 27.78 kB / 0.7261 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002563/0.1899, allocations: 63.67 kB / 0.7261 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.1901, allocations: 75.83 kB / 0.7262 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.1903, allocations: 131.5 kB / 0.7263 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.1905, allocations: 45.75 kB / 0.7264 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.1907, allocations: 71.7 kB / 0.7265 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.1908, allocations: 63.69 kB / 0.7265 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.35e-05/0.1908, allocations: 8 kB / 0.7265 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.018e-05/0.1909, allocations: 23.98 kB / 0.7265 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.936e-05/0.191, allocations: 47.83 kB / 0.7266 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.638e-05/0.191, allocations: 55.61 kB / 0.7266 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.1913, allocations: 155.2 kB / 0.7268 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1913, allocations: 0 / 0.7268 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1913, allocations: 4 kB / 0.7268 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.1913, allocations: 0 / 0.7268 GB, free: 1.008 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000694/0.192, allocations: 474.4 kB / 0.7272 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.192, allocations: 8.031 kB / 0.7273 GB, free: 500 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.821e-05/0.192, allocations: 4.188 kB / 0.7273 GB, free: 496 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1921, allocations: 38.73 kB / 0.7273 GB, free: 448 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.1923, allocations: 36.73 kB / 0.7273 GB, free: 412 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.1926, allocations: 247.9 kB / 0.7276 GB, free: 124 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1926, allocations: 4.375 kB / 0.7276 GB, free: 120 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.528e-05/0.1926, allocations: 8.375 kB / 0.7276 GB, free: 112 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.1929, allocations: 109.8 kB / 0.7277 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1929, allocations: 0 / 0.7277 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.1929, allocations: 12 kB / 0.7277 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.1929, allocations: 0 / 0.7277 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.1932, allocations: 63.88 kB / 0.7278 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006221/0.1938, allocations: 376.6 kB / 0.7281 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.194, allocations: 46.53 kB / 0.7282 GB, free: 15.45 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.1941, allocations: 32.89 kB / 0.7282 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.1941, allocations: 0 / 0.7282 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.1943, allocations: 93.03 kB / 0.7283 GB, free: 15.3 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.372e-06/0.1943, allocations: 4 kB / 0.7283 GB, free: 15.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004747/0.1948, allocations: 129.4 kB / 0.7284 GB, free: 15.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/0.1949, allocations: 77.11 kB / 0.7285 GB, free: 15.07 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1952, allocations: 256.9 kB / 0.7287 GB, free: 14.81 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.1952, allocations: 29.7 kB / 0.7288 GB, free: 14.77 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.1953, allocations: 132.1 kB / 0.7289 GB, free: 14.64 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.719e-05/0.1953, allocations: 7.953 kB / 0.7289 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.1953, allocations: 17.72 kB / 0.7289 GB, free: 14.61 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1955, allocations: 322.8 kB / 0.7292 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.1956, allocations: 23.97 kB / 0.7292 GB, free: 14.26 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.1957, allocations: 51.41 kB / 0.7293 GB, free: 14.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.196, allocations: 74.45 kB / 0.7294 GB, free: 14.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.196, allocations: 0 / 0.7294 GB, free: 14.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003103/0.1963, allocations: 113.4 kB / 0.7295 GB, free: 14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1963, allocations: 4 kB / 0.7295 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1963, allocations: 0 / 0.7295 GB, free: 14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.1963, allocations: 11.94 kB / 0.7295 GB, free: 13.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.1965, allocations: 11.98 kB / 0.7295 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.1965, allocations: 0 / 0.7295 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.296e-05/0.1965, allocations: 15.92 kB / 0.7295 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1966, allocations: 4.094 kB / 0.7295 GB, free: 13.95 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001189/0.1967, allocations: 133.8 kB / 0.7296 GB, free: 13.81 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.328e-05/0.1967, allocations: 19.86 kB / 0.7297 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.743e-05/0.1968, allocations: 17.19 kB / 0.7297 GB, free: 13.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1968, allocations: 3.984 kB / 0.7297 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1968, allocations: 4 kB / 0.7297 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1968, allocations: 0 / 0.7297 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.197, allocations: 213.6 kB / 0.7299 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.197, allocations: 0 / 0.7299 GB, free: 13.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.99e-05/0.1971, allocations: 19.98 kB / 0.7299 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1971, allocations: 0 / 0.7299 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.1971, allocations: 3.938 kB / 0.7299 GB, free: 13.49 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1971, allocations: 4 kB / 0.7299 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1971, allocations: 0 / 0.7299 GB, free: 13.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.1974, allocations: 121 kB / 0.73 GB, free: 13.35 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.728e-05/0.1975, allocations: 93.02 kB / 0.7301 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.409e-05/0.1975, allocations: 7.875 kB / 0.7301 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.679e-05/0.1976, allocations: 7.984 kB / 0.7301 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.537e-05/0.1976, allocations: 8 kB / 0.7301 GB, free: 13.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/0.1977, allocations: 7.984 kB / 0.7301 GB, free: 13.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002091/0.1979, allocations: 184.5 kB / 0.7303 GB, free: 13.03 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1979, allocations: 3.938 kB / 0.7303 GB, free: 13.02 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002342/0.1981, allocations: 31.94 kB / 0.7304 GB, free: 12.99 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0008125/0.1989, allocations: 0.6775 MB / 0.731 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003055/0.1992, allocations: 59.83 kB / 0.7311 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1992, allocations: 3.938 kB / 0.7311 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.1994, allocations: 27.97 kB / 0.7311 GB, free: 12.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.1997, allocations: 40.75 kB / 0.7311 GB, free: 12.17 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.2021, allocations: 1.762 MB / 0.7329 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.2025, allocations: 0.7197 MB / 0.7336 GB, free: 9.555 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.506e-05/0.2025, allocations: 16.53 kB / 0.7336 GB, free: 9.539 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.441e-05/0.2026, allocations: 47.36 kB / 0.7336 GB, free: 9.492 MB / 0.545 GB Notification: Performance of SimCode: time 2.91e-07/0.2026, allocations: 0 / 0.7336 GB, free: 9.492 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.2238, allocations: 3.694 MB / 0.7372 GB, free: 5.918 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.631/8.855, allocations: 12.45 kB / 0.7372 GB, free: 5.906 MB / 0.545 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.801343853992876] Failed to read output from testmodel.py, exit status != 0: 8.985752218984999 9.006915832 8.811652406 Calling exit ...