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.00123/0.00123, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001494/0.001494, allocations: 177.3 kB / 15.94 MB, free: 228 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.454/1.454, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.408/2.408, allocations: 390.3 MB / 0.6653 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003898, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.716/0.7164, allocations: 142.3 MB / 0.9536 GB, free: 8.305 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01637/0.7328, allocations: 16.31 MB / 0.9695 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0082/0.7411, allocations: 4.473 MB / 0.9739 GB, free: 7.891 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.7421, allocations: 15.91 kB / 0.9739 GB, free: 7.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008607/0.743, allocations: 249.7 kB / 0.9741 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.003053/0.7461, allocations: 0.8167 MB / 0.9749 GB, free: 6.988 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002638/0.7487, allocations: 0.9298 MB / 0.9758 GB, free: 6.359 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001811/0.7506, allocations: 0.9568 MB / 0.9768 GB, free: 5.738 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007124/0.7513, allocations: 420 kB / 0.9772 GB, free: 5.473 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001035/0.7523, allocations: 0.509 MB / 0.9777 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005384/0.7529, allocations: 400.4 kB / 0.9781 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.901e-05/0.753, allocations: 28.91 kB / 0.9781 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.7544, allocations: 0.6346 MB / 0.9787 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.7546, allocations: 138.6 kB / 0.9788 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.7548, allocations: 153.6 kB / 0.979 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.756, allocations: 0.7469 MB / 0.9797 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.756, allocations: 0 / 0.9797 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.426e-06/0.756, allocations: 0 / 0.9797 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.522e-05/0.756, allocations: 0.9375 kB / 0.9797 GB, free: 3.938 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.002162/0.7582, allocations: 0.994 MB / 0.9807 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.7583, allocations: 8.875 kB / 0.9807 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.7584, allocations: 86.42 kB / 0.9808 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.7585, allocations: 83.28 kB / 0.9809 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008342/0.7594, allocations: 488.4 kB / 0.9813 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.7594, allocations: 38.31 kB / 0.9814 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.7595, allocations: 55.72 kB / 0.9814 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.7607, allocations: 0.6262 MB / 0.982 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.7608, allocations: 9.188 kB / 0.982 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.032e-05/0.7608, allocations: 22.47 kB / 0.982 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.003e-05/0.7608, allocations: 11.47 kB / 0.9821 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.762, allocations: 0.51 MB / 0.9826 GB, free: 1.848 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.003785/0.7658, allocations: 3.208 MB / 0.9857 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007207/0.7666, allocations: 358.9 kB / 0.986 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/0.7669, allocations: 344.4 kB / 0.9864 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.767, allocations: 34.56 kB / 0.9864 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=38): time 2.134e-06/0.767, allocations: 0 / 0.9864 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of matching and sorting (n=38): time 0.002283/0.7693, allocations: 0.8706 MB / 0.9872 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.7693, allocations: 59.16 kB / 0.9873 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007217/0.7701, allocations: 0.59 MB / 0.9879 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.7701, allocations: 33.7 kB / 0.9879 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.7704, allocations: 328.4 kB / 0.9882 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.7705, allocations: 130.2 kB / 0.9883 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.7705, allocations: 12 kB / 0.9884 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.7707, allocations: 366.8 kB / 0.9887 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/0.7712, allocations: 221.2 kB / 0.9889 GB, free: 11.53 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006176/0.7719, allocations: 376 kB / 0.9893 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005411/0.7724, allocations: 260.6 kB / 0.9895 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.7724, allocations: 4 kB / 0.9895 GB, free: 10.84 MB / 0.7481 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001497/0.7739, allocations: 0.7303 MB / 0.9902 GB, free: 10.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008582/0.7748, allocations: 1.744 MB / 0.9919 GB, free: 8.219 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.7748, allocations: 4 kB / 0.9919 GB, free: 8.215 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006946/0.7755, allocations: 148.8 kB / 0.9921 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000679/0.7762, allocations: 159.8 kB / 0.9922 GB, free: 7.91 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006866/0.7769, allocations: 0.6265 MB / 0.9929 GB, free: 7.258 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000742/0.7777, allocations: 99.39 kB / 0.9929 GB, free: 7.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.939e-05/0.7777, allocations: 35.98 kB / 0.993 GB, free: 7.125 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.7778, allocations: 4 kB / 0.993 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/0.779, allocations: 0.6194 MB / 0.9936 GB, free: 6.5 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.779, allocations: 4 kB / 0.9936 GB, free: 6.496 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.779, allocations: 12.03 kB / 0.9936 GB, free: 6.484 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.7796, allocations: 159.7 kB / 0.9938 GB, free: 6.328 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/0.7796, allocations: 11.98 kB / 0.9938 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005414/0.7802, allocations: 95.39 kB / 0.9939 GB, free: 6.223 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.7802, allocations: 31.98 kB / 0.9939 GB, free: 6.191 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.0003495/0.7806, allocations: 268.9 kB / 0.9941 GB, free: 5.918 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.7807, allocations: 71.25 kB / 0.9942 GB, free: 5.848 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.7822, allocations: 0.6796 MB / 0.9949 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.7822, allocations: 7.984 kB / 0.9949 GB, free: 5.148 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.7822, allocations: 0 / 0.9949 GB, free: 5.148 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.7823, allocations: 4 kB / 0.9949 GB, free: 5.145 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.7847, allocations: 1.402 MB / 0.9963 GB, free: 3.672 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.7847, allocations: 3.938 kB / 0.9963 GB, free: 3.668 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000346/0.7851, allocations: 87.89 kB / 0.9963 GB, free: 3.582 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004393/0.7855, allocations: 136.9 kB / 0.9965 GB, free: 3.445 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.7856, allocations: 11.98 kB / 0.9965 GB, free: 3.434 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006282/0.7862, allocations: 0.6343 MB / 0.9971 GB, free: 2.773 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.7862, allocations: 7.922 kB / 0.9971 GB, free: 2.766 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.7875, allocations: 0.7565 MB / 0.9979 GB, free: 1.961 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002969/0.7878, allocations: 200.1 kB / 0.998 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.783e-05/0.7879, allocations: 15.94 kB / 0.9981 GB, free: 1.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/0.7884, allocations: 59.88 kB / 0.9981 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.178e-05/0.7885, allocations: 23.97 kB / 0.9981 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.7885, allocations: 19.98 kB / 0.9982 GB, free: 1.629 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000464/0.789, allocations: 399.1 kB / 0.9985 GB, free: 1.246 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.789, allocations: 0 / 0.9985 GB, free: 1.246 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001245/0.7903, allocations: 391.3 kB / 0.9989 GB, free: 0.8633 MB / 0.7481 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.002257/0.7925, allocations: 1.71 MB / 1.001 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00208/0.7946, allocations: 0.9065 MB / 1.001 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.7946, allocations: 4 kB / 1.001 GB, free: 14.2 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000681/0.7953, allocations: 303.6 kB / 1.002 GB, free: 13.91 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.7968, allocations: 260.7 kB / 1.002 GB, free: 13.65 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004059/0.8008, allocations: 4.647 MB / 1.007 GB, free: 8.859 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.8014, allocations: 0.9236 MB / 1.007 GB, free: 7.91 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006112/0.802, allocations: 153.8 kB / 1.008 GB, free: 7.766 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003352/0.8023, allocations: 247.3 kB / 1.008 GB, free: 7.523 MB / 0.7637 GB Notification: Performance of SimCode: time 8.01e-07/0.8023, allocations: 0 / 1.008 GB, free: 7.523 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.8378, allocations: 17.42 MB / 1.025 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002128/0.8381, allocations: 277.6 kB / 1.025 GB, free: 6.133 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.293/3.131, allocations: 0 / 1.025 GB, free: 6.133 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