Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.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.HydraulicDiameter,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="Buildings_9_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter",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.32/2.32, allocations: 387.1 MB / 399.7 MB, free: 9.426 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.001241/0.001241, allocations: 188.1 kB / 492.3 MB, free: 0.5859 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.521/1.521, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.001076/0.001076, allocations: 95.48 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.143e-05/4.144e-05, allocations: 6.688 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3394, allocations: 142.3 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.267/1.607, allocations: 413.1 MB / 1.616 GB, free: 1.641 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.607, allocations: 81.77 kB / 1.616 GB, free: 1.602 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 0.9854/2.593, allocations: 171.6 MB / 1.784 GB, free: 377.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.413e-06/2.593, allocations: 0 / 1.784 GB, free: 377.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 5.758e-05/2.593, allocations: 15.78 kB / 1.784 GB, free: 377.6 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001153/2.594, allocations: 0.6648 MB / 1.784 GB, free: 377.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/2.594, allocations: 10.03 kB / 1.784 GB, free: 377.2 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.548e-05/2.594, allocations: 50.3 kB / 1.784 GB, free: 377.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001639/2.594, allocations: 45.75 kB / 1.784 GB, free: 377.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03339/2.627, allocations: 14.65 MB / 1.799 GB, free: 376.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/2.628, allocations: 11.2 kB / 1.799 GB, free: 376.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/2.628, allocations: 26.52 kB / 1.799 GB, free: 376.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003143/2.628, allocations: 158.3 kB / 1.799 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/2.628, allocations: 0 / 1.799 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/2.628, allocations: 7.375 kB / 1.799 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/2.628, allocations: 3.531 kB / 1.799 GB, free: 376.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/2.628, allocations: 108.2 kB / 1.799 GB, free: 376.3 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.001162/2.629, allocations: 0.834 MB / 1.8 GB, free: 375.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/2.63, allocations: 97.97 kB / 1.8 GB, free: 375.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.964e-05/2.63, allocations: 54.08 kB / 1.8 GB, free: 375.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002172/2.63, allocations: 342 kB / 1.8 GB, free: 375.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/2.63, allocations: 33.88 kB / 1.8 GB, free: 375.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=12): time 1.904e-06/2.63, allocations: 0 / 1.8 GB, free: 375.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=12): time 0.0002923/2.63, allocations: 146.6 kB / 1.8 GB, free: 375.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/2.63, allocations: 51.41 kB / 1.8 GB, free: 375.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/2.631, allocations: 283.5 kB / 1.801 GB, free: 375.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/2.631, allocations: 32.89 kB / 1.801 GB, free: 375.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 9.082e-05/2.631, allocations: 198.8 kB / 1.801 GB, free: 375 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/2.631, allocations: 34.73 kB / 1.801 GB, free: 375 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-06/2.631, allocations: 3.625 kB / 1.801 GB, free: 375 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.629e-05/2.631, allocations: 344.7 kB / 1.801 GB, free: 374.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.706e-05/2.631, allocations: 26.78 kB / 1.801 GB, free: 374.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.357e-05/2.631, allocations: 82.83 kB / 1.801 GB, free: 374.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.302e-05/2.631, allocations: 39.81 kB / 1.801 GB, free: 374.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/2.631, allocations: 3.219 kB / 1.801 GB, free: 374.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002046/2.631, allocations: 140.9 kB / 1.802 GB, free: 374.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.948e-05/2.631, allocations: 187 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/2.631, allocations: 0 / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/2.631, allocations: 0 / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/2.631, allocations: 31.88 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/2.631, allocations: 7.797 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/2.632, allocations: 35.36 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/2.632, allocations: 7.688 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.107e-06/2.632, allocations: 3.875 kB / 1.802 GB, free: 374.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000138/2.632, allocations: 75.92 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.344e-06/2.632, allocations: 3.844 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.609e-06/2.632, allocations: 3.75 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/2.632, allocations: 32.84 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/2.632, allocations: 6.906 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/2.632, allocations: 27.23 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/2.632, allocations: 3.969 kB / 1.802 GB, free: 374.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.786e-05/2.632, allocations: 126 kB / 1.802 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.353e-05/2.632, allocations: 38.3 kB / 1.802 GB, free: 374.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003017/2.633, allocations: 191.1 kB / 1.802 GB, free: 374.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/2.633, allocations: 0 / 1.802 GB, free: 374.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/2.633, allocations: 3.938 kB / 1.802 GB, free: 374.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/2.633, allocations: 2.438 kB / 1.802 GB, free: 374.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006118/2.633, allocations: 0.5686 MB / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/2.633, allocations: 3.906 kB / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/2.634, allocations: 32.17 kB / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/2.634, allocations: 3.938 kB / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/2.634, allocations: 0 / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/2.634, allocations: 10.22 kB / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/2.634, allocations: 0 / 1.803 GB, free: 373.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/2.634, allocations: 325.4 kB / 1.803 GB, free: 373.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/2.634, allocations: 122.7 kB / 1.803 GB, free: 373.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.149e-05/2.634, allocations: 15.61 kB / 1.803 GB, free: 373.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/2.634, allocations: 17.19 kB / 1.803 GB, free: 373.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.893e-05/2.634, allocations: 18.95 kB / 1.803 GB, free: 373.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/2.634, allocations: 3.781 kB / 1.803 GB, free: 373.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0001747/2.634, allocations: 228.2 kB / 1.804 GB, free: 373.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.21e-07/2.635, allocations: 0 / 1.804 GB, free: 373.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0005676/2.635, allocations: 172.5 kB / 1.804 GB, free: 373.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0008958/2.636, allocations: 1.239 MB / 1.805 GB, free: 372.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002498/2.636, allocations: 160 kB / 1.805 GB, free: 372.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/2.636, allocations: 0 / 1.805 GB, free: 372.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/2.636, allocations: 65.31 kB / 1.805 GB, free: 372 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006869/2.637, allocations: 136.1 kB / 1.805 GB, free: 372 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008244/2.638, allocations: 482.8 kB / 1.806 GB, free: 371.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001972/2.638, allocations: 0.8056 MB / 1.807 GB, free: 371 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0003652/2.638, allocations: 87.8 kB / 1.807 GB, free: 371 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/2.639, allocations: 104 kB / 1.807 GB, free: 371 MB / 1.151 GB Notification: Performance of SimCode: time 5.31e-07/2.639, allocations: 0 / 1.807 GB, free: 371 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/2.661, allocations: 10.86 MB / 1.817 GB, free: 370.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/2.661, allocations: 205.3 kB / 1.818 GB, free: 370.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.309/4.971, allocations: 0 / 1.818 GB, free: 370.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter_res.mat does not exist to compare? outputFormat=mat