Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.00117/0.00117, allocations: 99.55 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.001061/0.001062, 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.348/1.348, allocations: 223.2 MB / 239.9 MB, free: 5.324 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.361/2.361, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003928/0.0003932, allocations: 12 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7884/0.7888, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01214/0.801, allocations: 13.1 MB / 0.9664 GB, free: 13.79 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005699/0.8068, allocations: 3.736 MB / 0.97 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005611/0.8074, allocations: 14.84 kB / 0.97 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009763/0.8084, allocations: 251.7 kB / 0.9703 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.8102, allocations: 0.6275 MB / 0.9709 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.8124, allocations: 0.7608 MB / 0.9716 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001136/0.8135, allocations: 0.6336 MB / 0.9723 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000466/0.814, allocations: 276 kB / 0.9725 GB, free: 9.012 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006268/0.8147, allocations: 346.5 kB / 0.9729 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003432/0.815, allocations: 235.5 kB / 0.9731 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.708e-05/0.8151, allocations: 14.34 kB / 0.9731 GB, free: 8.664 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009341/0.816, allocations: 394.2 kB / 0.9735 GB, free: 8.488 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.8161, allocations: 86.64 kB / 0.9736 GB, free: 8.426 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.8162, allocations: 110.2 kB / 0.9737 GB, free: 8.352 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0006101/0.8169, allocations: 480.1 kB / 0.9741 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.8169, allocations: 0 / 0.9741 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.283e-06/0.8169, allocations: 1.062 kB / 0.9741 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.8169, allocations: 0 / 0.9741 GB, free: 8.051 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.00114/0.818, allocations: 0.7407 MB / 0.9748 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.8181, allocations: 9.156 kB / 0.9748 GB, free: 7.402 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.317e-05/0.8182, allocations: 54.14 kB / 0.9749 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.8183, allocations: 57.36 kB / 0.975 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005946/0.8189, allocations: 401.7 kB / 0.9753 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.8189, allocations: 20.66 kB / 0.9754 GB, free: 6.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.8189, allocations: 26.69 kB / 0.9754 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.8194, allocations: 219.6 kB / 0.9756 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.8194, allocations: 0 / 0.9756 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.477e-05/0.8195, allocations: 10.06 kB / 0.9756 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.8195, allocations: 5.188 kB / 0.9756 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.8199, allocations: 169.7 kB / 0.9758 GB, free: 6.738 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.001688/0.8216, allocations: 0.9561 MB / 0.9767 GB, free: 5.938 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.8219, allocations: 139.5 kB / 0.9768 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.8222, allocations: 331.2 kB / 0.9772 GB, free: 5.477 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.8222, allocations: 31.75 kB / 0.9772 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.8223, allocations: 1.125 kB / 0.9772 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006593/0.8229, allocations: 265.6 kB / 0.9774 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.823, allocations: 53.47 kB / 0.9775 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.8235, allocations: 474.2 kB / 0.9779 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.8235, allocations: 28.67 kB / 0.978 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.8237, allocations: 233.4 kB / 0.9782 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.8238, allocations: 48.17 kB / 0.9782 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.057e-05/0.8238, allocations: 5.5 kB / 0.9782 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.8239, allocations: 356.3 kB / 0.9786 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.8241, allocations: 67.36 kB / 0.9786 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.8244, allocations: 150 kB / 0.9788 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.8246, allocations: 99.08 kB / 0.9789 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.8246, allocations: 0.8125 kB / 0.9789 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004899/0.8251, allocations: 253.1 kB / 0.9791 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.8252, allocations: 278.4 kB / 0.9794 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.8252, allocations: 1.125 kB / 0.9794 GB, free: 3.707 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.8252, allocations: 9.234 kB / 0.9794 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.8255, allocations: 57.84 kB / 0.9795 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.8255, allocations: 2.5 kB / 0.9795 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.8258, allocations: 47.16 kB / 0.9795 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.8259, allocations: 7.094 kB / 0.9795 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/0.8259, allocations: 3.75 kB / 0.9795 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004129/0.8263, allocations: 193.9 kB / 0.9797 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-06/0.8263, allocations: 1.531 kB / 0.9797 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.986e-06/0.8263, allocations: 1.594 kB / 0.9797 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001959/0.8265, allocations: 52.25 kB / 0.9798 GB, free: 3.551 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.8266, allocations: 6.984 kB / 0.9798 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/0.8269, allocations: 42.72 kB / 0.9798 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.8269, allocations: 10.92 kB / 0.9798 GB, free: 3.52 MB / 0.7325 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.000217/0.8271, allocations: 236.9 kB / 0.98 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.427e-05/0.8272, allocations: 43.38 kB / 0.9801 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005488/0.8277, allocations: 263.2 kB / 0.9803 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.8278, allocations: 2.188 kB / 0.9803 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.8278, allocations: 0 / 0.9803 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.8278, allocations: 9.359 kB / 0.9803 GB, free: 3.113 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009867/0.8288, allocations: 0.7094 MB / 0.981 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.8288, allocations: 1.062 kB / 0.981 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.8289, allocations: 36.45 kB / 0.9811 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.8289, allocations: 2.094 kB / 0.9811 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.829, allocations: 3.469 kB / 0.9811 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.829, allocations: 1.281 kB / 0.9811 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.829, allocations: 1.656 kB / 0.9811 GB, free: 2.516 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004958/0.8295, allocations: 415.4 kB / 0.9815 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.8296, allocations: 146.7 kB / 0.9816 GB, free: 2.023 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.547e-05/0.8297, allocations: 6.656 kB / 0.9816 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.8299, allocations: 25.03 kB / 0.9816 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.293e-05/0.83, allocations: 13.98 kB / 0.9817 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.83, allocations: 5.438 kB / 0.9817 GB, free: 2 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003536/0.8304, allocations: 329.2 kB / 0.982 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8304, allocations: 0 / 0.982 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007029/0.8311, allocations: 202 kB / 0.9822 GB, free: 1.758 MB / 0.7325 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 14 * 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.001841/0.8329, allocations: 1.581 MB / 0.9837 GB, free: 492 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006651/0.8336, allocations: 281.5 kB / 0.984 GB, free: 380 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8336, allocations: 0 / 0.984 GB, free: 380 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.8338, allocations: 89.2 kB / 0.9841 GB, free: 344 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.835, allocations: 220.5 kB / 0.9843 GB, free: 232 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.8368, allocations: 1.478 MB / 0.9857 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.8371, allocations: 0.835 MB / 0.9865 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003193/0.8375, allocations: 99.11 kB / 0.9866 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.8377, allocations: 139.4 kB / 0.9868 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.8377, allocations: 0 / 0.9868 GB, free: 13.65 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.8655, allocations: 12 MB / 0.9985 GB, free: 1.918 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/0.8657, allocations: 235.5 kB / 0.9987 GB, free: 1.676 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.076/2.942, allocations: 0 / 0.9987 GB, free: 1.676 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat does not exist to compare? outputFormat=mat