Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve",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.307/2.307, allocations: 390.6 MB / 398 MB, free: 10.91 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.001032/0.001032, allocations: 187.7 kB / 491.2 MB, free: 1.535 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.395/1.395, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.001078/0.001078, allocations: 95.77 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.775e-05/1.771e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2525, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.071/1.324, allocations: 390.7 MB / 1.594 GB, free: 7.238 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/1.324, allocations: 90.94 kB / 1.594 GB, free: 7.191 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.185/2.509, allocations: 254.8 MB / 1.843 GB, free: 358.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.613e-06/2.509, allocations: 0 / 1.843 GB, free: 358.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 4.597e-05/2.509, allocations: 14.69 kB / 1.843 GB, free: 358.1 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.001386/2.511, allocations: 0.8412 MB / 1.844 GB, free: 357.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/2.511, allocations: 10.88 kB / 1.844 GB, free: 357.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/2.511, allocations: 67.48 kB / 1.844 GB, free: 357.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006394/2.511, allocations: 452.8 kB / 1.844 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/2.511, allocations: 13 kB / 1.844 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/2.512, allocations: 20.19 kB / 1.844 GB, free: 357 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003278/2.512, allocations: 197.5 kB / 1.844 GB, free: 356.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/2.512, allocations: 230.6 kB / 1.845 GB, free: 356.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/2.512, allocations: 0 / 1.845 GB, free: 356.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.751e-05/2.512, allocations: 3.844 kB / 1.845 GB, free: 356.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/2.512, allocations: 12.23 kB / 1.845 GB, free: 356.8 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.001755/2.514, allocations: 1.248 MB / 1.846 GB, free: 355.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/2.514, allocations: 243 kB / 1.846 GB, free: 355.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/2.515, allocations: 97.61 kB / 1.846 GB, free: 355.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003476/2.515, allocations: 0.5017 MB / 1.847 GB, free: 355 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/2.515, allocations: 34.97 kB / 1.847 GB, free: 355 MB / 1.151 GB Notification: Performance of pre-optimization done (n=25): time 2.034e-06/2.515, allocations: 2.938 kB / 1.847 GB, free: 355 MB / 1.151 GB Notification: Performance of matching and sorting (n=25): time 0.0006476/2.516, allocations: 264 kB / 1.847 GB, free: 354.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.477e-05/2.516, allocations: 55.09 kB / 1.847 GB, free: 354.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/2.516, allocations: 348 kB / 1.847 GB, free: 354.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/2.516, allocations: 29.64 kB / 1.847 GB, free: 354.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/2.516, allocations: 255.2 kB / 1.848 GB, free: 354.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/2.516, allocations: 78.34 kB / 1.848 GB, free: 354.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.684e-05/2.516, allocations: 3.781 kB / 1.848 GB, free: 354.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.42e-05/2.516, allocations: 350.3 kB / 1.848 GB, free: 353.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/2.517, allocations: 81.75 kB / 1.848 GB, free: 353.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/2.517, allocations: 176 kB / 1.848 GB, free: 353.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/2.517, allocations: 115.9 kB / 1.848 GB, free: 353.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/2.517, allocations: 3.156 kB / 1.848 GB, free: 353.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006325/2.518, allocations: 336.3 kB / 1.849 GB, free: 353.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/2.518, allocations: 277.2 kB / 1.849 GB, free: 353.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/2.518, allocations: 0 / 1.849 GB, free: 353.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/2.518, allocations: 35.53 kB / 1.849 GB, free: 353.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003344/2.518, allocations: 76.44 kB / 1.849 GB, free: 353.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003426/2.519, allocations: 0.5685 MB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/2.519, allocations: 68.7 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/2.519, allocations: 18.48 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.677e-06/2.519, allocations: 3.469 kB / 1.85 GB, free: 352.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004289/2.52, allocations: 226.8 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-06/2.52, allocations: 2.562 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.667e-06/2.52, allocations: 0 / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003669/2.52, allocations: 83.59 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.389e-06/2.52, allocations: 6.469 kB / 1.85 GB, free: 352.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/2.521, allocations: 59.2 kB / 1.85 GB, free: 352.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/2.521, allocations: 18.73 kB / 1.85 GB, free: 352.4 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.0001356/2.521, allocations: 103.5 kB / 1.85 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004591/2.521, allocations: 265 kB / 1.85 GB, free: 352.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/2.521, allocations: 44.84 kB / 1.851 GB, free: 352.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006383/2.522, allocations: 338.9 kB / 1.851 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/2.522, allocations: 3 kB / 1.851 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/2.522, allocations: 0 / 1.851 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/2.522, allocations: 0 / 1.851 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/2.523, allocations: 0.8181 MB / 1.852 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/2.523, allocations: 3.938 kB / 1.852 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/2.523, allocations: 54.97 kB / 1.852 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001219/2.523, allocations: 42.23 kB / 1.852 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/2.523, allocations: 7.906 kB / 1.852 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002304/2.524, allocations: 0.5562 MB / 1.852 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/2.524, allocations: 3.781 kB / 1.852 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005018/2.524, allocations: 486.5 kB / 1.853 GB, free: 350.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/2.524, allocations: 158.7 kB / 1.853 GB, free: 350.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/2.524, allocations: 0 / 1.853 GB, free: 350.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/2.525, allocations: 41.89 kB / 1.853 GB, free: 350.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/2.525, allocations: 30.72 kB / 1.853 GB, free: 350.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/2.525, allocations: 11.48 kB / 1.853 GB, free: 350.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0002311/2.525, allocations: 268.8 kB / 1.853 GB, free: 350 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.71e-07/2.525, allocations: 0 / 1.853 GB, free: 350 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0008433/2.526, allocations: 273.7 kB / 1.853 GB, free: 349.9 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.001275/2.527, allocations: 1.529 MB / 1.855 GB, free: 348.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.000715/2.528, allocations: 365.5 kB / 1.855 GB, free: 348.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/2.528, allocations: 0 / 1.855 GB, free: 348.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002201/2.528, allocations: 131.8 kB / 1.855 GB, free: 348.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001262/2.529, allocations: 229.6 kB / 1.856 GB, free: 348.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/2.531, allocations: 0.6875 MB / 1.856 GB, free: 348 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/2.531, allocations: 0.8673 MB / 1.857 GB, free: 347.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0004902/2.531, allocations: 138.3 kB / 1.857 GB, free: 347.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/2.532, allocations: 169.7 kB / 1.857 GB, free: 347 MB / 1.151 GB Notification: Performance of SimCode: time 5.21e-07/2.532, allocations: 3.938 kB / 1.858 GB, free: 347 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03335/2.565, allocations: 14.37 MB / 1.872 GB, free: 335.1 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/2.565, allocations: 174 kB / 1.872 GB, free: 334.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/5.37, allocations: 6.703 kB / 1.872 GB, free: 334.9 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat does not exist to compare? outputFormat=mat