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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001251, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.526/0.526, allocations: 90.91 MB / 99.34 MB, free: 2.211 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 221.5 MB / 343.2 MB, free: 1.566 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009742/0.0009745, allocations: 87.88 kB / 415.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.496e-05, allocations: 4 kB / 494.6 MB, free: 52.31 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1675, allocations: 72.31 MB / 0.5536 GB, free: 12.18 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6146/0.7821, allocations: 102.7 MB / 0.6539 GB, free: 7.523 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003061/0.7825, allocations: 75.89 kB / 0.654 GB, free: 7.484 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009702/0.7922, allocations: 3.309 MB / 0.6573 GB, free: 4.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.938e-06/0.7922, allocations: 0 / 0.6573 GB, free: 4.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.7923, allocations: 6.734 kB / 0.6573 GB, free: 4.656 MB / 458.7 MB 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.0006038/0.7929, allocations: 444.8 kB / 0.6577 GB, free: 4.188 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.793, allocations: 8.031 kB / 0.6577 GB, free: 4.18 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.857e-05/0.793, allocations: 23.77 kB / 0.6577 GB, free: 4.156 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.7934, allocations: 230.4 kB / 0.6579 GB, free: 3.898 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.7934, allocations: 7.938 kB / 0.6579 GB, free: 3.891 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.7934, allocations: 4 kB / 0.6579 GB, free: 3.887 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001086/0.7935, allocations: 27.61 kB / 0.658 GB, free: 3.867 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.7937, allocations: 75.48 kB / 0.658 GB, free: 3.801 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.7937, allocations: 4 kB / 0.658 GB, free: 3.797 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.7938, allocations: 0 / 0.658 GB, free: 3.797 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.7938, allocations: 3.953 kB / 0.658 GB, free: 3.793 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.7945, allocations: 362.5 kB / 0.6584 GB, free: 3.434 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.843e-05/0.7945, allocations: 22.2 kB / 0.6584 GB, free: 3.406 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.997e-05/0.7946, allocations: 12.86 kB / 0.6584 GB, free: 3.391 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.7946, allocations: 0 / 0.6584 GB, free: 3.391 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001449/0.7947, allocations: 86.59 kB / 0.6585 GB, free: 3.297 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.7948, allocations: 4 kB / 0.6585 GB, free: 3.293 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001928/0.795, allocations: 59.88 kB / 0.6586 GB, free: 3.234 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.795, allocations: 77.11 kB / 0.6586 GB, free: 3.141 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/0.7953, allocations: 201.3 kB / 0.6588 GB, free: 2.969 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.7953, allocations: 29.7 kB / 0.6589 GB, free: 2.934 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.745e-05/0.7954, allocations: 125.3 kB / 0.659 GB, free: 2.832 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.7954, allocations: 7.219 kB / 0.659 GB, free: 2.828 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.7954, allocations: 0 / 0.659 GB, free: 2.828 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.7956, allocations: 333.3 kB / 0.6593 GB, free: 2.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.118e-05/0.7956, allocations: 4 kB / 0.6593 GB, free: 2.496 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.315e-05/0.7957, allocations: 37.38 kB / 0.6593 GB, free: 2.453 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.922e-05/0.7957, allocations: 12.42 kB / 0.6594 GB, free: 2.445 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7957, allocations: 0 / 0.6594 GB, free: 2.445 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001098/0.7958, allocations: 72.75 kB / 0.6594 GB, free: 2.371 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.7959, allocations: 4 kB / 0.6594 GB, free: 2.367 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.7959, allocations: 3.984 kB / 0.6594 GB, free: 2.363 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.7959, allocations: 0 / 0.6594 GB, free: 2.363 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.796, allocations: 15.98 kB / 0.6595 GB, free: 2.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.7961, allocations: 4 kB / 0.6595 GB, free: 2.344 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.836e-05/0.7962, allocations: 12.08 kB / 0.6595 GB, free: 2.332 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.7962, allocations: 8 kB / 0.6595 GB, free: 2.324 MB / 458.7 MB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.814e-05/0.7963, allocations: 108.2 kB / 0.6596 GB, free: 2.215 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000105/0.7964, allocations: 72.7 kB / 0.6596 GB, free: 2.141 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.7964, allocations: 19.75 kB / 0.6597 GB, free: 2.121 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.7965, allocations: 19.73 kB / 0.6597 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.7965, allocations: 0 / 0.6597 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.7965, allocations: 0 / 0.6597 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.7965, allocations: 0 / 0.6597 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.7967, allocations: 187.2 kB / 0.6599 GB, free: 1.898 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.7967, allocations: 7.953 kB / 0.6599 GB, free: 1.891 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.193e-05/0.7968, allocations: 15.98 kB / 0.6599 GB, free: 1.875 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.7968, allocations: 0 / 0.6599 GB, free: 1.875 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.7968, allocations: 0 / 0.6599 GB, free: 1.875 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.7968, allocations: 4 kB / 0.6599 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.7968, allocations: 0 / 0.6599 GB, free: 1.871 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001277/0.7969, allocations: 84.19 kB / 0.66 GB, free: 1.777 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.54e-05/0.797, allocations: 103.8 kB / 0.6601 GB, free: 1.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.797, allocations: 0 / 0.6601 GB, free: 1.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.907e-05/0.7971, allocations: 15.98 kB / 0.6601 GB, free: 1.645 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.7972, allocations: 10.92 kB / 0.6601 GB, free: 1.637 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.7972, allocations: 4 kB / 0.6601 GB, free: 1.633 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.7974, allocations: 159.6 kB / 0.6603 GB, free: 1.504 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7974, allocations: 0 / 0.6603 GB, free: 1.504 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002304/0.7976, allocations: 27.89 kB / 0.6603 GB, free: 1.477 MB / 458.7 MB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000581/0.7982, allocations: 0.6499 MB / 0.6609 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.7983, allocations: 22.75 kB / 0.6609 GB, free: 0.793 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.7983, allocations: 0 / 0.6609 GB, free: 0.793 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.955e-05/0.7984, allocations: 11.38 kB / 0.6609 GB, free: 0.7852 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.7987, allocations: 38.03 kB / 0.661 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005441/0.7992, allocations: 226.8 kB / 0.6612 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.7996, allocations: 0.7271 MB / 0.6619 GB, free: 15.77 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.808e-05/0.7996, allocations: 20.58 kB / 0.6619 GB, free: 15.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.7997, allocations: 51.09 kB / 0.662 GB, free: 15.72 MB / 474.7 MB Notification: Performance of SimCode: time 2.71e-07/0.7997, allocations: 0 / 0.662 GB, free: 15.72 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.822, allocations: 2.702 MB / 0.6646 GB, free: 13.04 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.8222, allocations: 130.5 kB / 0.6647 GB, free: 12.85 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.938/2.76, allocations: 0 / 0.6647 GB, free: 12.85 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)