Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.365/2.365, allocations: 390.3 MB / 402.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001076, allocations: 176.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 221.3 MB / 0.7915 GB, free: 5.391 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009639/0.0009641, allocations: 84.02 kB / 0.9317 GB, free: 5.695 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.351e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3083/0.3083, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9882/1.297, allocations: 150.5 MB / 1.366 GB, free: 3.598 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/1.297, allocations: 79.88 kB / 1.366 GB, free: 3.551 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007067/1.304, allocations: 2.307 MB / 1.368 GB, free: 1.578 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.054e-06/1.304, allocations: 4 kB / 1.368 GB, free: 1.574 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.054e-06/1.304, allocations: 0 / 1.368 GB, free: 1.574 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003286/1.304, allocations: 333.2 kB / 1.368 GB, free: 1.207 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.304, allocations: 12.03 kB / 1.368 GB, free: 1.195 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.064e-05/1.304, allocations: 30.56 kB / 1.368 GB, free: 1.156 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.453e-05/1.304, allocations: 4.828 kB / 1.368 GB, free: 1.152 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/1.305, allocations: 159.1 kB / 1.369 GB, free: 0.957 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/1.305, allocations: 0 / 1.369 GB, free: 0.957 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/1.305, allocations: 7.984 kB / 1.369 GB, free: 0.9492 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.649e-05/1.305, allocations: 36.77 kB / 1.369 GB, free: 0.9102 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/1.305, allocations: 0 / 1.369 GB, free: 0.9102 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.544e-06/1.305, allocations: 0 / 1.369 GB, free: 0.9102 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/1.305, allocations: 0 / 1.369 GB, free: 0.9102 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.178e-05/1.305, allocations: 7.984 kB / 1.369 GB, free: 0.9023 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/1.305, allocations: 157 kB / 1.369 GB, free: 0.7031 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.39e-05/1.305, allocations: 26.55 kB / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.225e-05/1.305, allocations: 16.36 kB / 1.369 GB, free: 0.6523 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/1.305, allocations: 4.062 kB / 1.369 GB, free: 0.6484 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/1.305, allocations: 30.56 kB / 1.369 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.263e-06/1.305, allocations: 0 / 1.369 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.0001403/1.305, allocations: 34.48 kB / 1.369 GB, free: 0.5703 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/1.305, allocations: 58.22 kB / 1.369 GB, free: 0.5039 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/1.305, allocations: 93.11 kB / 1.369 GB, free: 416 kB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/1.305, allocations: 29.73 kB / 1.369 GB, free: 380 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/1.306, allocations: 80.14 kB / 1.369 GB, free: 296 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/1.306, allocations: 7.156 kB / 1.369 GB, free: 292 kB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/1.306, allocations: 0 / 1.369 GB, free: 292 kB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000143/1.306, allocations: 314.8 kB / 1.369 GB, free: 15.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/1.306, allocations: 4 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/1.306, allocations: 3.938 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.844e-05/1.306, allocations: 4 kB / 1.369 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/1.306, allocations: 8 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.573e-05/1.306, allocations: 40.88 kB / 1.37 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/1.306, allocations: 9.25 kB / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/1.306, allocations: 0 / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/1.306, allocations: 0 / 1.37 GB, free: 15.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/1.306, allocations: 15.92 kB / 1.37 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000378/1.306, allocations: 0.5853 MB / 1.37 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.878e-05/1.306, allocations: 4.125 kB / 1.37 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/1.306, allocations: 3.5 kB / 1.37 GB, free: 15.27 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 8.636e-05/1.307, allocations: 106 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.604e-06/1.307, allocations: 0 / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/1.307, allocations: 47.31 kB / 1.37 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/1.307, allocations: 0 / 1.37 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.307, allocations: 3.953 kB / 1.37 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/1.307, allocations: 0 / 1.37 GB, free: 15.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/1.307, allocations: 157 kB / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/1.307, allocations: 0 / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.046e-05/1.307, allocations: 8 kB / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/1.307, allocations: 0 / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/1.307, allocations: 0 / 1.37 GB, free: 14.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003213/1.307, allocations: 0.5861 MB / 1.371 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.307, allocations: 3.984 kB / 1.371 GB, free: 14.3 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.394e-05/1.307, allocations: 68.42 kB / 1.371 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/1.307, allocations: 77.11 kB / 1.371 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/1.307, allocations: 3.953 kB / 1.371 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.565e-05/1.308, allocations: 11.36 kB / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/1.308, allocations: 0 / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/1.308, allocations: 0 / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.853e-05/1.308, allocations: 83.31 kB / 1.371 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.5e-07/1.308, allocations: 0 / 1.371 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001996/1.308, allocations: 12 kB / 1.371 GB, free: 14.02 MB / 0.8386 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004522/1.308, allocations: 0.6162 MB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001497/1.308, allocations: 19.81 kB / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.308, allocations: 0 / 1.372 GB, free: 13.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.436e-05/1.309, allocations: 15.92 kB / 1.372 GB, free: 13.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001039/1.309, allocations: 11.89 kB / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/1.309, allocations: 87.77 kB / 1.372 GB, free: 13.21 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/1.309, allocations: 0.6731 MB / 1.373 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 1.883e-05/1.309, allocations: 3.984 kB / 1.373 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.289e-05/1.309, allocations: 11.56 kB / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of SimCode: time 4.81e-07/1.309, allocations: 0 / 1.373 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/1.323, allocations: 1.149 MB / 1.374 GB, free: 11.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/1.323, allocations: 226.1 kB / 1.374 GB, free: 11.37 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.517/2.84, allocations: 4.312 kB / 1.374 GB, free: 11.37 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_InvertingBasicFlowFunction_m_flow.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.InvertingBasicFlowFunction_m_flow_res.mat does not exist to compare? outputFormat=mat