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.001473/0.001473, allocations: 178.4 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7666/0.7666, allocations: 133.5 MB / 141.6 MB, free: 2.867 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 221.5 MB / 395.4 MB, free: 10.79 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.0009335/0.0009333, allocations: 101.8 kB / 478.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.079e-05/2.08e-05, allocations: 4 kB / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4214, allocations: 82.3 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7732/1.195, allocations: 362.2 MB / 0.9876 GB, free: 6.258 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002298/1.195, allocations: 102 kB / 0.9877 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.9653/2.16, allocations: 305.1 MB / 1.286 GB, free: 53.09 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.483e-06/2.16, allocations: 0 / 1.286 GB, free: 53.09 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001072/2.16, allocations: 27.98 kB / 1.286 GB, free: 53.06 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.002574/2.163, allocations: 1.248 MB / 1.287 GB, free: 51.76 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/2.163, allocations: 11.97 kB / 1.287 GB, free: 51.75 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003573/2.163, allocations: 122.6 kB / 1.287 GB, free: 51.62 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/2.165, allocations: 0.66 MB / 1.288 GB, free: 50.92 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/2.165, allocations: 24 kB / 1.288 GB, free: 50.9 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/2.165, allocations: 43.94 kB / 1.288 GB, free: 50.86 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006664/2.166, allocations: 394.5 kB / 1.288 GB, free: 50.47 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007967/2.166, allocations: 0.5779 MB / 1.289 GB, free: 49.85 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/2.166, allocations: 4 kB / 1.289 GB, free: 49.85 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.258e-05/2.166, allocations: 3.953 kB / 1.289 GB, free: 49.84 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/2.166, allocations: 16 kB / 1.289 GB, free: 49.83 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.003036/2.169, allocations: 2.467 MB / 1.291 GB, free: 47.24 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/2.17, allocations: 339.2 kB / 1.291 GB, free: 46.89 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/2.17, allocations: 188.8 kB / 1.292 GB, free: 46.71 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002326/2.17, allocations: 340.4 kB / 1.292 GB, free: 46.3 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003612/2.171, allocations: 329.4 kB / 1.292 GB, free: 45.95 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/2.171, allocations: 4 kB / 1.292 GB, free: 45.94 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001372/2.172, allocations: 0.5964 MB / 1.293 GB, free: 45.34 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/2.172, allocations: 247.5 kB / 1.293 GB, free: 45.04 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005428/2.173, allocations: 0.5985 MB / 1.294 GB, free: 44.44 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.781e-05/2.173, allocations: 29.7 kB / 1.294 GB, free: 44.4 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000212/2.173, allocations: 444.3 kB / 1.294 GB, free: 43.96 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.096e-05/2.173, allocations: 114.3 kB / 1.294 GB, free: 43.85 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/2.173, allocations: 4 kB / 1.294 GB, free: 43.84 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 5.917e-05/2.173, allocations: 333.9 kB / 1.295 GB, free: 43.51 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/2.173, allocations: 185.1 kB / 1.295 GB, free: 43.33 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003251/2.174, allocations: 391.2 kB / 1.295 GB, free: 42.87 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/2.175, allocations: 309.7 kB / 1.295 GB, free: 42.57 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/2.175, allocations: 0 / 1.295 GB, free: 42.57 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001326/2.176, allocations: 0.7551 MB / 1.296 GB, free: 41.81 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002049/2.176, allocations: 1.083 MB / 1.297 GB, free: 40.64 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/2.176, allocations: 4 kB / 1.297 GB, free: 40.63 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/2.176, allocations: 8 kB / 1.297 GB, free: 40.62 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009156/2.177, allocations: 163.7 kB / 1.297 GB, free: 40.46 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006685/2.178, allocations: 1.791 MB / 1.299 GB, free: 38.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000792/2.179, allocations: 111.5 kB / 1.299 GB, free: 38.5 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/2.179, allocations: 35.88 kB / 1.299 GB, free: 38.46 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/2.179, allocations: 4 kB / 1.299 GB, free: 38.46 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001187/2.18, allocations: 0.6449 MB / 1.3 GB, free: 37.81 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/2.18, allocations: 4 kB / 1.3 GB, free: 37.81 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.733e-06/2.18, allocations: 8 kB / 1.3 GB, free: 37.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/2.18, allocations: 127.8 kB / 1.3 GB, free: 37.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/2.18, allocations: 8 kB / 1.3 GB, free: 37.67 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000647/2.181, allocations: 99.64 kB / 1.3 GB, free: 37.57 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.982e-05/2.181, allocations: 31.98 kB / 1.3 GB, free: 37.54 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 (65): * Single equations (assignments): 61 * 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.0001617/2.181, allocations: 156.2 kB / 1.3 GB, free: 37.38 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001174/2.182, allocations: 0.6129 MB / 1.301 GB, free: 36.75 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.808e-05/2.183, allocations: 86.92 kB / 1.301 GB, free: 36.67 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/2.184, allocations: 0.7176 MB / 1.302 GB, free: 35.95 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/2.184, allocations: 8.078 kB / 1.302 GB, free: 35.94 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/2.184, allocations: 4 kB / 1.302 GB, free: 35.93 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/2.184, allocations: 3.984 kB / 1.302 GB, free: 35.93 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/2.186, allocations: 1.519 MB / 1.303 GB, free: 34.36 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/2.186, allocations: 0 / 1.303 GB, free: 34.36 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004161/2.186, allocations: 104 kB / 1.303 GB, free: 34.25 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/2.187, allocations: 4 kB / 1.303 GB, free: 34.25 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/2.187, allocations: 8 kB / 1.303 GB, free: 34.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004647/2.187, allocations: 1.774 MB / 1.305 GB, free: 32.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/2.187, allocations: 0 / 1.305 GB, free: 32.4 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/2.189, allocations: 1.213 MB / 1.306 GB, free: 31.14 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/2.189, allocations: 231.7 kB / 1.306 GB, free: 30.89 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/2.189, allocations: 7.984 kB / 1.306 GB, free: 30.88 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005845/2.19, allocations: 60 kB / 1.306 GB, free: 30.82 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/2.19, allocations: 59.86 kB / 1.307 GB, free: 30.77 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.915e-05/2.19, allocations: 23.98 kB / 1.307 GB, free: 30.74 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0004177/2.19, allocations: 455.1 kB / 1.307 GB, free: 30.3 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.1e-07/2.19, allocations: 0 / 1.307 GB, free: 30.3 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001436/2.192, allocations: 494.8 kB / 1.307 GB, free: 29.82 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.002361/2.194, allocations: 2.313 MB / 1.31 GB, free: 27.45 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001529/2.195, allocations: 0.9279 MB / 1.311 GB, free: 26.5 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/2.195, allocations: 0 / 1.311 GB, free: 26.5 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004055/2.196, allocations: 324.7 kB / 1.311 GB, free: 26.17 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/2.198, allocations: 300.6 kB / 1.311 GB, free: 25.89 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/2.2, allocations: 1.252 MB / 1.312 GB, free: 24.58 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/2.201, allocations: 1.03 MB / 1.313 GB, free: 23.52 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0007342/2.201, allocations: 188 kB / 1.314 GB, free: 23.34 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/2.202, allocations: 323.3 kB / 1.314 GB, free: 23.02 MB / 0.6823 GB Notification: Performance of SimCode: time 1.552e-06/2.202, allocations: 4 kB / 1.314 GB, free: 23.02 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04058/2.242, allocations: 22.69 MB / 1.336 GB, free: 0.5156 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/2.242, allocations: 168.6 kB / 1.336 GB, free: 328 kB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.774/5.017, allocations: 0 / 1.336 GB, free: 328 kB / 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)