Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",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.001176/0.001176, allocations: 91.61 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.001686/0.001686, 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.447/1.447, allocations: 223.2 MB / 240 MB, free: 5.418 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.461/2.461, allocations: 390.4 MB / 0.6655 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003155, allocations: 8 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7275/0.7278, allocations: 142.3 MB / 0.9538 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01636/0.7443, allocations: 17.78 MB / 0.9712 GB, free: 9.953 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008053/0.7524, allocations: 4.855 MB / 0.976 GB, free: 6.004 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000792/0.7532, allocations: 16.66 kB / 0.976 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006773/0.7539, allocations: 189.8 kB / 0.9761 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.00188/0.7558, allocations: 0.616 MB / 0.9767 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002114/0.7579, allocations: 0.7501 MB / 0.9775 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001974/0.7599, allocations: 1.68 MB / 0.9791 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006169/0.7605, allocations: 411.5 kB / 0.9795 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009944/0.7615, allocations: 0.5441 MB / 0.98 GB, free: 3.258 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007039/0.7622, allocations: 500 kB / 0.9805 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.828e-05/0.7623, allocations: 28.38 kB / 0.9805 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.7635, allocations: 0.5981 MB / 0.9811 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.7636, allocations: 127.2 kB / 0.9813 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.7638, allocations: 157.9 kB / 0.9814 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008353/0.7646, allocations: 0.7378 MB / 0.9821 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.7647, allocations: 1.469 kB / 0.9821 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.248e-06/0.7647, allocations: 0 / 0.9821 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.796e-06/0.7647, allocations: 3.938 kB / 0.9821 GB, free: 1.977 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00174/0.7664, allocations: 0.9951 MB / 0.9831 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7665, allocations: 10.12 kB / 0.9831 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.698e-05/0.7666, allocations: 85.45 kB / 0.9832 GB, free: 1.102 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.7667, allocations: 82.22 kB / 0.9833 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000658/0.7674, allocations: 493.5 kB / 0.9837 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.7674, allocations: 41.39 kB / 0.9838 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.7675, allocations: 52.36 kB / 0.9838 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.7685, allocations: 0.6303 MB / 0.9844 GB, free: 140 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.7686, allocations: 9.062 kB / 0.9845 GB, free: 132 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.651e-05/0.7686, allocations: 21.66 kB / 0.9845 GB, free: 116 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.7686, allocations: 11.78 kB / 0.9845 GB, free: 116 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001078/0.7697, allocations: 0.514 MB / 0.985 GB, free: 15.88 MB / 0.7481 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.003123/0.7729, allocations: 3.197 MB / 0.9881 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.7735, allocations: 357.3 kB / 0.9885 GB, free: 12.22 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.774, allocations: 236.7 kB / 0.9887 GB, free: 11.98 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003571/0.7744, allocations: 356.4 kB / 0.989 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.7744, allocations: 34.52 kB / 0.9891 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=38): time 1.733e-06/0.7744, allocations: 0 / 0.9891 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of matching and sorting (n=38): time 0.001986/0.7764, allocations: 0.8727 MB / 0.9899 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.7764, allocations: 55.41 kB / 0.99 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006073/0.7771, allocations: 0.5822 MB / 0.9905 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.7771, allocations: 33.7 kB / 0.9906 GB, free: 9.922 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.7773, allocations: 328.4 kB / 0.9909 GB, free: 9.598 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.7774, allocations: 130.2 kB / 0.991 GB, free: 9.469 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-05/0.7775, allocations: 12 kB / 0.991 GB, free: 9.457 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.7776, allocations: 378.6 kB / 0.9914 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004565/0.7781, allocations: 217.2 kB / 0.9916 GB, free: 8.867 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005608/0.7787, allocations: 380 kB / 0.9919 GB, free: 8.434 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.7792, allocations: 256.7 kB / 0.9922 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.7792, allocations: 0 / 0.9922 GB, free: 8.184 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001339/0.7805, allocations: 0.7383 MB / 0.9929 GB, free: 7.434 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.7807, allocations: 215.1 kB / 0.9931 GB, free: 7.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.7807, allocations: 4 kB / 0.9931 GB, free: 7.156 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000556/0.7813, allocations: 148.8 kB / 0.9933 GB, free: 7.008 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006333/0.7819, allocations: 155.8 kB / 0.9934 GB, free: 6.855 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005785/0.7825, allocations: 0.6265 MB / 0.994 GB, free: 6.203 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/0.783, allocations: 115.3 kB / 0.9941 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.856e-05/0.7831, allocations: 31.98 kB / 0.9942 GB, free: 6.059 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-06/0.7831, allocations: 4 kB / 0.9942 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001157/0.7843, allocations: 0.6233 MB / 0.9948 GB, free: 5.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.7843, allocations: 8.062 kB / 0.9948 GB, free: 5.422 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.826e-06/0.7843, allocations: 8 kB / 0.9948 GB, free: 5.414 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.7849, allocations: 159.8 kB / 0.9949 GB, free: 5.258 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.7849, allocations: 8 kB / 0.9949 GB, free: 5.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.7854, allocations: 91.44 kB / 0.995 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.236e-05/0.7854, allocations: 31.98 kB / 0.9951 GB, free: 5.129 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (70): * Single equations (assignments): 69 * 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.0002761/0.7857, allocations: 279.9 kB / 0.9953 GB, free: 4.848 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-05/0.7858, allocations: 63.25 kB / 0.9954 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.7872, allocations: 0.6761 MB / 0.996 GB, free: 4.094 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.7872, allocations: 4 kB / 0.9961 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.7872, allocations: 0 / 0.9961 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.7873, allocations: 7.984 kB / 0.9961 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.7895, allocations: 1.394 MB / 0.9974 GB, free: 2.617 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.7895, allocations: 0 / 0.9974 GB, free: 2.617 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.7899, allocations: 91.88 kB / 0.9975 GB, free: 2.527 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000365/0.7903, allocations: 136.9 kB / 0.9976 GB, free: 2.391 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.7903, allocations: 12 kB / 0.9977 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005549/0.7909, allocations: 0.6343 MB / 0.9983 GB, free: 1.719 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7909, allocations: 7.875 kB / 0.9983 GB, free: 1.711 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.7921, allocations: 0.728 MB / 0.999 GB, free: 0.9531 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.7924, allocations: 200.1 kB / 0.9992 GB, free: 0.7383 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/0.7924, allocations: 8 kB / 0.9992 GB, free: 0.7305 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003982/0.7929, allocations: 52.02 kB / 0.9992 GB, free: 0.6797 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.84e-05/0.7929, allocations: 39.95 kB / 0.9993 GB, free: 0.6406 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.793, allocations: 23.94 kB / 0.9993 GB, free: 0.6172 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004267/0.7934, allocations: 395.1 kB / 0.9997 GB, free: 244 kB / 0.7481 GB Notification: Performance of sort global known variables: time 4.61e-07/0.7934, allocations: 0 / 0.9997 GB, free: 244 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001114/0.7945, allocations: 391.3 kB / 1 GB, free: 15.85 MB / 0.7637 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 (41): * Single equations (assignments): 38 * 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: 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00198/0.7965, allocations: 1.462 MB / 1.001 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001916/0.7985, allocations: 0.922 MB / 1.002 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.7985, allocations: 3.938 kB / 1.002 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006474/0.7991, allocations: 299.7 kB / 1.003 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.8004, allocations: 265.1 kB / 1.003 GB, free: 12.89 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005804/0.8063, allocations: 3.79 MB / 1.007 GB, free: 8.973 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.8068, allocations: 0.912 MB / 1.008 GB, free: 8.035 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006121/0.8074, allocations: 150.3 kB / 1.008 GB, free: 7.891 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003378/0.8077, allocations: 251.3 kB / 1.008 GB, free: 7.645 MB / 0.7637 GB Notification: Performance of SimCode: time 5.91e-07/0.8077, allocations: 0 / 1.008 GB, free: 7.645 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/0.8408, allocations: 17.76 MB / 1.025 GB, free: 6.285 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/0.841, allocations: 272.7 kB / 1.025 GB, free: 5.934 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/3.143, allocations: 0 / 1.025 GB, free: 5.934 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat does not exist to compare? outputFormat=mat