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.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.0008107/0.0008107, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0008828/0.0008828, allocations: 169.9 kB / 23.21 MB, free: 1.355 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.9146/0.9146, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.5642/0.5642, allocations: 114 MB / 373.9 MB, free: 8.699 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 0.5542 GB, free: 2.816 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.517e-05/1.664e-05, allocations: 2.281 kB / 0.5542 GB, free: 2.812 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002298/0.002315, allocations: 1.64 MB / 0.5558 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0007077/0.003023, allocations: 0.5765 MB / 0.5563 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.301e-05/0.003096, allocations: 11.94 kB / 0.5563 GB, free: 0.5703 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.003265, allocations: 27.78 kB / 0.5564 GB, free: 0.543 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.0035, allocations: 67.61 kB / 0.5564 GB, free: 488 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001903/0.003691, allocations: 75.77 kB / 0.5565 GB, free: 412 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.003852, allocations: 139.4 kB / 0.5566 GB, free: 272 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.003997, allocations: 37.58 kB / 0.5567 GB, free: 232 kB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.004173, allocations: 79.8 kB / 0.5568 GB, free: 152 kB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 8.11e-05/0.004255, allocations: 47.89 kB / 0.5568 GB, free: 104 kB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.00428, allocations: 12 kB / 0.5568 GB, free: 92 kB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 6.848e-05/0.004348, allocations: 31.92 kB / 0.5568 GB, free: 60 kB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 7.776e-05/0.004426, allocations: 43.83 kB / 0.5569 GB, free: 16 kB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.004479, allocations: 31.86 kB / 0.5569 GB, free: 15.98 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001939/0.004673, allocations: 155.4 kB / 0.5571 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.004675, allocations: 0 / 0.5571 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of FrontEnd: time 5.81e-07/0.004676, allocations: 0 / 0.5571 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.00468, allocations: 0 / 0.5571 GB, free: 15.83 MB / 0.5261 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.0005022/0.005182, allocations: 397.3 kB / 0.5574 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.005222, allocations: 12.03 kB / 0.5575 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.399e-05/0.005256, allocations: 42.73 kB / 0.5575 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.00537, allocations: 24.83 kB / 0.5575 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.005622, allocations: 189.1 kB / 0.5577 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-06/0.005632, allocations: 384 / 0.5577 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.005645, allocations: 8.359 kB / 0.5577 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.005856, allocations: 161.6 kB / 0.5579 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.005864, allocations: 4.172 kB / 0.5579 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.005875, allocations: 4.125 kB / 0.5579 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.005881, allocations: 4 kB / 0.5579 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.006005, allocations: 71.88 kB / 0.5579 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004022/0.006407, allocations: 335.7 kB / 0.5583 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 8.26e-05/0.00649, allocations: 46.48 kB / 0.5583 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.516e-05/0.006545, allocations: 32.83 kB / 0.5583 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.006559, allocations: 4 kB / 0.5583 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.006721, allocations: 148.4 kB / 0.5585 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 7.91e-07/0.006721, allocations: 0 / 0.5585 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.000261/0.006982, allocations: 129.4 kB / 0.5586 GB, free: 14.08 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.007024, allocations: 81.09 kB / 0.5587 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.00721, allocations: 253.7 kB / 0.5589 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.007225, allocations: 33.7 kB / 0.559 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.209e-05/0.007288, allocations: 128.1 kB / 0.5591 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.007305, allocations: 7.891 kB / 0.5591 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.963e-05/0.007334, allocations: 17.72 kB / 0.5591 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.47e-05/0.007419, allocations: 326.8 kB / 0.5594 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.767e-05/0.007477, allocations: 23.98 kB / 0.5594 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.737e-05/0.007544, allocations: 77.11 kB / 0.5595 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.007654, allocations: 70.45 kB / 0.5596 GB, free: 13 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.007655, allocations: 0 / 0.5596 GB, free: 13 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001511/0.007807, allocations: 109.5 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.007817, allocations: 4 kB / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.007822, allocations: 0 / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.007833, allocations: 0 / 0.5597 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.381e-05/0.007897, allocations: 11.98 kB / 0.5597 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.007904, allocations: 7.938 kB / 0.5597 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.172e-05/0.007945, allocations: 11.94 kB / 0.5597 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.007953, allocations: 8.094 kB / 0.5597 GB, free: 12.85 MB / 0.5261 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 7.437e-05/0.008027, allocations: 129.8 kB / 0.5598 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.008042, allocations: 19.84 kB / 0.5599 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.008068, allocations: 17.33 kB / 0.5599 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.00807, allocations: 0 / 0.5599 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.008074, allocations: 4 kB / 0.5599 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.008079, allocations: 7.938 kB / 0.5599 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.008186, allocations: 172.7 kB / 0.5601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.008187, allocations: 0 / 0.5601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.008218, allocations: 11.98 kB / 0.5601 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.008219, allocations: 4 kB / 0.5601 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.008226, allocations: 0 / 0.5601 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.008227, allocations: 7.938 kB / 0.5601 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.008229, allocations: 288 / 0.5601 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.008375, allocations: 128.9 kB / 0.5602 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.00839, allocations: 15.89 kB / 0.5602 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.263e-05/0.008403, allocations: 0 / 0.5602 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.384e-05/0.008437, allocations: 11.98 kB / 0.5602 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.72e-05/0.008474, allocations: 11.94 kB / 0.5602 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.008491, allocations: 11.92 kB / 0.5603 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001109/0.008602, allocations: 185.2 kB / 0.5604 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.1e-08/0.008602, allocations: 3.938 kB / 0.5604 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001491/0.008751, allocations: 27.94 kB / 0.5605 GB, free: 12.02 MB / 0.5261 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.0004158/0.009167, allocations: 0.6769 MB / 0.5611 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001542/0.009321, allocations: 51.89 kB / 0.5612 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.009324, allocations: 4 kB / 0.5612 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.009525, allocations: 27.97 kB / 0.5612 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.009727, allocations: 45.09 kB / 0.5612 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/0.01118, allocations: 1.758 MB / 0.563 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.648e-05/0.01126, allocations: 110.3 kB / 0.5631 GB, free: 9.207 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.065e-05/0.01132, allocations: 20.33 kB / 0.5631 GB, free: 9.184 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.224e-05/0.01138, allocations: 44.48 kB / 0.5631 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/0.01138, allocations: 0 / 0.5631 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.02939, allocations: 4.408 MB / 0.5674 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.38/7.41, allocations: 1.875 kB / 0.5674 GB, free: 4.914 MB / 0.5261 GB " [Timeout remaining time 653] (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 --stepSize=0.0008 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.888242200016975] Failed to read output from testmodel.py, exit status != 0: 7.48820168338716 7.4983688520000005 7.491382949 Calling exit ...