Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_dev_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.008643/0.008643, allocations: 170.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7949/0.7949, allocations: 135.2 MB / 151 MB, free: 13.82 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.636/1.636, allocations: 223.2 MB / 406.8 MB, free: 3.246 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.00114/0.00114, allocations: 95.69 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003733, allocations: 12 kB / 0.5692 GB, free: 14.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4337, allocations: 82.31 MB / 0.6495 GB, free: 36.13 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7498/1.183, allocations: 362.9 MB / 1.004 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003009/1.184, allocations: 98.19 kB / 1.004 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9004/2.084, allocations: 308.2 MB / 1.305 GB, free: 17.18 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.044e-06/2.084, allocations: 224 / 1.305 GB, free: 17.18 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.224e-05/2.084, allocations: 31.92 kB / 1.305 GB, free: 17.15 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.002707/2.087, allocations: 1.411 MB / 1.306 GB, free: 15.68 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/2.087, allocations: 12.03 kB / 1.306 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001582/2.087, allocations: 98.5 kB / 1.307 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000224/2.088, allocations: 122.5 kB / 1.307 GB, free: 15.44 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/2.089, allocations: 0.6756 MB / 1.307 GB, free: 14.72 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/2.089, allocations: 57.31 kB / 1.307 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.398e-05/2.089, allocations: 64 kB / 1.307 GB, free: 14.61 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009582/2.09, allocations: 0.6858 MB / 1.308 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/2.09, allocations: 0 / 1.308 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.288e-05/2.09, allocations: 24 kB / 1.308 GB, free: 13.86 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/2.09, allocations: 15.95 kB / 1.308 GB, free: 13.84 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007803/2.091, allocations: 484.9 kB / 1.309 GB, free: 13.37 MB / 0.6823 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.003341/2.094, allocations: 2.6 MB / 1.311 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007422/2.095, allocations: 411.2 kB / 1.312 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002183/2.095, allocations: 348.4 kB / 1.312 GB, free: 9.805 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004759/2.096, allocations: 361.4 kB / 1.312 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 2.425e-06/2.096, allocations: 0 / 1.312 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001474/2.097, allocations: 0.8784 MB / 1.313 GB, free: 8.508 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/2.097, allocations: 239.6 kB / 1.313 GB, free: 8.219 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007806/2.098, allocations: 0.7418 MB / 1.314 GB, free: 7.457 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.26e-05/2.098, allocations: 38.25 kB / 1.314 GB, free: 7.414 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000262/2.098, allocations: 440.4 kB / 1.315 GB, free: 6.977 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.911e-05/2.098, allocations: 130.3 kB / 1.315 GB, free: 6.848 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/2.098, allocations: 12 kB / 1.315 GB, free: 6.836 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.657e-05/2.099, allocations: 329.9 kB / 1.315 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004267/2.099, allocations: 225.1 kB / 1.315 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004725/2.099, allocations: 428.7 kB / 1.316 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/2.1, allocations: 290 kB / 1.316 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/2.1, allocations: 4 kB / 1.316 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001311/2.101, allocations: 0.7993 MB / 1.317 GB, free: 4.684 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/2.102, allocations: 1.076 MB / 1.318 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/2.102, allocations: 4 kB / 1.318 GB, free: 3.516 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/2.102, allocations: 11.98 kB / 1.318 GB, free: 3.504 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008904/2.102, allocations: 151.8 kB / 1.318 GB, free: 3.355 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007618/2.103, allocations: 1.785 MB / 1.32 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008311/2.104, allocations: 131.4 kB / 1.32 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.34e-05/2.104, allocations: 31.98 kB / 1.32 GB, free: 1.34 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/2.104, allocations: 4 kB / 1.32 GB, free: 1.336 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001139/2.105, allocations: 0.7128 MB / 1.32 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/2.105, allocations: 0 / 1.32 GB, free: 0.6172 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/2.105, allocations: 8 kB / 1.32 GB, free: 0.6094 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/2.106, allocations: 131.8 kB / 1.321 GB, free: 492 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/2.106, allocations: 15.92 kB / 1.321 GB, free: 476 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/2.107, allocations: 115.7 kB / 1.321 GB, free: 360 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/2.107, allocations: 35.98 kB / 1.321 GB, free: 324 kB / 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 () * Number of clocked 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.3578/2.464, allocations: 341.5 kB / 1.321 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/2.465, allocations: 94.61 kB / 1.321 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002166/2.467, allocations: 0.7454 MB / 1.322 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/2.467, allocations: 11.55 kB / 1.322 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/2.467, allocations: 0.875 kB / 1.322 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/2.467, allocations: 2.578 kB / 1.322 GB, free: 165.5 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002995/2.47, allocations: 1.627 MB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/2.47, allocations: 4.188 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/2.471, allocations: 99.72 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.998e-06/2.471, allocations: 3.594 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.396e-05/2.471, allocations: 18.91 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005853/2.471, allocations: 1.766 MB / 1.325 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/2.471, allocations: 1.625 kB / 1.325 GB, free: 163.3 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/2.473, allocations: 1.289 MB / 1.327 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000441/2.474, allocations: 235.5 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/2.474, allocations: 14.94 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006407/2.475, allocations: 72.98 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/2.475, allocations: 49.7 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.326e-05/2.475, allocations: 21.89 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0008853/2.476, allocations: 0.5684 MB / 1.328 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.3e-07/2.476, allocations: 0 / 1.328 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001759/2.478, allocations: 0.4986 MB / 1.328 GB, free: 162.6 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) * Number of clocked states: 0 () * 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.00315/2.481, allocations: 2.392 MB / 1.33 GB, free: 161.4 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002216/2.483, allocations: 1.027 MB / 1.331 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/2.483, allocations: 0 / 1.331 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006271/2.484, allocations: 357.3 kB / 1.332 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/2.486, allocations: 364.5 kB / 1.332 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/2.49, allocations: 3.902 MB / 1.336 GB, free: 158.4 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/2.491, allocations: 1.026 MB / 1.337 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0007824/2.491, allocations: 151.7 kB / 1.337 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/2.492, allocations: 341.9 kB / 1.337 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of SimCode: time 1.312e-06/2.492, allocations: 3.844 kB / 1.337 GB, free: 157.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04369/2.535, allocations: 25.29 MB / 1.362 GB, free: 157.4 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/2.536, allocations: 249.2 kB / 1.362 GB, free: 157 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.792/5.327, allocations: 0 / 1.362 GB, free: 157 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)