Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,fileNamePrefix="Buildings_9_Buildings_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.0009993/0.0009995, allocations: 96.25 kB / 15.05 MB, free: 1.113 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.00106/0.00106, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.374/2.374, allocations: 390.3 MB / 0.6653 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003633, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7195/0.7199, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc): time 0.001461/0.7214, allocations: 1.203 MB / 0.9548 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005287/0.722, allocations: 385.7 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.064e-05/0.722, allocations: 0 / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.7221, allocations: 5.406 kB / 0.9551 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.7221, allocations: 9.422 kB / 0.9552 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001371/0.7223, allocations: 18.16 kB / 0.9552 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.171e-05/0.7223, allocations: 32.33 kB / 0.9552 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.147e-05/0.7224, allocations: 9.031 kB / 0.9552 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.536e-05/0.7225, allocations: 20.25 kB / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.601e-05/0.7226, allocations: 18.95 kB / 0.9553 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.7226, allocations: 5.531 kB / 0.9553 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.7227, allocations: 3.188 kB / 0.9553 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.479e-05/0.7227, allocations: 11.98 kB / 0.9553 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.392e-05/0.7227, allocations: 33.05 kB / 0.9553 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.181e-05/0.7228, allocations: 26.83 kB / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.7228, allocations: 0 / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7228, allocations: 0 / 0.9553 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.7228, allocations: 0 / 0.9553 GB, free: 6.723 MB / 0.7169 GB 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.0004589/0.7233, allocations: 361 kB / 0.9557 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.7233, allocations: 13.5 kB / 0.9557 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.716e-05/0.7234, allocations: 35.69 kB / 0.9557 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.921e-05/0.7234, allocations: 10.14 kB / 0.9557 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.348e-05/0.7235, allocations: 171.3 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.7235, allocations: 1.188 kB / 0.9559 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.7235, allocations: 5.031 kB / 0.9559 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00019/0.7237, allocations: 59.17 kB / 0.956 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.7237, allocations: 0 / 0.956 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.7238, allocations: 4 kB / 0.956 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.7238, allocations: 1.156 kB / 0.956 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.724, allocations: 46.67 kB / 0.956 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004208/0.7244, allocations: 271.2 kB / 0.9563 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.7245, allocations: 48.7 kB / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.7245, allocations: 1.438 kB / 0.9563 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.585e-05/0.7246, allocations: 30.56 kB / 0.9563 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.292e-06/0.7246, allocations: 0 / 0.9563 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003701/0.7249, allocations: 108.1 kB / 0.9564 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.725, allocations: 51.41 kB / 0.9565 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.829e-05/0.7251, allocations: 124.7 kB / 0.9566 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.188e-06/0.7251, allocations: 25.7 kB / 0.9566 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.479e-05/0.7251, allocations: 90.83 kB / 0.9567 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.7251, allocations: 25 kB / 0.9567 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.7252, allocations: 0 / 0.9567 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.773e-05/0.7252, allocations: 315.9 kB / 0.957 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.7253, allocations: 22.3 kB / 0.9571 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.908e-05/0.7254, allocations: 21.23 kB / 0.9571 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.305e-05/0.7255, allocations: 24.98 kB / 0.9571 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7255, allocations: 1.219 kB / 0.9571 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001851/0.7257, allocations: 75.33 kB / 0.9572 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.7257, allocations: 4.031 kB / 0.9572 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7257, allocations: 5.359 kB / 0.9572 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.7257, allocations: 7.938 kB / 0.9572 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.7259, allocations: 12.52 kB / 0.9572 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.7259, allocations: 3.984 kB / 0.9572 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.466e-05/0.726, allocations: 5.875 kB / 0.9572 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.726, allocations: 5.484 kB / 0.9572 GB, free: 4.832 MB / 0.7169 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 7.354e-05/0.726, allocations: 115.2 kB / 0.9573 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.7261, allocations: 10.81 kB / 0.9573 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.7261, allocations: 5.531 kB / 0.9574 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.7261, allocations: 4 kB / 0.9574 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.7261, allocations: 5.359 kB / 0.9574 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.7261, allocations: 0 / 0.9574 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.7263, allocations: 171.4 kB / 0.9575 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.7263, allocations: 3.938 kB / 0.9575 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.424e-05/0.7264, allocations: 8.438 kB / 0.9575 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.7264, allocations: 0 / 0.9575 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.7264, allocations: 9.078 kB / 0.9575 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.7264, allocations: 4 kB / 0.9575 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.7264, allocations: 1.25 kB / 0.9576 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.7267, allocations: 172.7 kB / 0.9577 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.528e-05/0.7267, allocations: 82.5 kB / 0.9578 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.7267, allocations: 5.312 kB / 0.9578 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.374e-05/0.7268, allocations: 9.5 kB / 0.9578 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.7269, allocations: 5.297 kB / 0.9578 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.7269, allocations: 1.219 kB / 0.9578 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.04e-05/0.7269, allocations: 103.6 kB / 0.9579 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.727, allocations: 0 / 0.9579 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002276/0.7272, allocations: 7.562 kB / 0.9579 GB, free: 4.105 MB / 0.7169 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.0004307/0.7276, allocations: 0.7047 MB / 0.9586 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002022/0.7278, allocations: 54.53 kB / 0.9587 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7278, allocations: 0 / 0.9587 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.627e-05/0.7279, allocations: 25.86 kB / 0.9587 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.7281, allocations: 0.75 kB / 0.9587 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005288/0.7286, allocations: 211.6 kB / 0.9589 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001663/0.7288, allocations: 0.6948 MB / 0.9596 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.75e-05/0.7288, allocations: 1.062 kB / 0.9596 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.505e-05/0.7289, allocations: 17.16 kB / 0.9596 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of SimCode: time 5.01e-07/0.7289, allocations: 4 kB / 0.9596 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01305/0.742, allocations: 1.235 MB / 0.9608 GB, free: 1.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.7422, allocations: 202.2 kB / 0.961 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.456, allocations: 0 / 0.961 GB, free: 1.691 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Controls_BaseClasses_Examples_GCritCalc.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc_res.mat does not exist to compare? outputFormat=mat