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.001352/0.001352, allocations: 107 kB / 16.27 MB, free: 5.93 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.001567/0.001567, allocations: 186.9 kB / 17.2 MB, free: 5.574 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.301/1.301, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6938/0.6938, allocations: 122.8 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 63.91 kB / 0.4912 GB, free: 7.359 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.257, allocations: 77.92 MB / 0.5673 GB, free: 32.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002294/0.2593, allocations: 1.636 MB / 0.5689 GB, free: 31.44 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006402/0.26, allocations: 0.5381 MB / 0.5694 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.421e-05/0.26, allocations: 3 kB / 0.5694 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.2602, allocations: 27.72 kB / 0.5694 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.2604, allocations: 66.12 kB / 0.5695 GB, free: 31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.2605, allocations: 61.95 kB / 0.5695 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.2607, allocations: 129.4 kB / 0.5697 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.2608, allocations: 54.12 kB / 0.5697 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.118e-05/0.2609, allocations: 53.27 kB / 0.5698 GB, free: 30.87 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.389e-05/0.261, allocations: 71.66 kB / 0.5698 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.261, allocations: 9.594 kB / 0.5699 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.806e-05/0.2611, allocations: 21.67 kB / 0.5699 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.772e-05/0.2612, allocations: 44.62 kB / 0.5699 GB, free: 30.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.702e-05/0.2612, allocations: 61.22 kB / 0.57 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.2614, allocations: 139.9 kB / 0.5701 GB, free: 30.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.2614, allocations: 4.781 kB / 0.5701 GB, free: 30.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2614, allocations: 1.875 kB / 0.5701 GB, free: 30.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.2614, allocations: 0 / 0.5701 GB, free: 30.7 MB / 446.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.0004501/0.2619, allocations: 465 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.2619, allocations: 9.812 kB / 0.5706 GB, free: 30.28 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.992e-05/0.262, allocations: 38.95 kB / 0.5706 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.933e-05/0.262, allocations: 22.31 kB / 0.5706 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.2622, allocations: 242.3 kB / 0.5709 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.158e-06/0.2622, allocations: 8.062 kB / 0.5709 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.2622, allocations: 4.031 kB / 0.5709 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/0.2624, allocations: 116.3 kB / 0.571 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2625, allocations: 1.5 kB / 0.571 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.2625, allocations: 0 / 0.571 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2625, allocations: 4.656 kB / 0.571 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.2627, allocations: 66.78 kB / 0.571 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004459/0.2632, allocations: 383 kB / 0.5714 GB, free: 29.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.2633, allocations: 41.91 kB / 0.5715 GB, free: 29.56 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.798e-05/0.2634, allocations: 29.14 kB / 0.5715 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.2634, allocations: 1.281 kB / 0.5715 GB, free: 29.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002055/0.2636, allocations: 102.9 kB / 0.5716 GB, free: 29.47 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.2636, allocations: 1.062 kB / 0.5716 GB, free: 29.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003817/0.264, allocations: 119.4 kB / 0.5717 GB, free: 29.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.264, allocations: 83.16 kB / 0.5718 GB, free: 29.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.2642, allocations: 255.8 kB / 0.572 GB, free: 29.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.899e-06/0.2643, allocations: 26.73 kB / 0.572 GB, free: 29.15 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.819e-05/0.2643, allocations: 124.3 kB / 0.5722 GB, free: 29.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.432e-05/0.2643, allocations: 9.938 kB / 0.5722 GB, free: 29.03 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.2644, allocations: 15.38 kB / 0.5722 GB, free: 29.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.21e-05/0.2644, allocations: 329.1 kB / 0.5725 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.2645, allocations: 31.27 kB / 0.5725 GB, free: 28.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.2646, allocations: 47.48 kB / 0.5726 GB, free: 28.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.2648, allocations: 67.05 kB / 0.5726 GB, free: 28.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.2648, allocations: 0.6094 kB / 0.5726 GB, free: 28.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002542/0.2651, allocations: 100.1 kB / 0.5727 GB, free: 28.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.2651, allocations: 6.188 kB / 0.5727 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2651, allocations: 5.406 kB / 0.5727 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.2651, allocations: 4.938 kB / 0.5727 GB, free: 28.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.478e-05/0.2652, allocations: 19.14 kB / 0.5728 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.2653, allocations: 1.688 kB / 0.5728 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.217e-05/0.2653, allocations: 21.67 kB / 0.5728 GB, free: 28.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.2654, allocations: 1.688 kB / 0.5728 GB, free: 28.55 MB / 446.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 6.57e-05/0.2654, allocations: 126.4 kB / 0.5729 GB, free: 28.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.2655, allocations: 19.59 kB / 0.5729 GB, free: 28.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.866e-05/0.2655, allocations: 26.06 kB / 0.573 GB, free: 28.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.2655, allocations: 2.422 kB / 0.573 GB, free: 28.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2655, allocations: 0.7188 kB / 0.573 GB, free: 28.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.2655, allocations: 0 / 0.573 GB, free: 28.41 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.2656, allocations: 214.8 kB / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2656, allocations: 1.938 kB / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.23e-05/0.2657, allocations: 11.39 kB / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2657, allocations: 0 / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.2657, allocations: 5.312 kB / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2657, allocations: 0 / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2657, allocations: 2.219 kB / 0.5732 GB, free: 28.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.266, allocations: 124.8 kB / 0.5733 GB, free: 28.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.266, allocations: 92.98 kB / 0.5734 GB, free: 28.01 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.171e-05/0.266, allocations: 8.969 kB / 0.5734 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.68e-05/0.2661, allocations: 9.875 kB / 0.5734 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.515e-05/0.2662, allocations: 7.312 kB / 0.5734 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.2662, allocations: 6.156 kB / 0.5734 GB, free: 28 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001304/0.2663, allocations: 190.7 kB / 0.5736 GB, free: 27.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2663, allocations: 0 / 0.5736 GB, free: 27.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000203/0.2665, allocations: 22.75 kB / 0.5736 GB, free: 27.89 MB / 446.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.000454/0.267, allocations: 0.6837 MB / 0.5743 GB, free: 27.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.2673, allocations: 65.09 kB / 0.5744 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2673, allocations: 1.125 kB / 0.5744 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2674, allocations: 29.12 kB / 0.5744 GB, free: 27.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.2676, allocations: 52.41 kB / 0.5744 GB, free: 27.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.2692, allocations: 1.742 MB / 0.5761 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.2693, allocations: 0.7214 MB / 0.5768 GB, free: 25.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.523e-05/0.2694, allocations: 15.94 kB / 0.5769 GB, free: 25.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.487e-05/0.2695, allocations: 42.88 kB / 0.5769 GB, free: 25.15 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2695, allocations: 0.875 kB / 0.5769 GB, free: 25.15 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.619/1.888, allocations: 3.54 MB / 0.5804 GB, free: 24.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/14.21, allocations: 5.266 kB / 0.5804 GB, free: 24.21 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)