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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001002, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001238/0.001239, allocations: 172.7 kB / 15.95 MB, free: 208 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.455/1.455, allocations: 223.3 MB / 240 MB, free: 5.312 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.394/2.394, allocations: 390.4 MB / 0.6655 GB, free: 2.859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003379, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6639/0.6643, allocations: 142.3 MB / 0.9538 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.HydraulicDiameter): time 0.01187/0.6762, allocations: 13.76 MB / 0.9673 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005174/0.6814, allocations: 3.624 MB / 0.9708 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004624/0.6819, allocations: 23.88 kB / 0.9708 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005119/0.6824, allocations: 131.6 kB / 0.971 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.6838, allocations: 0.5595 MB / 0.9715 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.685, allocations: 407.4 kB / 0.9719 GB, free: 9.348 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001665/0.6867, allocations: 1.193 MB / 0.9731 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003747/0.6871, allocations: 223.8 kB / 0.9733 GB, free: 8.508 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006467/0.6878, allocations: 358.2 kB / 0.9736 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003672/0.6881, allocations: 250.4 kB / 0.9739 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.6882, allocations: 11.16 kB / 0.9739 GB, free: 8.176 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.6893, allocations: 0.6324 MB / 0.9745 GB, free: 7.816 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.23e-05/0.6894, allocations: 58.48 kB / 0.9745 GB, free: 7.773 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.994e-05/0.6895, allocations: 97.8 kB / 0.9746 GB, free: 7.707 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006415/0.6902, allocations: 491.1 kB / 0.9751 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6902, allocations: 0 / 0.9751 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.076e-06/0.6902, allocations: 1 kB / 0.9751 GB, free: 7.434 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.6902, allocations: 3.938 kB / 0.9751 GB, free: 7.43 MB / 0.7325 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.001009/0.6912, allocations: 0.6873 MB / 0.9758 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.6913, allocations: 12.72 kB / 0.9758 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.605e-05/0.6913, allocations: 48.95 kB / 0.9758 GB, free: 6.758 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.6914, allocations: 44.73 kB / 0.9759 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009335/0.6924, allocations: 487.9 kB / 0.9763 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.6924, allocations: 16.05 kB / 0.9764 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.6924, allocations: 16.75 kB / 0.9764 GB, free: 6.316 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003771/0.6928, allocations: 178.2 kB / 0.9765 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.6928, allocations: 1.094 kB / 0.9765 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.6929, allocations: 9.406 kB / 0.9766 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.6929, allocations: 3.5 kB / 0.9766 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.6933, allocations: 161.5 kB / 0.9767 GB, free: 6.125 MB / 0.7325 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.001137/0.6944, allocations: 0.8651 MB / 0.9776 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002537/0.6947, allocations: 129.1 kB / 0.9777 GB, free: 5.25 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.6948, allocations: 73.75 kB / 0.9778 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003265/0.6952, allocations: 336 kB / 0.9781 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.6952, allocations: 43.48 kB / 0.9781 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.6952, allocations: 5.094 kB / 0.9781 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0005685/0.6958, allocations: 222.2 kB / 0.9783 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.6959, allocations: 56.5 kB / 0.9784 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.6962, allocations: 344.4 kB / 0.9787 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.6963, allocations: 28.39 kB / 0.9787 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.6964, allocations: 193.6 kB / 0.9789 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.6965, allocations: 37.61 kB / 0.979 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.316e-06/0.6965, allocations: 4 kB / 0.979 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.6966, allocations: 342.7 kB / 0.9793 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.6968, allocations: 51.59 kB / 0.9793 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.6969, allocations: 94.14 kB / 0.9794 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.6971, allocations: 59.94 kB / 0.9795 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.6971, allocations: 0.9062 kB / 0.9795 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000367/0.6975, allocations: 180 kB / 0.9797 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.916e-05/0.6976, allocations: 112.4 kB / 0.9798 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.6976, allocations: 0 / 0.9798 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.6976, allocations: 1.281 kB / 0.9798 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.6978, allocations: 33.5 kB / 0.9798 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.6978, allocations: 1.594 kB / 0.9798 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.698, allocations: 31.55 kB / 0.9798 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.983e-05/0.698, allocations: 12.3 kB / 0.9798 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.6981, allocations: 3.969 kB / 0.9798 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002986/0.6984, allocations: 117.5 kB / 0.98 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.6984, allocations: 5.406 kB / 0.98 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-06/0.6984, allocations: 0 / 0.98 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.6985, allocations: 26.02 kB / 0.98 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.6985, allocations: 9.297 kB / 0.98 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.6987, allocations: 34.91 kB / 0.98 GB, free: 3.344 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.543e-05/0.6987, allocations: 8.969 kB / 0.98 GB, free: 3.34 MB / 0.7325 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 () * Number of clocked 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 0.0001613/0.6989, allocations: 222 kB / 0.9803 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.699, allocations: 32.59 kB / 0.9803 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000496/0.6995, allocations: 240 kB / 0.9805 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.6995, allocations: 2.156 kB / 0.9805 GB, free: 2.965 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.6995, allocations: 3.953 kB / 0.9805 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.6995, allocations: 0 / 0.9805 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008318/0.7003, allocations: 0.6468 MB / 0.9812 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.7004, allocations: 1.188 kB / 0.9812 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.7005, allocations: 38.03 kB / 0.9812 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.7005, allocations: 5.266 kB / 0.9812 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.7005, allocations: 2.312 kB / 0.9812 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.7005, allocations: 1.625 kB / 0.9812 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7005, allocations: 1.406 kB / 0.9812 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004135/0.7009, allocations: 324.7 kB / 0.9815 GB, free: 2.156 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.7011, allocations: 135.8 kB / 0.9816 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.488e-05/0.7011, allocations: 9.422 kB / 0.9816 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.7013, allocations: 18.89 kB / 0.9817 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.73e-05/0.7014, allocations: 17.42 kB / 0.9817 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.7014, allocations: 12.77 kB / 0.9817 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002506/0.7017, allocations: 241.3 kB / 0.9819 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7017, allocations: 0 / 0.9819 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000641/0.7023, allocations: 188.4 kB / 0.9821 GB, free: 1.789 MB / 0.7325 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 () * Number of clocked 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.001085/0.7034, allocations: 1.012 MB / 0.9831 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000492/0.7039, allocations: 202.4 kB / 0.9833 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.7039, allocations: 1.312 kB / 0.9833 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.7041, allocations: 84.98 kB / 0.9834 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007882/0.7049, allocations: 146.6 kB / 0.9835 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.7075, allocations: 1.761 MB / 0.9852 GB, free: 15.35 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.7079, allocations: 0.796 MB / 0.986 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002679/0.7082, allocations: 79.23 kB / 0.9861 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.7083, allocations: 115.4 kB / 0.9862 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.7083, allocations: 0 / 0.9862 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.7297, allocations: 9.55 MB / 0.9955 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/0.7299, allocations: 232.9 kB / 0.9957 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.95/2.68, allocations: 0 / 0.9957 GB, free: 4.793 MB / 0.7481 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