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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006641/0.006641, allocations: 101.6 kB / 15.88 MB, free: 6.312 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.001789/0.001789, allocations: 198.2 kB / 16.79 MB, free: 6.242 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.176/1.176, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6009/0.6009, allocations: 115.3 MB / 406 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 64.77 kB / 493 MB, free: 6.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1076, allocations: 76.18 MB / 0.5558 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002448/0.1101, allocations: 1.683 MB / 0.5575 GB, free: 9.008 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007336/0.1109, allocations: 0.5417 MB / 0.558 GB, free: 8.461 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.065e-05/0.111, allocations: 7.938 kB / 0.558 GB, free: 8.453 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.1111, allocations: 19.86 kB / 0.558 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.1113, allocations: 47.81 kB / 0.5581 GB, free: 8.387 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001324/0.1114, allocations: 67.86 kB / 0.5582 GB, free: 8.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000138/0.1116, allocations: 123.5 kB / 0.5583 GB, free: 8.199 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.1117, allocations: 45.47 kB / 0.5583 GB, free: 8.152 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.84e-05/0.1118, allocations: 51.83 kB / 0.5584 GB, free: 8.102 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.1119, allocations: 63.69 kB / 0.5584 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.1119, allocations: 4 kB / 0.5584 GB, free: 8.035 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.122e-05/0.112, allocations: 23.92 kB / 0.5585 GB, free: 8.012 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.397e-05/0.1121, allocations: 47.83 kB / 0.5585 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.1121, allocations: 51.61 kB / 0.5585 GB, free: 7.914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1123, allocations: 143.7 kB / 0.5587 GB, free: 7.773 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1123, allocations: 4 kB / 0.5587 GB, free: 7.77 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1123, allocations: 0 / 0.5587 GB, free: 7.77 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1123, allocations: 0 / 0.5587 GB, free: 7.77 MB / 430.1 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.0004959/0.1128, allocations: 462.6 kB / 0.5591 GB, free: 7.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.1129, allocations: 15.91 kB / 0.5591 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.467e-05/0.1129, allocations: 42.75 kB / 0.5592 GB, free: 7.203 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.86e-05/0.1129, allocations: 16.75 kB / 0.5592 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001927/0.1131, allocations: 224.9 kB / 0.5594 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.1131, allocations: 8.375 kB / 0.5594 GB, free: 6.922 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.1132, allocations: 4.375 kB / 0.5594 GB, free: 6.918 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.1134, allocations: 113.8 kB / 0.5595 GB, free: 6.801 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1134, allocations: 3.938 kB / 0.5595 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1134, allocations: 0 / 0.5595 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1134, allocations: 0 / 0.5595 GB, free: 6.797 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1137, allocations: 67.94 kB / 0.5596 GB, free: 6.73 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.1141, allocations: 384.4 kB / 0.56 GB, free: 6.305 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.1143, allocations: 50.53 kB / 0.56 GB, free: 6.246 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.988e-05/0.1144, allocations: 24.89 kB / 0.56 GB, free: 6.219 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.1144, allocations: 0 / 0.56 GB, free: 6.219 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.1146, allocations: 97.09 kB / 0.5601 GB, free: 6.105 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 3.636e-06/0.1146, allocations: 4 kB / 0.5601 GB, free: 6.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003574/0.115, allocations: 125.2 kB / 0.5603 GB, free: 5.973 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.115, allocations: 77.11 kB / 0.5603 GB, free: 5.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1152, allocations: 257 kB / 0.5606 GB, free: 5.625 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.1152, allocations: 25.7 kB / 0.5606 GB, free: 5.594 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.362e-05/0.1153, allocations: 132 kB / 0.5607 GB, free: 5.461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.1153, allocations: 11.89 kB / 0.5607 GB, free: 5.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.1154, allocations: 17.72 kB / 0.5608 GB, free: 5.426 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.1155, allocations: 326.8 kB / 0.5611 GB, free: 5.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.952e-05/0.1156, allocations: 19.97 kB / 0.5611 GB, free: 5.078 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.939e-05/0.1157, allocations: 51.41 kB / 0.5611 GB, free: 5.016 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.1159, allocations: 74.47 kB / 0.5612 GB, free: 4.934 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1159, allocations: 3.984 kB / 0.5612 GB, free: 4.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002339/0.1161, allocations: 101.4 kB / 0.5613 GB, free: 4.824 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.1161, allocations: 6.188 kB / 0.5613 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1161, allocations: 7.969 kB / 0.5613 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.1161, allocations: 7.938 kB / 0.5613 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.043e-05/0.1162, allocations: 11.98 kB / 0.5613 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1163, allocations: 3.938 kB / 0.5613 GB, free: 4.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.821e-05/0.1163, allocations: 15.89 kB / 0.5614 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-06/0.1163, allocations: 4.094 kB / 0.5614 GB, free: 4.77 MB / 430.1 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 () * 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 8.186e-05/0.1164, allocations: 129.8 kB / 0.5615 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.1165, allocations: 15.81 kB / 0.5615 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.785e-05/0.1165, allocations: 17.19 kB / 0.5615 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1165, allocations: 0 / 0.5615 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1165, allocations: 4 kB / 0.5615 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1165, allocations: 7.922 kB / 0.5615 GB, free: 4.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1167, allocations: 217.5 kB / 0.5617 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1167, allocations: 0 / 0.5617 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-05/0.1167, allocations: 15.98 kB / 0.5618 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1168, allocations: 0 / 0.5618 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.1168, allocations: 3.938 kB / 0.5618 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1168, allocations: 4 kB / 0.5618 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1168, allocations: 0 / 0.5618 GB, free: 4.305 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.117, allocations: 120.8 kB / 0.5619 GB, free: 4.168 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.1171, allocations: 92.91 kB / 0.562 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.1171, allocations: 11.88 kB / 0.562 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.472e-05/0.1172, allocations: 7.984 kB / 0.562 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.561e-05/0.1172, allocations: 8 kB / 0.562 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/0.1172, allocations: 8.312 kB / 0.562 GB, free: 4.023 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001422/0.1174, allocations: 184.5 kB / 0.5622 GB, free: 3.84 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1174, allocations: 0 / 0.5622 GB, free: 3.84 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001998/0.1176, allocations: 28.03 kB / 0.5622 GB, free: 3.812 MB / 430.1 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 () * 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.0005279/0.1181, allocations: 0.6783 MB / 0.5629 GB, free: 3.109 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002303/0.1184, allocations: 59.83 kB / 0.5629 GB, free: 3.051 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1184, allocations: 0 / 0.5629 GB, free: 3.051 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.816e-05/0.1185, allocations: 27.97 kB / 0.5629 GB, free: 3.023 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.1187, allocations: 37.88 kB / 0.563 GB, free: 2.988 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.1205, allocations: 1.775 MB / 0.5647 GB, free: 1.109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.1207, allocations: 0.7278 MB / 0.5654 GB, free: 364 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.804e-05/0.1207, allocations: 12.55 kB / 0.5654 GB, free: 352 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.961e-05/0.1208, allocations: 43.42 kB / 0.5655 GB, free: 308 kB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1208, allocations: 0 / 0.5655 GB, free: 308 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3548/0.4756, allocations: 3.297 MB / 0.5687 GB, free: 13.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003003/0.476, allocations: 202.1 kB / 0.5689 GB, free: 12.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.357, allocations: 4 kB / 0.5689 GB, free: 12.88 MB / 446.1 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/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)