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.001726/0.001726, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.002359/0.002359, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.00241/0.00241, allocations: 287 kB / 309.8 MB, free: 3.535 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.116/1.116, allocations: 180.6 MB / 0.5338 GB, free: 12.45 MB / 398.1 MB " [Timeout remaining time 178] 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.00317/0.00317, allocations: 111.8 kB / 0.7347 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5637/0.5669, allocations: 95.33 MB / 0.8278 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002902/0.5698, allocations: 1.691 MB / 0.8294 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.000891/0.5707, allocations: 0.6141 MB / 0.83 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.022e-05/0.5708, allocations: 6.562 kB / 0.83 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000194/0.571, allocations: 24.62 kB / 0.83 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.5712, allocations: 74.73 kB / 0.8301 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002083/0.5714, allocations: 72.69 kB / 0.8302 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.5716, allocations: 134 kB / 0.8303 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.5718, allocations: 46.41 kB / 0.8303 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.5719, allocations: 58.88 kB / 0.8304 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.572, allocations: 67.5 kB / 0.8305 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.5721, allocations: 10.5 kB / 0.8305 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.556e-05/0.5721, allocations: 22.78 kB / 0.8305 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.061e-05/0.5722, allocations: 44.42 kB / 0.8305 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.901e-05/0.5723, allocations: 60.58 kB / 0.8306 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.5725, allocations: 156 kB / 0.8307 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.5725, allocations: 0 / 0.8307 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5725, allocations: 0 / 0.8307 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.5725, allocations: 0 / 0.8307 GB, free: 1.086 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.0006117/0.5732, allocations: 479.1 kB / 0.8312 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.5732, allocations: 9.969 kB / 0.8312 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.725e-05/0.5732, allocations: 7.531 kB / 0.8312 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.854e-05/0.5732, allocations: 40.72 kB / 0.8313 GB, free: 0.5938 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.5734, allocations: 30.64 kB / 0.8313 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.5737, allocations: 246.5 kB / 0.8315 GB, free: 356 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.5737, allocations: 384 / 0.8315 GB, free: 356 kB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.5738, allocations: 9.625 kB / 0.8315 GB, free: 352 kB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.574, allocations: 106.2 kB / 0.8316 GB, free: 300 kB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.5741, allocations: 4 kB / 0.8316 GB, free: 296 kB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.5741, allocations: 6.625 kB / 0.8316 GB, free: 292 kB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.5741, allocations: 3.938 kB / 0.8316 GB, free: 288 kB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.5743, allocations: 60.94 kB / 0.8317 GB, free: 280 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.5749, allocations: 385.4 kB / 0.8321 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.575, allocations: 46.77 kB / 0.8321 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.5752, allocations: 30.17 kB / 0.8321 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.5752, allocations: 0 / 0.8321 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.5754, allocations: 99.8 kB / 0.8322 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.5754, allocations: 1.125 kB / 0.8322 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3): time 0.0004803/0.5759, allocations: 129.9 kB / 0.8324 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.576, allocations: 80.77 kB / 0.8324 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.5763, allocations: 255.2 kB / 0.8327 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.45e-05/0.5763, allocations: 33.7 kB / 0.8327 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.5764, allocations: 127.6 kB / 0.8328 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.401e-05/0.5765, allocations: 12.14 kB / 0.8329 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.141e-05/0.5765, allocations: 17.45 kB / 0.8329 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.5766, allocations: 325.2 kB / 0.8332 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.5768, allocations: 22.75 kB / 0.8332 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.5769, allocations: 51.12 kB / 0.8333 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002239/0.5771, allocations: 68.89 kB / 0.8333 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5771, allocations: 0 / 0.8333 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000295/0.5774, allocations: 107.3 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.5774, allocations: 4.344 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.5774, allocations: 6.031 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.5775, allocations: 5.312 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.5776, allocations: 13.2 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.5776, allocations: 0.7969 kB / 0.8334 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.416e-05/0.5777, allocations: 13.83 kB / 0.8335 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.5777, allocations: 2.25 kB / 0.8335 GB, free: 14.88 MB / 0.5919 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.0001183/0.5778, allocations: 128.9 kB / 0.8336 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/0.5778, allocations: 20.05 kB / 0.8336 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.5779, allocations: 21.98 kB / 0.8336 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.5779, allocations: 0.6562 kB / 0.8336 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.5779, allocations: 0 / 0.8336 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.5779, allocations: 4.969 kB / 0.8336 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.5781, allocations: 221.7 kB / 0.8338 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.5781, allocations: 4.656 kB / 0.8338 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.12e-05/0.5782, allocations: 11.16 kB / 0.8339 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5782, allocations: 1.5 kB / 0.8339 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/0.5782, allocations: 3.938 kB / 0.8339 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.5782, allocations: 1.219 kB / 0.8339 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5782, allocations: 2.688 kB / 0.8339 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.5785, allocations: 123 kB / 0.834 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.5786, allocations: 89.73 kB / 0.8341 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.5786, allocations: 7.531 kB / 0.8341 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.208e-05/0.5787, allocations: 8.953 kB / 0.8341 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.5787, allocations: 6.109 kB / 0.8341 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.5788, allocations: 7.031 kB / 0.8341 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001802/0.5789, allocations: 187 kB / 0.8343 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.5789, allocations: 0 / 0.8343 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002257/0.5792, allocations: 33.7 kB / 0.8343 GB, free: 14.2 MB / 0.5919 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.0008005/0.58, allocations: 0.6912 MB / 0.835 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003065/0.5803, allocations: 53.41 kB / 0.835 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5803, allocations: 0 / 0.835 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.5804, allocations: 31 kB / 0.8351 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.5807, allocations: 44.12 kB / 0.8351 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/0.5831, allocations: 1.759 MB / 0.8368 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.5835, allocations: 0.7237 MB / 0.8375 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.09e-05/0.5836, allocations: 17.88 kB / 0.8375 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.45e-05/0.5837, allocations: 48.42 kB / 0.8376 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of SimCode: time 5.41e-07/0.5837, allocations: 0 / 0.8376 GB, free: 11.45 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.6061, allocations: 3.722 MB / 0.8412 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/9.055, allocations: 16.55 kB / 0.8412 GB, free: 10.82 MB / 0.5919 GB " [Timeout remaining time 651] (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: 13.247978425002657] Failed to read output from testmodel.py, exit status != 0: 9.20455561298877 9.225295783 8.649005568 Calling exit ...