Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.001042/0.001042, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001217/0.001217, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.4 MB / 222.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.683/1.683, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005306, allocations: 15.25 kB / 0.6738 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.276, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002123/0.2781, allocations: 1.449 MB / 0.7888 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2794, allocations: 0.8047 MB / 0.7896 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.878e-05/0.2795, allocations: 11.88 kB / 0.7896 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0004823/0.28, allocations: 154.9 kB / 0.7898 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.2803, allocations: 131.6 kB / 0.7899 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003654/0.2807, allocations: 148.9 kB / 0.79 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002522/0.2809, allocations: 199.5 kB / 0.7902 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.2811, allocations: 54.05 kB / 0.7903 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.2812, allocations: 75.67 kB / 0.7903 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.2814, allocations: 131.6 kB / 0.7905 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.2815, allocations: 4 kB / 0.7905 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.82e-05/0.2816, allocations: 39.97 kB / 0.7905 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.244e-05/0.2817, allocations: 63.75 kB / 0.7906 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.463e-05/0.2817, allocations: 65.58 kB / 0.7906 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.282, allocations: 291.2 kB / 0.7909 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.282, allocations: 4 kB / 0.7909 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.714e-06/0.282, allocations: 0 / 0.7909 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.282, allocations: 4 kB / 0.7909 GB, free: 8.195 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007064/0.2828, allocations: 0.5563 MB / 0.7915 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.2828, allocations: 12.03 kB / 0.7915 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.2829, allocations: 34.56 kB / 0.7915 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.771e-05/0.2829, allocations: 35.58 kB / 0.7915 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.2834, allocations: 397.3 kB / 0.7919 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.2834, allocations: 0 / 0.7919 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.2835, allocations: 8 kB / 0.7919 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.2836, allocations: 81.59 kB / 0.792 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.2837, allocations: 0 / 0.792 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.2837, allocations: 8 kB / 0.792 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2837, allocations: 0 / 0.792 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001164/0.2838, allocations: 51.91 kB / 0.7921 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.2844, allocations: 492.5 kB / 0.7925 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.2845, allocations: 46.52 kB / 0.7926 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.096e-05/0.2846, allocations: 28.84 kB / 0.7926 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.2846, allocations: 3.984 kB / 0.7926 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.2846, allocations: 34.56 kB / 0.7926 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2846, allocations: 0 / 0.7926 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0002709/0.2849, allocations: 101.3 kB / 0.7927 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.285, allocations: 55.41 kB / 0.7928 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00064/0.2856, allocations: 0.5562 MB / 0.7933 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.387e-05/0.2856, allocations: 29.7 kB / 0.7934 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.2858, allocations: 172 kB / 0.7935 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.2858, allocations: 15.73 kB / 0.7935 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.2858, allocations: 0 / 0.7935 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.286, allocations: 342.8 kB / 0.7939 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.912e-05/0.286, allocations: 19.92 kB / 0.7939 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.546e-05/0.2861, allocations: 12 kB / 0.7939 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.206e-05/0.2861, allocations: 23.98 kB / 0.7939 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2862, allocations: 0 / 0.7939 GB, free: 4.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000158/0.2863, allocations: 97.19 kB / 0.794 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.2863, allocations: 4 kB / 0.794 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2864, allocations: 0 / 0.794 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2864, allocations: 0 / 0.794 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.469e-05/0.2865, allocations: 11.98 kB / 0.794 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2865, allocations: 11.98 kB / 0.794 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.807e-05/0.2865, allocations: 8 kB / 0.7941 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.2865, allocations: 0 / 0.7941 GB, free: 4.758 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001627/0.2867, allocations: 178.5 kB / 0.7942 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.2868, allocations: 35.62 kB / 0.7943 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.287, allocations: 108.1 kB / 0.7944 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.287, allocations: 4 kB / 0.7944 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.287, allocations: 0 / 0.7944 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.287, allocations: 0 / 0.7944 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002669/0.2873, allocations: 281.5 kB / 0.7946 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2873, allocations: 3.984 kB / 0.7946 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.48e-05/0.2874, allocations: 8 kB / 0.7946 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.2874, allocations: 384 / 0.7946 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.127e-06/0.2874, allocations: 3.953 kB / 0.7946 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2874, allocations: 4 kB / 0.7947 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2874, allocations: 0 / 0.7947 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.2876, allocations: 195.1 kB / 0.7948 GB, free: 3.867 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001036/0.2877, allocations: 124.7 kB / 0.795 GB, free: 3.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.2877, allocations: 4 kB / 0.795 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.324e-05/0.2878, allocations: 3.953 kB / 0.795 GB, free: 3.719 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.2879, allocations: 4 kB / 0.795 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.2879, allocations: 0 / 0.795 GB, free: 3.715 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0004363/0.2883, allocations: 423.1 kB / 0.7954 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2883, allocations: 0 / 0.7954 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002517/0.2886, allocations: 23.98 kB / 0.7954 GB, free: 3.281 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * 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 (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.001142/0.2897, allocations: 0.971 MB / 0.7963 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001364/0.2899, allocations: 39.91 kB / 0.7964 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2899, allocations: 4 kB / 0.7964 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.688e-05/0.29, allocations: 15.98 kB / 0.7964 GB, free: 2.355 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.2903, allocations: 51.2 kB / 0.7964 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.2931, allocations: 1.945 MB / 0.7983 GB, free: 328 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.2935, allocations: 0.7833 MB / 0.7991 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001126/0.2937, allocations: 42.94 kB / 0.7992 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.2938, allocations: 95.39 kB / 0.7992 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of SimCode: time 5.81e-07/0.2938, allocations: 0 / 0.7992 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.3108, allocations: 5.416 MB / 0.8045 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/0.311, allocations: 256.2 kB / 0.8048 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.262, allocations: 0 / 0.8048 GB, free: 9.801 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) Environment - environmentSimulation: