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.0007056/0.0007056, 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.0007688/0.0007688, allocations: 169.9 kB / 22.46 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.8681/0.8681, allocations: 177.1 MB / 202.8 MB, free: 5.727 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.001393/0.001393, allocations: 237.5 kB / 259.4 MB, free: 13 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.6642/0.6642, allocations: 138.4 MB / 454.3 MB, free: 30.08 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 2.445e-06/2.445e-06, allocations: 4 kB / 0.6463 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.161e-05, allocations: 14.16 kB / 0.6463 GB, free: 1.902 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002297/0.002318, allocations: 1.65 MB / 0.6479 GB, free: 244 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2421/0.2444, allocations: 0.569 MB / 0.6484 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2445, allocations: 5.438 kB / 0.6484 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.2447, allocations: 28.3 kB / 0.6485 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002649/0.245, allocations: 68.56 kB / 0.6485 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.2452, allocations: 75.86 kB / 0.6486 GB, free: 55.87 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.2454, allocations: 138.1 kB / 0.6487 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.2456, allocations: 31.23 kB / 0.6488 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.2458, allocations: 85.91 kB / 0.6489 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 9.854e-05/0.2459, allocations: 54.31 kB / 0.6489 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.2459, allocations: 8.125 kB / 0.6489 GB, free: 55.84 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 7.925e-05/0.246, allocations: 30.03 kB / 0.6489 GB, free: 55.83 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.796e-05/0.2461, allocations: 45.81 kB / 0.649 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.506e-05/0.2461, allocations: 37.42 kB / 0.649 GB, free: 55.82 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002301/0.2463, allocations: 153.7 kB / 0.6492 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2463, allocations: 0 / 0.6492 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2463, allocations: 0 / 0.6492 GB, free: 55.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.2463, allocations: 0 / 0.6492 GB, free: 55.8 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.0004648/0.2468, allocations: 399.4 kB / 0.6495 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.2469, allocations: 10.56 kB / 0.6496 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.774e-05/0.2469, allocations: 34.98 kB / 0.6496 GB, free: 55.44 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.247, allocations: 34.58 kB / 0.6496 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.2473, allocations: 184.5 kB / 0.6498 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.2473, allocations: 6.469 kB / 0.6498 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.2473, allocations: 6.531 kB / 0.6498 GB, free: 55.28 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.2475, allocations: 163.2 kB / 0.65 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2476, allocations: 192 / 0.65 GB, free: 55.19 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.2476, allocations: 6.875 kB / 0.65 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.2476, allocations: 1.781 kB / 0.65 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.2477, allocations: 66.73 kB / 0.65 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.2481, allocations: 335.9 kB / 0.6504 GB, free: 54.94 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 8.999e-05/0.2482, allocations: 41.12 kB / 0.6504 GB, free: 54.91 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.015e-05/0.2483, allocations: 29.66 kB / 0.6504 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.2483, allocations: 2.516 kB / 0.6504 GB, free: 54.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.2485, allocations: 146.6 kB / 0.6506 GB, free: 54.78 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2485, allocations: 1.062 kB / 0.6506 GB, free: 54.78 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3): time 0.0002903/0.2487, allocations: 122.9 kB / 0.6507 GB, free: 54.73 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.2488, allocations: 81.45 kB / 0.6508 GB, free: 54.64 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.249, allocations: 264.2 kB / 0.651 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.249, allocations: 32.55 kB / 0.651 GB, free: 54.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.853e-05/0.249, allocations: 133.1 kB / 0.6512 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.2491, allocations: 11.67 kB / 0.6512 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.2491, allocations: 13.66 kB / 0.6512 GB, free: 54.39 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.989e-05/0.2491, allocations: 328 kB / 0.6515 GB, free: 54.08 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.803e-05/0.2492, allocations: 25.12 kB / 0.6515 GB, free: 54.08 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.586e-05/0.2492, allocations: 75.03 kB / 0.6516 GB, free: 54.02 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.2494, allocations: 72.47 kB / 0.6517 GB, free: 53.99 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2494, allocations: 0 / 0.6517 GB, free: 53.99 MB / 0.5573 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001634/0.2495, allocations: 101.1 kB / 0.6518 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2495, allocations: 7.594 kB / 0.6518 GB, free: 53.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.2495, allocations: 6.812 kB / 0.6518 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.2496, allocations: 0 / 0.6518 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.984e-05/0.2496, allocations: 12.45 kB / 0.6518 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.762e-06/0.2497, allocations: 3.938 kB / 0.6518 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.527e-05/0.2497, allocations: 18.97 kB / 0.6518 GB, free: 53.93 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.2497, allocations: 2.656 kB / 0.6518 GB, free: 53.93 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.927e-05/0.2498, allocations: 139.7 kB / 0.652 GB, free: 53.81 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.705e-05/0.2498, allocations: 15.81 kB / 0.652 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/0.2498, allocations: 17.64 kB / 0.652 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2498, allocations: 3.047 kB / 0.652 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2498, allocations: 4.859 kB / 0.652 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2498, allocations: 3.938 kB / 0.652 GB, free: 53.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.993e-05/0.2499, allocations: 173.2 kB / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2499, allocations: 0 / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.775e-05/0.25, allocations: 12.77 kB / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.25, allocations: 2.906 kB / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.25, allocations: 1.172 kB / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.25, allocations: 0 / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.25, allocations: 1.938 kB / 0.6522 GB, free: 53.65 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.2501, allocations: 124.4 kB / 0.6523 GB, free: 53.57 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.586e-05/0.2502, allocations: 20.19 kB / 0.6523 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.2502, allocations: 4.141 kB / 0.6523 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.574e-05/0.2502, allocations: 10.41 kB / 0.6523 GB, free: 53.56 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.902e-05/0.2503, allocations: 9.797 kB / 0.6523 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.2503, allocations: 7.438 kB / 0.6524 GB, free: 53.55 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001069/0.2504, allocations: 192.4 kB / 0.6525 GB, free: 53.48 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2504, allocations: 0 / 0.6525 GB, free: 53.48 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001619/0.2505, allocations: 20.62 kB / 0.6526 GB, free: 53.48 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.000405/0.251, allocations: 0.6821 MB / 0.6532 GB, free: 52.88 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001765/0.2511, allocations: 59.11 kB / 0.6533 GB, free: 52.87 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2511, allocations: 1.469 kB / 0.6533 GB, free: 52.87 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 5.538e-05/0.2512, allocations: 26.92 kB / 0.6533 GB, free: 52.87 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/0.2514, allocations: 48.92 kB / 0.6534 GB, free: 52.86 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.2527, allocations: 1.76 MB / 0.6551 GB, free: 51.65 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.995e-05/0.2528, allocations: 110 kB / 0.6552 GB, free: 51.57 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.228e-05/0.2529, allocations: 20.25 kB / 0.6552 GB, free: 51.57 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-05/0.2529, allocations: 43.73 kB / 0.6552 GB, free: 51.54 MB / 0.5573 GB Notification: Performance of SimCode: time 1.483e-06/0.2529, allocations: 2 kB / 0.6552 GB, free: 51.54 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.2719, allocations: 4.435 MB / 0.6596 GB, free: 50.46 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.395/6.666, allocations: 11.03 kB / 0.6596 GB, free: 50.46 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 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.254211066290736] Failed to read output from testmodel.py, exit status != 0: 6.744371382519603 6.750066575 6.502295683 Calling exit ...