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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007793/0.007793, allocations: 101.9 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002006/0.002006, allocations: 188.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002139/0.002139, allocations: 275.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9513/0.9513, allocations: 169.2 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 95.84 kB / 0.6809 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.486/0.4879, allocations: 86.99 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003048/0.491, allocations: 1.628 MB / 0.7675 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000893/0.4919, allocations: 0.5356 MB / 0.768 GB, free: 1.672 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.653e-05/0.4921, allocations: 7.938 kB / 0.768 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001982/0.4923, allocations: 31.78 kB / 0.768 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002806/0.4926, allocations: 69.73 kB / 0.7681 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.4928, allocations: 63.91 kB / 0.7682 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000202/0.493, allocations: 131.5 kB / 0.7683 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001611/0.4931, allocations: 49.28 kB / 0.7683 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.4933, allocations: 59.7 kB / 0.7684 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.4934, allocations: 63.69 kB / 0.7685 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/0.4934, allocations: 12 kB / 0.7685 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.438e-05/0.4935, allocations: 23.98 kB / 0.7685 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.193e-05/0.4936, allocations: 43.83 kB / 0.7685 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.437e-05/0.4937, allocations: 55.61 kB / 0.7686 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.4939, allocations: 144.6 kB / 0.7687 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.4939, allocations: 0 / 0.7687 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.206e-06/0.4939, allocations: 4 kB / 0.7687 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.055e-06/0.494, allocations: 0 / 0.7687 GB, free: 0.9336 MB / 0.5294 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.0006879/0.4946, allocations: 474.4 kB / 0.7692 GB, free: 432 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.4947, allocations: 12.03 kB / 0.7692 GB, free: 420 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.102e-05/0.4947, allocations: 38.73 kB / 0.7692 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.4948, allocations: 20.84 kB / 0.7693 GB, free: 352 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.4951, allocations: 240.9 kB / 0.7695 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.4951, allocations: 384 / 0.7695 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.4952, allocations: 8.375 kB / 0.7695 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.4955, allocations: 121.8 kB / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.4955, allocations: 0 / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.4955, allocations: 4 kB / 0.7696 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.4955, allocations: 4 kB / 0.7696 GB, free: 15.92 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002248/0.4957, allocations: 63.88 kB / 0.7697 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.4963, allocations: 388.4 kB / 0.77 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/0.4965, allocations: 42.48 kB / 0.7701 GB, free: 15.38 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.4966, allocations: 24.91 kB / 0.7701 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.4966, allocations: 7.984 kB / 0.7701 GB, free: 15.35 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.4968, allocations: 93.09 kB / 0.7702 GB, free: 15.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4968, allocations: 0 / 0.7702 GB, free: 15.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.000429/0.4973, allocations: 129.3 kB / 0.7703 GB, free: 15.11 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4973, allocations: 81.11 kB / 0.7704 GB, free: 15.01 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002339/0.4976, allocations: 257 kB / 0.7707 GB, free: 14.75 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.4976, allocations: 25.7 kB / 0.7707 GB, free: 14.72 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.4977, allocations: 128.1 kB / 0.7708 GB, free: 14.59 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.4977, allocations: 3.953 kB / 0.7708 GB, free: 14.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.04e-05/0.4977, allocations: 17.7 kB / 0.7708 GB, free: 14.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4979, allocations: 330.8 kB / 0.7711 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.498, allocations: 27.97 kB / 0.7712 GB, free: 14.2 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.4981, allocations: 55.34 kB / 0.7712 GB, free: 14.14 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.4983, allocations: 70.5 kB / 0.7713 GB, free: 14.06 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.4983, allocations: 0 / 0.7713 GB, free: 14.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002704/0.4986, allocations: 101.5 kB / 0.7714 GB, free: 13.95 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.4986, allocations: 8 kB / 0.7714 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4987, allocations: 0 / 0.7714 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.4987, allocations: 3.938 kB / 0.7714 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.4988, allocations: 11.98 kB / 0.7714 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.4988, allocations: 4.094 kB / 0.7714 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.254e-05/0.4989, allocations: 19.88 kB / 0.7714 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.214e-06/0.4989, allocations: 0 / 0.7714 GB, free: 13.91 MB / 0.545 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 9.65e-05/0.499, allocations: 133.8 kB / 0.7716 GB, free: 13.77 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.4991, allocations: 15.91 kB / 0.7716 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.4991, allocations: 25.17 kB / 0.7716 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.4991, allocations: 288 / 0.7716 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4991, allocations: 0 / 0.7716 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.4991, allocations: 4 kB / 0.7716 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/0.4993, allocations: 217.6 kB / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4993, allocations: 4 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.849e-05/0.4994, allocations: 7.984 kB / 0.7718 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.646e-06/0.4994, allocations: 7.938 kB / 0.7718 GB, free: 13.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.4994, allocations: 3.938 kB / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.4994, allocations: 0 / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4994, allocations: 0 / 0.7718 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002842/0.4997, allocations: 128.9 kB / 0.7719 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.941e-05/0.4998, allocations: 89.02 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.4998, allocations: 11.92 kB / 0.772 GB, free: 13.17 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.4999, allocations: 8 kB / 0.7721 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.112e-05/0.4999, allocations: 7.922 kB / 0.7721 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.5, allocations: 4 kB / 0.7721 GB, free: 13.15 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001526/0.5001, allocations: 192.5 kB / 0.7722 GB, free: 12.97 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5001, allocations: 4 kB / 0.7723 GB, free: 12.96 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002128/0.5003, allocations: 16 kB / 0.7723 GB, free: 12.95 MB / 0.545 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.0006469/0.501, allocations: 0.6837 MB / 0.7729 GB, free: 12.24 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002922/0.5013, allocations: 63.81 kB / 0.773 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5013, allocations: 192 / 0.773 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.5014, allocations: 31.97 kB / 0.773 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.5017, allocations: 46.2 kB / 0.7731 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.5039, allocations: 1.751 MB / 0.7748 GB, free: 10.26 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.5042, allocations: 0.7203 MB / 0.7755 GB, free: 9.512 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 8.195e-05/0.5043, allocations: 24.72 kB / 0.7755 GB, free: 9.484 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.681e-05/0.5044, allocations: 43.42 kB / 0.7755 GB, free: 9.441 MB / 0.545 GB Notification: Performance of SimCode: time 4.1e-07/0.5044, allocations: 0 / 0.7755 GB, free: 9.441 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.5252, allocations: 3.633 MB / 0.7791 GB, free: 5.949 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.59/8.115, allocations: 7.938 kB / 0.7791 GB, free: 5.941 MB / 0.545 GB (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)