Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001675/0.001675, allocations: 116 kB / 19.73 MB, free: 2.094 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.002034/0.002034, allocations: 208.9 kB / 23.04 MB, free: 4.438 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.477/1.477, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002553/0.002553, allocations: 291 kB / 313.5 MB, free: 2.801 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.235/1.235, allocations: 180.6 MB / 0.5377 GB, free: 12.96 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.003867/0.003867, allocations: 98.42 kB / 0.7403 GB, free: 28.64 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1914, allocations: 95.39 MB / 0.8335 GB, free: 8.824 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003319/0.1947, allocations: 1.69 MB / 0.8351 GB, free: 7.121 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.1959, allocations: 0.6233 MB / 0.8357 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.196, allocations: 7.938 kB / 0.8357 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1962, allocations: 27.72 kB / 0.8358 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000293/0.1965, allocations: 63.73 kB / 0.8358 GB, free: 6.395 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.1967, allocations: 79.84 kB / 0.8359 GB, free: 6.316 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.1969, allocations: 139.5 kB / 0.836 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.1971, allocations: 29.95 kB / 0.8361 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.1973, allocations: 67.7 kB / 0.8361 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1974, allocations: 63.7 kB / 0.8362 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.1974, allocations: 8 kB / 0.8362 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.302e-05/0.1975, allocations: 23.98 kB / 0.8362 GB, free: 5.984 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1976, allocations: 47.83 kB / 0.8363 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.429e-05/0.1977, allocations: 63.53 kB / 0.8363 GB, free: 5.875 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.1979, allocations: 159.3 kB / 0.8365 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1979, allocations: 0 / 0.8365 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.442e-06/0.1979, allocations: 0 / 0.8365 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.198, allocations: 0 / 0.8365 GB, free: 5.719 MB / 0.5762 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.0006472/0.1986, allocations: 401.2 kB / 0.8369 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.1986, allocations: 9.344 kB / 0.8369 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.574e-05/0.1987, allocations: 4.188 kB / 0.8369 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.1987, allocations: 38.73 kB / 0.8369 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.1989, allocations: 36.78 kB / 0.837 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.1993, allocations: 181.9 kB / 0.8371 GB, free: 5 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.1993, allocations: 4.375 kB / 0.8371 GB, free: 4.996 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.1993, allocations: 12.36 kB / 0.8371 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.1996, allocations: 110.5 kB / 0.8372 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1996, allocations: 4 kB / 0.8372 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.1996, allocations: 4 kB / 0.8373 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1996, allocations: 0 / 0.8373 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.1999, allocations: 59.94 kB / 0.8373 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.2005, allocations: 351.6 kB / 0.8376 GB, free: 4.418 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.2007, allocations: 46.55 kB / 0.8377 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.2008, allocations: 24.91 kB / 0.8377 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.2008, allocations: 0 / 0.8377 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.201, allocations: 101 kB / 0.8378 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.201, allocations: 0 / 0.8378 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004665/0.2015, allocations: 125.5 kB / 0.8379 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.2016, allocations: 77.11 kB / 0.838 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.2019, allocations: 260.8 kB / 0.8383 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.2019, allocations: 37.64 kB / 0.8383 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.202, allocations: 124.1 kB / 0.8384 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.202, allocations: 7.906 kB / 0.8384 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.2021, allocations: 21.7 kB / 0.8384 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001786/0.2023, allocations: 322.8 kB / 0.8387 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.2024, allocations: 27.97 kB / 0.8388 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.2026, allocations: 55.53 kB / 0.8388 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.2028, allocations: 62.53 kB / 0.8389 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2028, allocations: 0 / 0.8389 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002978/0.2031, allocations: 105.6 kB / 0.839 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.2031, allocations: 6.031 kB / 0.839 GB, free: 2.926 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2031, allocations: 7.938 kB / 0.839 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.2031, allocations: 3.984 kB / 0.839 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.2032, allocations: 19.92 kB / 0.839 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.2032, allocations: 0 / 0.839 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.2033, allocations: 23.95 kB / 0.839 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-06/0.2034, allocations: 0 / 0.839 GB, free: 2.871 MB / 0.5762 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.0001237/0.2035, allocations: 130.5 kB / 0.8392 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.465e-05/0.2035, allocations: 19.86 kB / 0.8392 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.588e-05/0.2036, allocations: 25.27 kB / 0.8392 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2036, allocations: 0 / 0.8392 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2036, allocations: 0 / 0.8392 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2036, allocations: 0 / 0.8392 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.2038, allocations: 188.7 kB / 0.8394 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.2038, allocations: 0 / 0.8394 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.042e-05/0.2038, allocations: 19.98 kB / 0.8394 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2038, allocations: 0 / 0.8394 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.2039, allocations: 3.938 kB / 0.8394 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2039, allocations: 0 / 0.8394 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2039, allocations: 0 / 0.8394 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.2042, allocations: 128.9 kB / 0.8395 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.634e-05/0.2042, allocations: 11.91 kB / 0.8395 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.2042, allocations: 3.938 kB / 0.8395 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.439e-05/0.2043, allocations: 11.98 kB / 0.8396 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.2044, allocations: 7.984 kB / 0.8396 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.29e-05/0.2044, allocations: 4 kB / 0.8396 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001888/0.2046, allocations: 188.5 kB / 0.8398 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2046, allocations: 4 kB / 0.8398 GB, free: 2.07 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002275/0.2048, allocations: 20 kB / 0.8398 GB, free: 2.051 MB / 0.5762 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.0008011/0.2056, allocations: 0.7027 MB / 0.8405 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002966/0.2059, allocations: 47.94 kB / 0.8405 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.2059, allocations: 0 / 0.8405 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.206, allocations: 31.97 kB / 0.8405 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003309/0.2063, allocations: 40.44 kB / 0.8406 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002377/0.2087, allocations: 1.78 MB / 0.8423 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.2091, allocations: 0.7235 MB / 0.843 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.486e-05/0.2091, allocations: 20.42 kB / 0.843 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.239e-05/0.2092, allocations: 43.41 kB / 0.8431 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of SimCode: time 4.11e-07/0.2092, allocations: 4 kB / 0.8431 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.2337, allocations: 3.803 MB / 0.8468 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.59, allocations: 6.734 kB / 0.8468 GB, free: 10.88 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.867273629002739] Failed to read output from testmodel.py, exit status != 0: 11.746812781027984 11.763383592 11.5620691 Calling exit ...