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.0007858/0.0007858, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008498/0.0008498, allocations: 165.9 kB / 22.45 MB, free: 2.105 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.8725/0.8725, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.001485/0.001485, allocations: 242.1 kB / 259.4 MB, free: 13.01 MB / 250.7 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 0.6526/0.6526, allocations: 138.4 MB / 454.3 MB, free: 29.96 MB / 410.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 0.6463 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.983e-05/2.143e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.859 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002143/0.002165, allocations: 1.643 MB / 0.6479 GB, free: 204 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2239/0.2261, allocations: 0.5749 MB / 0.6484 GB, free: 56.01 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.2262, allocations: 5.938 kB / 0.6484 GB, free: 56.01 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.2264, allocations: 25.58 kB / 0.6485 GB, free: 56.01 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.2266, allocations: 71.2 kB / 0.6485 GB, free: 56.01 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.2269, allocations: 73.48 kB / 0.6486 GB, free: 56 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.227, allocations: 136.7 kB / 0.6487 GB, free: 55.99 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.2272, allocations: 35.66 kB / 0.6488 GB, free: 55.98 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.2274, allocations: 82.14 kB / 0.6488 GB, free: 55.97 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.2275, allocations: 52.23 kB / 0.6489 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.805e-05/0.2275, allocations: 8.938 kB / 0.6489 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.2276, allocations: 32.39 kB / 0.6489 GB, free: 55.96 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.2277, allocations: 45.56 kB / 0.649 GB, free: 55.95 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.309e-05/0.2277, allocations: 35.41 kB / 0.649 GB, free: 55.95 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.2279, allocations: 147.9 kB / 0.6492 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2279, allocations: 4.578 kB / 0.6492 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2279, allocations: 2.125 kB / 0.6492 GB, free: 55.93 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.2279, allocations: 0 / 0.6492 GB, free: 55.93 MB / 0.5573 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.0004467/0.2284, allocations: 400.2 kB / 0.6495 GB, free: 55.6 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2284, allocations: 11.81 kB / 0.6496 GB, free: 55.6 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.841e-05/0.2285, allocations: 37.58 kB / 0.6496 GB, free: 55.56 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.2286, allocations: 33.81 kB / 0.6496 GB, free: 55.55 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.2288, allocations: 179.2 kB / 0.6498 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.2288, allocations: 7.312 kB / 0.6498 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2289, allocations: 9.031 kB / 0.6498 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.2291, allocations: 159.3 kB / 0.65 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.2291, allocations: 1.125 kB / 0.65 GB, free: 55.31 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.2291, allocations: 7.859 kB / 0.65 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2291, allocations: 2.312 kB / 0.65 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001285/0.2292, allocations: 62.84 kB / 0.65 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004174/0.2296, allocations: 344.6 kB / 0.6504 GB, free: 55.06 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 8.265e-05/0.2297, allocations: 41.25 kB / 0.6504 GB, free: 55.04 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.778e-05/0.2298, allocations: 25.05 kB / 0.6504 GB, free: 55.03 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.2298, allocations: 1.484 kB / 0.6504 GB, free: 55.03 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/0.23, allocations: 153.8 kB / 0.6506 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.23, allocations: 2.031 kB / 0.6506 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002676/0.2302, allocations: 118.9 kB / 0.6507 GB, free: 54.86 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.2303, allocations: 77.81 kB / 0.6508 GB, free: 54.77 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000179/0.2304, allocations: 264.4 kB / 0.651 GB, free: 54.66 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.457e-06/0.2304, allocations: 33.48 kB / 0.651 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.544e-05/0.2305, allocations: 130.6 kB / 0.6512 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.2305, allocations: 4.703 kB / 0.6512 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.2305, allocations: 18.56 kB / 0.6512 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.893e-05/0.2306, allocations: 334.1 kB / 0.6515 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.603e-05/0.2306, allocations: 29.8 kB / 0.6515 GB, free: 54.2 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.293e-05/0.2307, allocations: 76.86 kB / 0.6516 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.2308, allocations: 68.92 kB / 0.6517 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2308, allocations: 1.125 kB / 0.6517 GB, free: 54.11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001369/0.2309, allocations: 102.4 kB / 0.6518 GB, free: 54.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.231, allocations: 10.55 kB / 0.6518 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.231, allocations: 1.875 kB / 0.6518 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.231, allocations: 0 / 0.6518 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.349e-05/0.231, allocations: 12.06 kB / 0.6518 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2311, allocations: 7.625 kB / 0.6518 GB, free: 54.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.493e-05/0.2311, allocations: 14.39 kB / 0.6518 GB, free: 54.05 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.822e-06/0.2311, allocations: 2.281 kB / 0.6518 GB, free: 54.05 MB / 0.5573 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 6.079e-05/0.2312, allocations: 134.3 kB / 0.6519 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.38e-05/0.2312, allocations: 14.91 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.614e-05/0.2312, allocations: 19.03 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.2312, allocations: 2.562 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2312, allocations: 1.062 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2312, allocations: 5.109 kB / 0.652 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.419e-05/0.2313, allocations: 174.3 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2313, allocations: 4.094 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.89e-05/0.2313, allocations: 12.27 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2314, allocations: 0 / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.2314, allocations: 0.7812 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2314, allocations: 3.531 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2314, allocations: 2.906 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001452/0.2315, allocations: 129.1 kB / 0.6523 GB, free: 53.69 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.2315, allocations: 11.97 kB / 0.6523 GB, free: 53.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.2315, allocations: 5.781 kB / 0.6523 GB, free: 53.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.431e-05/0.2316, allocations: 8.578 kB / 0.6523 GB, free: 53.68 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.2316, allocations: 8.25 kB / 0.6523 GB, free: 53.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.2316, allocations: 11.92 kB / 0.6523 GB, free: 53.68 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001021/0.2317, allocations: 191.1 kB / 0.6525 GB, free: 53.61 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2317, allocations: 0 / 0.6525 GB, free: 53.61 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001483/0.2319, allocations: 17.34 kB / 0.6525 GB, free: 53.61 MB / 0.5573 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.0003704/0.2323, allocations: 0.6876 MB / 0.6532 GB, free: 53 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001651/0.2324, allocations: 55.12 kB / 0.6533 GB, free: 53 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2324, allocations: 4.062 kB / 0.6533 GB, free: 52.99 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 5.426e-05/0.2325, allocations: 31.72 kB / 0.6533 GB, free: 52.99 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.2327, allocations: 43.88 kB / 0.6533 GB, free: 52.98 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.2339, allocations: 1.755 MB / 0.6551 GB, free: 51.76 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.917e-05/0.234, allocations: 109.1 kB / 0.6552 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.714e-05/0.2341, allocations: 19.69 kB / 0.6552 GB, free: 51.68 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.131e-05/0.2341, allocations: 47.84 kB / 0.6552 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of SimCode: time 5.61e-07/0.2341, allocations: 4 kB / 0.6552 GB, free: 51.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01615/0.2503, allocations: 4.435 MB / 0.6596 GB, free: 50.57 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.345/6.596, allocations: 12.58 kB / 0.6596 GB, free: 50.57 MB / 0.5573 GB " [Timeout remaining time 653] (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 sys.exit(0), Time elapsed: 9.088098051957786] Failed to read output from testmodel.py, exit status != 0: 6.675023335032165 6.681766843 6.452165679 Calling exit ...