Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.828/0.828, allocations: 141.8 MB / 149.3 MB, free: 9.199 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 184.8 kB / 182.2 MB, free: 9.438 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.578/1.578, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009348/0.0009347, allocations: 93.48 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001778/0.001778, allocations: 280.3 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.444e-05/2.446e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4173/0.4174, allocations: 82.78 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7534/1.171, allocations: 360.5 MB / 1.11 GB, free: 7.465 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/1.171, allocations: 92.7 kB / 1.11 GB, free: 7.418 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.6678/1.839, allocations: 177.5 MB / 1.283 GB, free: 142.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.583e-06/1.839, allocations: 0 / 1.283 GB, free: 142.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.566e-05/1.839, allocations: 19.98 kB / 1.283 GB, free: 142.1 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001086/1.84, allocations: 0.7824 MB / 1.284 GB, free: 141.3 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/1.84, allocations: 12.03 kB / 1.284 GB, free: 141.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/1.84, allocations: 59.34 kB / 1.284 GB, free: 141.2 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006307/1.841, allocations: 459.4 kB / 1.284 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/1.841, allocations: 8 kB / 1.284 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/1.841, allocations: 20 kB / 1.284 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002444/1.841, allocations: 141.1 kB / 1.284 GB, free: 140.6 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/1.842, allocations: 233.1 kB / 1.285 GB, free: 140.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/1.842, allocations: 0 / 1.285 GB, free: 140.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/1.842, allocations: 3.984 kB / 1.285 GB, free: 140.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/1.842, allocations: 4 kB / 1.285 GB, free: 140.3 MB / 0.6823 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.001529/1.843, allocations: 1.448 MB / 1.286 GB, free: 138.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001836/1.843, allocations: 138.9 kB / 1.286 GB, free: 138.6 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.109e-05/1.844, allocations: 64.84 kB / 1.286 GB, free: 138.6 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001232/1.845, allocations: 1.292 MB / 1.288 GB, free: 137.1 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/1.845, allocations: 34.56 kB / 1.288 GB, free: 137 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/1.845, allocations: 4 kB / 1.288 GB, free: 137 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.0004367/1.845, allocations: 174.7 kB / 1.288 GB, free: 136.9 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.801e-05/1.845, allocations: 63.3 kB / 1.288 GB, free: 136.8 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004184/1.846, allocations: 473.3 kB / 1.288 GB, free: 136.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/1.846, allocations: 25.7 kB / 1.288 GB, free: 136.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/1.846, allocations: 272.2 kB / 1.289 GB, free: 136 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/1.846, allocations: 47.3 kB / 1.289 GB, free: 136 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/1.846, allocations: 0 / 1.289 GB, free: 136 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.768e-05/1.846, allocations: 358.8 kB / 1.289 GB, free: 135.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.071e-05/1.846, allocations: 56.56 kB / 1.289 GB, free: 135.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/1.846, allocations: 197.2 kB / 1.289 GB, free: 135.3 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002204/1.846, allocations: 99.88 kB / 1.289 GB, free: 135.2 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.846, allocations: 0 / 1.289 GB, free: 135.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004204/1.847, allocations: 274.3 kB / 1.29 GB, free: 134.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001712/1.847, allocations: 0.9562 MB / 1.29 GB, free: 133.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/1.847, allocations: 4 kB / 1.29 GB, free: 133.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.847, allocations: 11.89 kB / 1.29 GB, free: 133.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/1.847, allocations: 67.89 kB / 1.291 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/1.847, allocations: 4 kB / 1.291 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/1.848, allocations: 43.72 kB / 1.291 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/1.848, allocations: 12 kB / 1.291 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.193e-06/1.848, allocations: 4 kB / 1.291 GB, free: 133.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003552/1.848, allocations: 196.7 kB / 1.291 GB, free: 133.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-06/1.848, allocations: 0 / 1.291 GB, free: 133.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.029e-06/1.848, allocations: 8 kB / 1.291 GB, free: 133.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/1.848, allocations: 63.91 kB / 1.291 GB, free: 133.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/1.848, allocations: 7.938 kB / 1.291 GB, free: 133.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/1.849, allocations: 40.06 kB / 1.291 GB, free: 133.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/1.849, allocations: 16 kB / 1.291 GB, free: 133.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 7.541e-05/1.849, allocations: 116.8 kB / 1.291 GB, free: 133.3 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002975/1.849, allocations: 170.6 kB / 1.291 GB, free: 133.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.417e-05/1.849, allocations: 51.34 kB / 1.291 GB, free: 133.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004355/1.85, allocations: 231.9 kB / 1.291 GB, free: 132.8 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/1.85, allocations: 7.953 kB / 1.291 GB, free: 132.8 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/1.85, allocations: 0 / 1.291 GB, free: 132.8 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/1.85, allocations: 0 / 1.291 GB, free: 132.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/1.85, allocations: 0.6828 MB / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/1.85, allocations: 3.953 kB / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/1.851, allocations: 35.92 kB / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/1.851, allocations: 0 / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/1.851, allocations: 4 kB / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.851, allocations: 0 / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.851, allocations: 4 kB / 1.292 GB, free: 132.1 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003417/1.851, allocations: 378.9 kB / 1.293 GB, free: 131.6 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/1.851, allocations: 160.4 kB / 1.293 GB, free: 131.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/1.851, allocations: 3.938 kB / 1.293 GB, free: 131.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/1.851, allocations: 19.89 kB / 1.293 GB, free: 131.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/1.851, allocations: 15.97 kB / 1.293 GB, free: 131.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/1.851, allocations: 4 kB / 1.293 GB, free: 131.4 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0003051/1.852, allocations: 370.9 kB / 1.293 GB, free: 131.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/1.852, allocations: 0 / 1.293 GB, free: 131.1 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0007968/1.853, allocations: 251.5 kB / 1.293 GB, free: 130.8 MB / 0.6823 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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.001523/1.854, allocations: 1.636 MB / 1.295 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004317/1.855, allocations: 288.4 kB / 1.295 GB, free: 128.9 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/1.855, allocations: 1 kB / 1.295 GB, free: 128.9 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.311e-05/1.855, allocations: 68.17 kB / 1.295 GB, free: 128.9 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/1.856, allocations: 228 kB / 1.295 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/1.857, allocations: 0.6964 MB / 1.296 GB, free: 127.9 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/1.858, allocations: 0.8631 MB / 1.297 GB, free: 127 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0005223/1.858, allocations: 175.9 kB / 1.297 GB, free: 126.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/1.858, allocations: 159.4 kB / 1.297 GB, free: 126.7 MB / 0.6823 GB Notification: Performance of SimCode: time 4.3e-07/1.858, allocations: 0 / 1.297 GB, free: 126.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/1.892, allocations: 14.1 MB / 1.311 GB, free: 112.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/1.892, allocations: 192.6 kB / 1.311 GB, free: 112.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/4.262, allocations: 0.9375 kB / 1.311 GB, free: 112.5 MB / 0.6823 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)