Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.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.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",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.001146/0.001151, allocations: 104.7 kB / 16.27 MB, free: 5.98 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.001167/0.001167, allocations: 192 kB / 17.19 MB, free: 5.609 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.291/1.291, allocations: 222.9 MB / 240.9 MB, free: 4.109 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7477/0.7477, allocations: 126.7 MB / 417.8 MB, free: 7.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.00179, allocations: 68.86 kB / 0.4959 GB, free: 9.547 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2917, allocations: 78.87 MB / 0.5729 GB, free: 7.848 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001964/0.2937, allocations: 1.491 MB / 0.5743 GB, free: 6.809 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000429/0.2941, allocations: 411.6 kB / 0.5747 GB, free: 6.531 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.981e-05/0.2942, allocations: 1.031 kB / 0.5747 GB, free: 6.531 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.484e-05/0.2942, allocations: 5.109 kB / 0.5747 GB, free: 6.527 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.829e-05/0.2942, allocations: 14.55 kB / 0.5747 GB, free: 6.516 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001242/0.2944, allocations: 20.27 kB / 0.5748 GB, free: 6.504 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.1e-05/0.2944, allocations: 45.62 kB / 0.5748 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.071e-05/0.2945, allocations: 16.36 kB / 0.5748 GB, free: 6.477 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.152e-05/0.2946, allocations: 32.3 kB / 0.5749 GB, free: 6.457 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.767e-05/0.2947, allocations: 24.61 kB / 0.5749 GB, free: 6.445 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.2947, allocations: 3.875 kB / 0.5749 GB, free: 6.445 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.2947, allocations: 3.094 kB / 0.5749 GB, free: 6.445 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.2947, allocations: 7.453 kB / 0.5749 GB, free: 6.441 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.2948, allocations: 20.17 kB / 0.5749 GB, free: 6.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 6.923e-05/0.2948, allocations: 46.78 kB / 0.575 GB, free: 6.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2948, allocations: 8 kB / 0.575 GB, free: 6.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2948, allocations: 0.8438 kB / 0.575 GB, free: 6.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.2948, allocations: 1 kB / 0.575 GB, free: 6.402 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003296/0.2952, allocations: 361 kB / 0.5753 GB, free: 6.031 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.2952, allocations: 9.875 kB / 0.5753 GB, free: 6.031 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.153e-05/0.2952, allocations: 32.47 kB / 0.5753 GB, free: 5.992 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.032e-05/0.2953, allocations: 11.53 kB / 0.5754 GB, free: 5.984 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.805e-05/0.2953, allocations: 178.4 kB / 0.5755 GB, free: 5.777 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.996e-06/0.2953, allocations: 1.5 kB / 0.5755 GB, free: 5.777 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-06/0.2954, allocations: 8.75 kB / 0.5755 GB, free: 5.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.2955, allocations: 56.95 kB / 0.5756 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.2955, allocations: 0 / 0.5756 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.254e-06/0.2955, allocations: 7.938 kB / 0.5756 GB, free: 5.723 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.2955, allocations: 1.281 kB / 0.5756 GB, free: 5.723 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.2956, allocations: 30.83 kB / 0.5756 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002396/0.2959, allocations: 274.8 kB / 0.5759 GB, free: 5.434 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.181e-05/0.296, allocations: 45.86 kB / 0.5759 GB, free: 5.398 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.976e-05/0.296, allocations: 24.67 kB / 0.576 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.2961, allocations: 0 / 0.576 GB, free: 5.387 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.203e-05/0.2961, allocations: 31.56 kB / 0.576 GB, free: 5.348 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 7.61e-07/0.2961, allocations: 4 kB / 0.576 GB, free: 5.344 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0002481/0.2963, allocations: 89.75 kB / 0.5761 GB, free: 5.297 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.799e-05/0.2964, allocations: 52.95 kB / 0.5761 GB, free: 5.234 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.2964, allocations: 126.9 kB / 0.5763 GB, free: 5.121 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.142e-06/0.2964, allocations: 25.7 kB / 0.5763 GB, free: 5.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.149e-05/0.2965, allocations: 95.12 kB / 0.5764 GB, free: 4.996 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.2965, allocations: 14.91 kB / 0.5764 GB, free: 4.984 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.2965, allocations: 17.88 kB / 0.5764 GB, free: 4.965 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.108e-05/0.2965, allocations: 321.9 kB / 0.5767 GB, free: 4.645 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.918e-05/0.2966, allocations: 16.78 kB / 0.5767 GB, free: 4.641 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.2967, allocations: 18.36 kB / 0.5767 GB, free: 4.637 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.2968, allocations: 36.84 kB / 0.5768 GB, free: 4.625 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.2968, allocations: 0 / 0.5768 GB, free: 4.625 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001376/0.2969, allocations: 73.78 kB / 0.5768 GB, free: 4.582 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.247e-06/0.2969, allocations: 4.531 kB / 0.5768 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.2969, allocations: 1.875 kB / 0.5769 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.738e-06/0.297, allocations: 0 / 0.5769 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.115e-05/0.297, allocations: 13.88 kB / 0.5769 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.2971, allocations: 0 / 0.5769 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.707e-05/0.2971, allocations: 9.328 kB / 0.5769 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.2971, allocations: 5.297 kB / 0.5769 GB, free: 4.57 MB / 430.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.2972, allocations: 112.7 kB / 0.577 GB, free: 4.453 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.2972, allocations: 7.391 kB / 0.577 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.889e-05/0.2972, allocations: 10.09 kB / 0.577 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.2972, allocations: 1.609 kB / 0.577 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2972, allocations: 0 / 0.577 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2972, allocations: 0.9375 kB / 0.577 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001056/0.2973, allocations: 172.7 kB / 0.5772 GB, free: 4.234 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.2973, allocations: 0 / 0.5772 GB, free: 4.234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.152e-05/0.2974, allocations: 10.34 kB / 0.5772 GB, free: 4.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.432e-06/0.2974, allocations: 4 kB / 0.5772 GB, free: 4.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.683e-06/0.2974, allocations: 5.219 kB / 0.5772 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2974, allocations: 0.6562 kB / 0.5772 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2974, allocations: 1 kB / 0.5772 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001535/0.2976, allocations: 180.8 kB / 0.5774 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.354e-05/0.2976, allocations: 79.33 kB / 0.5774 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.2976, allocations: 0.75 kB / 0.5774 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.435e-05/0.2977, allocations: 8.922 kB / 0.5774 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.511e-05/0.2977, allocations: 2.859 kB / 0.5774 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.2978, allocations: 6.594 kB / 0.5775 GB, free: 3.969 MB / 430.1 MB Notification: Performance of sorting global known variables: time 2.797e-05/0.2978, allocations: 95.83 kB / 0.5775 GB, free: 3.887 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2978, allocations: 0 / 0.5775 GB, free: 3.887 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0001982/0.298, allocations: 7.125 kB / 0.5776 GB, free: 3.887 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: 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 (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.0002722/0.2983, allocations: 0.7016 MB / 0.5782 GB, free: 3.215 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.2984, allocations: 44.47 kB / 0.5783 GB, free: 3.203 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-06/0.2984, allocations: 0 / 0.5783 GB, free: 3.203 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.219e-05/0.2985, allocations: 26.19 kB / 0.5783 GB, free: 3.195 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001812/0.2987, allocations: 8.953 kB / 0.5783 GB, free: 3.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003663/0.2991, allocations: 205.7 kB / 0.5785 GB, free: 3.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.718e-05/0.2992, allocations: 0.6829 MB / 0.5792 GB, free: 2.312 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.6e-05/0.2992, allocations: 6.453 kB / 0.5792 GB, free: 2.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.2992, allocations: 14.38 kB / 0.5792 GB, free: 2.297 MB / 430.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2992, allocations: 0 / 0.5792 GB, free: 2.297 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.369/2.668, allocations: 1.469 MB / 0.5806 GB, free: 1.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/19.59, allocations: 7.406 kB / 0.5806 GB, free: 1.949 MB / 430.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > IBPSA_latest_IBPSA.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1)