Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001805/0.001805, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7169/0.7169, allocations: 133.4 MB / 146.7 MB, free: 10.8 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 221.3 MB / 400.4 MB, free: 5.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008318/0.0008318, allocations: 88.86 kB / 483.3 MB, free: 5.887 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.287e-05, allocations: 2.656 kB / 0.5601 GB, free: 87.85 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1457, allocations: 82.3 MB / 0.6405 GB, free: 7.73 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.255/1.401, allocations: 362.9 MB / 0.9949 GB, free: 258 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/1.401, allocations: 94.44 kB / 0.995 GB, free: 258 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.9698/2.371, allocations: 307.4 MB / 1.295 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.002e-06/2.371, allocations: 3.25 kB / 1.295 GB, free: 167.8 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001175/2.371, allocations: 28.34 kB / 1.295 GB, free: 167.8 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.00264/2.373, allocations: 1.252 MB / 1.296 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/2.373, allocations: 8.688 kB / 1.296 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002263/2.374, allocations: 99.05 kB / 1.297 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003472/2.374, allocations: 118.8 kB / 1.297 GB, free: 167 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/2.375, allocations: 0.6666 MB / 1.297 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/2.376, allocations: 49.25 kB / 1.297 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/2.376, allocations: 71.19 kB / 1.297 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009828/2.377, allocations: 0.6525 MB / 1.298 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/2.377, allocations: 4.719 kB / 1.298 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.526e-05/2.377, allocations: 22 kB / 1.298 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/2.377, allocations: 15.84 kB / 1.298 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006963/2.378, allocations: 433.4 kB / 1.298 GB, free: 166.6 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.003642/2.381, allocations: 2.611 MB / 1.301 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005173/2.382, allocations: 338.1 kB / 1.301 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/2.382, allocations: 191.2 kB / 1.302 GB, free: 165.3 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002611/2.382, allocations: 340.8 kB / 1.302 GB, free: 164.9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004114/2.383, allocations: 335 kB / 1.302 GB, free: 164.8 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/2.383, allocations: 0 / 1.302 GB, free: 164.8 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001019/2.384, allocations: 0.5657 MB / 1.303 GB, free: 164.7 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/2.384, allocations: 248.6 kB / 1.303 GB, free: 164.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008466/2.385, allocations: 0.7187 MB / 1.304 GB, free: 164.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.331e-05/2.385, allocations: 42.98 kB / 1.304 GB, free: 164.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.00028/2.385, allocations: 440.4 kB / 1.304 GB, free: 164 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/2.385, allocations: 121.5 kB / 1.304 GB, free: 164 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/2.385, allocations: 10.91 kB / 1.304 GB, free: 164 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 6.256e-05/2.385, allocations: 331.8 kB / 1.305 GB, free: 163.7 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/2.386, allocations: 193 kB / 1.305 GB, free: 163.7 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/2.386, allocations: 402.2 kB / 1.305 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003544/2.386, allocations: 259.6 kB / 1.305 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/2.386, allocations: 0 / 1.305 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001063/2.387, allocations: 0.744 MB / 1.306 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002605/2.388, allocations: 1.093 MB / 1.307 GB, free: 162.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/2.388, allocations: 3.906 kB / 1.307 GB, free: 162.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/2.388, allocations: 3.562 kB / 1.307 GB, free: 162.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008994/2.389, allocations: 153.4 kB / 1.307 GB, free: 162.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006927/2.389, allocations: 1.79 MB / 1.309 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008448/2.39, allocations: 126.4 kB / 1.309 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.599e-05/2.39, allocations: 33.67 kB / 1.309 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/2.39, allocations: 8.641 kB / 1.309 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009074/2.391, allocations: 0.6464 MB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/2.391, allocations: 3.906 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/2.391, allocations: 7.625 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005197/2.392, allocations: 138.8 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/2.392, allocations: 3.938 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007572/2.393, allocations: 126.7 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.01e-05/2.393, allocations: 25.5 kB / 1.31 GB, free: 160.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001723/2.393, allocations: 182.7 kB / 1.31 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/2.393, allocations: 94.08 kB / 1.31 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/2.394, allocations: 0.7088 MB / 1.311 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.739e-06/2.394, allocations: 7.734 kB / 1.311 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/2.394, allocations: 2.875 kB / 1.311 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.495e-06/2.394, allocations: 3 kB / 1.311 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/2.396, allocations: 1.56 MB / 1.313 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/2.396, allocations: 2.844 kB / 1.313 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004078/2.396, allocations: 94.05 kB / 1.313 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/2.396, allocations: 3.781 kB / 1.313 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/2.397, allocations: 19.3 kB / 1.313 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005147/2.397, allocations: 1.769 MB / 1.315 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/2.397, allocations: 3.938 kB / 1.315 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/2.398, allocations: 1.203 MB / 1.316 GB, free: 157.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000344/2.399, allocations: 236 kB / 1.316 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/2.399, allocations: 19.39 kB / 1.316 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006424/2.399, allocations: 76.48 kB / 1.316 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/2.4, allocations: 50.91 kB / 1.316 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/2.4, allocations: 22.73 kB / 1.316 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0006123/2.4, allocations: 0.5617 MB / 1.317 GB, free: 157 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.4e-07/2.4, allocations: 0 / 1.317 GB, free: 157 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001466/2.402, allocations: 0.494 MB / 1.317 GB, free: 156.9 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002386/2.404, allocations: 2.294 MB / 1.319 GB, free: 155.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001699/2.406, allocations: 0.966 MB / 1.32 GB, free: 155.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/2.406, allocations: 3.938 kB / 1.32 GB, free: 155.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004762/2.406, allocations: 337 kB / 1.321 GB, free: 155.4 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/2.408, allocations: 369.5 kB / 1.321 GB, free: 155.4 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/2.411, allocations: 1.316 MB / 1.322 GB, free: 154.9 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/2.411, allocations: 1.023 MB / 1.323 GB, free: 154.2 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0009544/2.412, allocations: 209.1 kB / 1.323 GB, free: 154.2 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/2.413, allocations: 323.9 kB / 1.324 GB, free: 154.2 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/2.413, allocations: 0 / 1.324 GB, free: 154.2 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05435/2.467, allocations: 27.31 MB / 1.35 GB, free: 151.2 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/2.467, allocations: 217.6 kB / 1.351 GB, free: 151 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.912/5.38, allocations: 0 / 1.351 GB, free: 151 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)