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.0008794/0.0008794, allocations: 76.45 kB / 19.93 MB, free: 4.629 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.0009711/0.0009711, allocations: 173.9 kB / 23.21 MB, free: 1.344 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.8869/0.8869, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 0.5557/0.5557, allocations: 114 MB / 373.9 MB, free: 8.723 MB / 346.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 0.5542 GB, free: 2.84 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.406e-05/1.53e-05, allocations: 2.281 kB / 0.5542 GB, free: 2.836 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001983/0.001998, allocations: 1.636 MB / 0.5558 GB, free: 1.191 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0006995/0.002698, allocations: 0.5804 MB / 0.5563 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.342e-05/0.002771, allocations: 7.938 kB / 0.5563 GB, free: 0.5977 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.002929, allocations: 31.77 kB / 0.5564 GB, free: 0.5664 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002095/0.003139, allocations: 66.12 kB / 0.5564 GB, free: 0.5039 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.003309, allocations: 83.77 kB / 0.5565 GB, free: 432 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.003455, allocations: 135.4 kB / 0.5566 GB, free: 296 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.003601, allocations: 41.58 kB / 0.5567 GB, free: 252 kB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.003756, allocations: 79.8 kB / 0.5568 GB, free: 172 kB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 7.513e-05/0.003831, allocations: 43.89 kB / 0.5568 GB, free: 128 kB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.003851, allocations: 8 kB / 0.5568 GB, free: 120 kB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 5.983e-05/0.003911, allocations: 31.92 kB / 0.5568 GB, free: 88 kB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.003981, allocations: 47.83 kB / 0.5569 GB, free: 40 kB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.521e-05/0.004016, allocations: 31.86 kB / 0.5569 GB, free: 8 kB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.004198, allocations: 155.4 kB / 0.5571 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.0042, allocations: 0 / 0.5571 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.52e-07/0.004201, allocations: 0 / 0.5571 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.787e-06/0.004204, allocations: 0 / 0.5571 GB, free: 15.86 MB / 0.5261 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.000443/0.004647, allocations: 405.3 kB / 0.5574 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.004685, allocations: 12.61 kB / 0.5575 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.196e-05/0.004717, allocations: 34.75 kB / 0.5575 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.004833, allocations: 28.83 kB / 0.5575 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.005057, allocations: 189.1 kB / 0.5577 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.336e-06/0.005065, allocations: 384 / 0.5577 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.205e-05/0.005077, allocations: 8.375 kB / 0.5577 GB, free: 15.13 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000217/0.005294, allocations: 157.6 kB / 0.5579 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.005302, allocations: 192 / 0.5579 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.005317, allocations: 12.12 kB / 0.5579 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.005322, allocations: 0 / 0.5579 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.005442, allocations: 63.94 kB / 0.5579 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.005864, allocations: 347.6 kB / 0.5583 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 7.79e-05/0.005942, allocations: 38.5 kB / 0.5583 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.606e-05/0.005998, allocations: 28.89 kB / 0.5583 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.006012, allocations: 0 / 0.5583 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001674/0.00618, allocations: 160.4 kB / 0.5585 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 7.71e-07/0.00618, allocations: 0 / 0.5585 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002645/0.006445, allocations: 129.3 kB / 0.5586 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.006481, allocations: 77.11 kB / 0.5587 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.006657, allocations: 257.7 kB / 0.5589 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.00667, allocations: 29.7 kB / 0.559 GB, free: 13.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.096e-05/0.006731, allocations: 132.1 kB / 0.5591 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.539e-05/0.006746, allocations: 7.891 kB / 0.5591 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.259e-05/0.006779, allocations: 17.72 kB / 0.5591 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.133e-05/0.00686, allocations: 330.8 kB / 0.5594 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.522e-05/0.006916, allocations: 23.97 kB / 0.5594 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.66e-05/0.006982, allocations: 77.11 kB / 0.5595 GB, free: 13.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000343/0.007325, allocations: 66.5 kB / 0.5596 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.007327, allocations: 0 / 0.5596 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001594/0.007487, allocations: 105.5 kB / 0.5597 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.007499, allocations: 4 kB / 0.5597 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.007503, allocations: 4.094 kB / 0.5597 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.007515, allocations: 0 / 0.5597 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.431e-05/0.007589, allocations: 11.98 kB / 0.5597 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.007595, allocations: 7.938 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.46e-05/0.007639, allocations: 15.94 kB / 0.5597 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.007648, allocations: 4 kB / 0.5597 GB, free: 12.87 MB / 0.5261 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 7.277e-05/0.00772, allocations: 125.8 kB / 0.5598 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.883e-05/0.007739, allocations: 15.91 kB / 0.5599 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.749e-05/0.007767, allocations: 21.33 kB / 0.5599 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.007769, allocations: 4 kB / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.007774, allocations: 11.94 kB / 0.5599 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.007778, allocations: 3.938 kB / 0.5599 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.007879, allocations: 168.7 kB / 0.5601 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.007879, allocations: 0 / 0.5601 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.116e-05/0.007911, allocations: 11.98 kB / 0.5601 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.007912, allocations: 0 / 0.5601 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.00792, allocations: 4 kB / 0.5601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.007921, allocations: 0 / 0.5601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.007922, allocations: 0 / 0.5601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.008076, allocations: 128.9 kB / 0.5602 GB, free: 12.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.602e-05/0.008092, allocations: 15.89 kB / 0.5602 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.008108, allocations: 7.938 kB / 0.5602 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.551e-05/0.008143, allocations: 11.98 kB / 0.5602 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.008184, allocations: 3.938 kB / 0.5602 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.008205, allocations: 7.984 kB / 0.5602 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001207/0.008325, allocations: 189.2 kB / 0.5604 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1e-07/0.008326, allocations: 7.875 kB / 0.5604 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001552/0.008481, allocations: 31.92 kB / 0.5605 GB, free: 12.04 MB / 0.5261 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.0004286/0.008909, allocations: 0.6791 MB / 0.5611 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001635/0.009073, allocations: 51.89 kB / 0.5612 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.009074, allocations: 4 kB / 0.5612 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 5.52e-05/0.009129, allocations: 27.97 kB / 0.5612 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.009346, allocations: 40.88 kB / 0.5612 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.01073, allocations: 1.766 MB / 0.563 GB, free: 9.355 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.886e-05/0.0108, allocations: 106.2 kB / 0.5631 GB, free: 9.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.248e-05/0.01086, allocations: 20.34 kB / 0.5631 GB, free: 9.207 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.098e-05/0.01092, allocations: 44.48 kB / 0.5631 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of SimCode: time 1.052e-06/0.01092, allocations: 0 / 0.5631 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.02837, allocations: 4.408 MB / 0.5674 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.343, allocations: 4.922 kB / 0.5674 GB, free: 4.938 MB / 0.5261 GB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.944731171242893] Failed to read output from testmodel.py, exit status != 0: 7.423084272071719 7.432168627 7.426214894 Calling exit ...