Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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.TwoWayValveTRV,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",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.001127/0.001128, allocations: 175.1 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.8346/0.8346, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.358/1.358, allocations: 221.3 MB / 400.4 MB, free: 5.867 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.000789/0.0007893, allocations: 108.2 kB / 483.3 MB, free: 5.883 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.193e-05, allocations: 7.422 kB / 0.5601 GB, free: 87.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1348, allocations: 82.3 MB / 0.6405 GB, free: 7.73 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/1.197, allocations: 356.6 MB / 0.9888 GB, free: 259.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/1.197, allocations: 90.83 kB / 0.9889 GB, free: 259.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.9513/2.148, allocations: 294.5 MB / 1.276 GB, free: 169.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.282e-06/2.148, allocations: 0 / 1.276 GB, free: 169.1 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001041/2.148, allocations: 27.97 kB / 1.277 GB, free: 169.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001853/2.15, allocations: 0.901 MB / 1.277 GB, free: 168.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/2.15, allocations: 12.83 kB / 1.277 GB, free: 168.6 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/2.15, allocations: 72.53 kB / 1.277 GB, free: 168.6 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/2.151, allocations: 84.61 kB / 1.278 GB, free: 168.6 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/2.152, allocations: 0.5651 MB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/2.152, allocations: 32.36 kB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.956e-05/2.152, allocations: 50.55 kB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/2.152, allocations: 283.5 kB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/2.152, allocations: 3.891 kB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/2.152, allocations: 14.91 kB / 1.278 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/2.152, allocations: 15.84 kB / 1.279 GB, free: 168.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/2.153, allocations: 210.6 kB / 1.279 GB, free: 168.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.002237/2.155, allocations: 1.573 MB / 1.28 GB, free: 167.6 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/2.155, allocations: 208.6 kB / 1.28 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/2.155, allocations: 77.98 kB / 1.281 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002906/2.156, allocations: 422.2 kB / 1.281 GB, free: 167.1 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/2.156, allocations: 37.31 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 2.144e-06/2.156, allocations: 3.938 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of matching and sorting (n=20): time 0.0004294/2.156, allocations: 238.7 kB / 1.281 GB, free: 167 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/2.156, allocations: 55.16 kB / 1.281 GB, free: 166.9 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005637/2.157, allocations: 0.558 MB / 1.282 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/2.157, allocations: 36.95 kB / 1.282 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/2.157, allocations: 300.8 kB / 1.282 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 5.051e-05/2.157, allocations: 79.88 kB / 1.282 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.837e-05/2.157, allocations: 7.469 kB / 1.282 GB, free: 166.6 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.535e-05/2.157, allocations: 370.6 kB / 1.283 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/2.157, allocations: 111.7 kB / 1.283 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/2.158, allocations: 210.1 kB / 1.283 GB, free: 166.2 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/2.158, allocations: 155.5 kB / 1.283 GB, free: 166.2 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.158, allocations: 3.828 kB / 1.283 GB, free: 166.2 MB / 0.6823 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005622/2.158, allocations: 420.4 kB / 1.283 GB, free: 166.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.093e-05/2.159, allocations: 449.6 kB / 1.284 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/2.159, allocations: 3.938 kB / 1.284 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/2.159, allocations: 6.562 kB / 1.284 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000792/2.159, allocations: 133.9 kB / 1.284 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004629/2.16, allocations: 1.191 MB / 1.285 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005405/2.16, allocations: 68.22 kB / 1.285 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.221e-05/2.16, allocations: 19.06 kB / 1.285 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/2.16, allocations: 2.312 kB / 1.285 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004788/2.161, allocations: 331.8 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-06/2.161, allocations: 3.156 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.62e-06/2.161, allocations: 3.688 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004759/2.161, allocations: 118.4 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/2.161, allocations: 0 / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004057/2.162, allocations: 63.3 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/2.162, allocations: 25.48 kB / 1.286 GB, free: 164.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.462e-05/2.162, allocations: 130.7 kB / 1.286 GB, free: 164.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/2.162, allocations: 64.64 kB / 1.286 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005129/2.163, allocations: 309.2 kB / 1.286 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/2.163, allocations: 3.562 kB / 1.286 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/2.163, allocations: 0 / 1.286 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/2.163, allocations: 3.469 kB / 1.286 GB, free: 164.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/2.164, allocations: 0.8915 MB / 1.287 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/2.164, allocations: 3.969 kB / 1.287 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/2.164, allocations: 62.83 kB / 1.287 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.299e-06/2.164, allocations: 0 / 1.287 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/2.164, allocations: 7.5 kB / 1.287 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003447/2.164, allocations: 1.191 MB / 1.288 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/2.164, allocations: 3.156 kB / 1.288 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/2.165, allocations: 0.5394 MB / 1.289 GB, free: 162.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/2.165, allocations: 177.6 kB / 1.289 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.908e-05/2.165, allocations: 3.844 kB / 1.289 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000334/2.166, allocations: 31.98 kB / 1.289 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/2.166, allocations: 25.38 kB / 1.289 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/2.166, allocations: 14.34 kB / 1.289 GB, free: 162.4 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0004117/2.166, allocations: 443.1 kB / 1.29 GB, free: 162.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/2.166, allocations: 0 / 1.29 GB, free: 162.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0008891/2.167, allocations: 329.7 kB / 1.29 GB, free: 162.2 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001229/2.168, allocations: 1.612 MB / 1.291 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0009428/2.169, allocations: 493.8 kB / 1.292 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/2.169, allocations: 2.438 kB / 1.292 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/2.169, allocations: 127.2 kB / 1.292 GB, free: 161.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/2.171, allocations: 290.1 kB / 1.292 GB, free: 161.1 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/2.172, allocations: 0.8933 MB / 1.293 GB, free: 160.8 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/2.172, allocations: 0.9028 MB / 1.294 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000564/2.173, allocations: 159.9 kB / 1.294 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/2.173, allocations: 208.2 kB / 1.294 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of SimCode: time 6.51e-07/2.173, allocations: 3 kB / 1.294 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03102/2.204, allocations: 19.63 MB / 1.314 GB, free: 159.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001408/2.204, allocations: 229 kB / 1.314 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.627/4.831, allocations: 0 / 1.314 GB, free: 159.5 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1)