Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.159/2.159, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.00122/0.00122, allocations: 180.8 kB / 487.4 MB, free: 5.02 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008949/0.0008949, allocations: 99.84 kB / 0.9219 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.847e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2433, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.088/1.331, allocations: 389.9 MB / 1.587 GB, free: 15.64 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/1.331, allocations: 80.14 kB / 1.587 GB, free: 15.6 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.057/2.388, allocations: 254.8 MB / 1.836 GB, free: 366.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.433e-06/2.388, allocations: 0 / 1.836 GB, free: 366.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.91e-05/2.388, allocations: 18.59 kB / 1.836 GB, free: 366.3 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001238/2.39, allocations: 0.8398 MB / 1.837 GB, free: 365.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/2.39, allocations: 10.94 kB / 1.837 GB, free: 365.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/2.39, allocations: 61.62 kB / 1.837 GB, free: 365.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006235/2.39, allocations: 471 kB / 1.837 GB, free: 365.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/2.39, allocations: 7.25 kB / 1.837 GB, free: 365.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/2.39, allocations: 25.78 kB / 1.837 GB, free: 365.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003146/2.391, allocations: 190.6 kB / 1.837 GB, free: 365.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003551/2.391, allocations: 231.3 kB / 1.838 GB, free: 365 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/2.391, allocations: 0 / 1.838 GB, free: 365 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/2.391, allocations: 2.812 kB / 1.838 GB, free: 365 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/2.391, allocations: 7.719 kB / 1.838 GB, free: 365 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/2.393, allocations: 1.256 MB / 1.839 GB, free: 364 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/2.393, allocations: 223.4 kB / 1.839 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/2.393, allocations: 100.4 kB / 1.839 GB, free: 363.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/2.394, allocations: 0.5004 MB / 1.84 GB, free: 363.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.583e-05/2.394, allocations: 34.56 kB / 1.84 GB, free: 363.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=25): time 1.723e-06/2.394, allocations: 0 / 1.84 GB, free: 363.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=25): time 0.0006003/2.394, allocations: 268.8 kB / 1.84 GB, free: 363.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.907e-05/2.394, allocations: 55.38 kB / 1.84 GB, free: 363 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/2.395, allocations: 351.6 kB / 1.84 GB, free: 362.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/2.395, allocations: 29.64 kB / 1.84 GB, free: 362.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000113/2.395, allocations: 246.1 kB / 1.84 GB, free: 362.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.702e-05/2.395, allocations: 84.62 kB / 1.841 GB, free: 362.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.692e-05/2.395, allocations: 0 / 1.841 GB, free: 362.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.037e-05/2.395, allocations: 360.5 kB / 1.841 GB, free: 362.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/2.395, allocations: 80.27 kB / 1.841 GB, free: 362.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/2.395, allocations: 176.5 kB / 1.841 GB, free: 361.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/2.396, allocations: 123.4 kB / 1.841 GB, free: 361.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/2.396, allocations: 0 / 1.841 GB, free: 361.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006568/2.396, allocations: 332.4 kB / 1.842 GB, free: 361.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.832e-05/2.396, allocations: 278.7 kB / 1.842 GB, free: 361.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/2.396, allocations: 0 / 1.842 GB, free: 361.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001875/2.397, allocations: 46.98 kB / 1.842 GB, free: 361.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003304/2.397, allocations: 66.05 kB / 1.842 GB, free: 361.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003108/2.397, allocations: 0.5763 MB / 1.843 GB, free: 360.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/2.398, allocations: 59.42 kB / 1.843 GB, free: 360.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/2.398, allocations: 19.45 kB / 1.843 GB, free: 360.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.607e-06/2.398, allocations: 7.766 kB / 1.843 GB, free: 360.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004282/2.398, allocations: 221.2 kB / 1.843 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-06/2.398, allocations: 6.25 kB / 1.843 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.686e-06/2.398, allocations: 0 / 1.843 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/2.399, allocations: 87.53 kB / 1.843 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/2.399, allocations: 3.906 kB / 1.843 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004196/2.399, allocations: 61.09 kB / 1.843 GB, free: 360.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/2.399, allocations: 18.44 kB / 1.843 GB, free: 360.6 MB / 1.151 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001191/2.399, allocations: 114 kB / 1.843 GB, free: 360.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004343/2.4, allocations: 251.6 kB / 1.843 GB, free: 360.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/2.4, allocations: 46.88 kB / 1.843 GB, free: 360.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006599/2.4, allocations: 340.7 kB / 1.844 GB, free: 360.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/2.4, allocations: 11.06 kB / 1.844 GB, free: 360.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/2.4, allocations: 0 / 1.844 GB, free: 360.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/2.4, allocations: 3.984 kB / 1.844 GB, free: 360.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/2.401, allocations: 0.8088 MB / 1.845 GB, free: 359.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/2.402, allocations: 7.656 kB / 1.845 GB, free: 359.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/2.402, allocations: 53.47 kB / 1.845 GB, free: 359.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/2.402, allocations: 35.61 kB / 1.845 GB, free: 359.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/2.402, allocations: 6.875 kB / 1.845 GB, free: 359.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002337/2.402, allocations: 0.558 MB / 1.845 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/2.402, allocations: 7.891 kB / 1.845 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/2.403, allocations: 469.5 kB / 1.846 GB, free: 358.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/2.403, allocations: 153.2 kB / 1.846 GB, free: 358.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/2.403, allocations: 3.938 kB / 1.846 GB, free: 358.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/2.403, allocations: 39.92 kB / 1.846 GB, free: 358.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/2.403, allocations: 21.53 kB / 1.846 GB, free: 358.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/2.403, allocations: 19.27 kB / 1.846 GB, free: 358.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002289/2.404, allocations: 267.5 kB / 1.846 GB, free: 358.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/2.404, allocations: 3.969 kB / 1.846 GB, free: 358.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0008454/2.404, allocations: 262.1 kB / 1.846 GB, free: 358.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001352/2.406, allocations: 1.544 MB / 1.848 GB, free: 357 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0007679/2.407, allocations: 373.8 kB / 1.848 GB, free: 356.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/2.407, allocations: 3 kB / 1.848 GB, free: 356.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002182/2.407, allocations: 129.7 kB / 1.848 GB, free: 356.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/2.408, allocations: 220.9 kB / 1.849 GB, free: 356.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/2.409, allocations: 0.6895 MB / 1.849 GB, free: 356.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/2.41, allocations: 0.8672 MB / 1.85 GB, free: 355.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005327/2.41, allocations: 131.9 kB / 1.85 GB, free: 355.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/2.41, allocations: 170.6 kB / 1.85 GB, free: 355.3 MB / 1.151 GB Notification: Performance of SimCode: time 7.32e-07/2.41, allocations: 3.906 kB / 1.85 GB, free: 355.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/2.444, allocations: 14.36 MB / 1.864 GB, free: 346.9 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001334/2.445, allocations: 165.4 kB / 1.865 GB, free: 346.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/4.905, allocations: 7.875 kB / 1.865 GB, free: 346.7 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat does not exist to compare? outputFormat=mat