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.001589/0.001588, allocations: 171.9 kB / 7.646 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 1.288/1.288, allocations: 133.6 MB / 141.6 MB, free: 2.926 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.634/2.634, allocations: 221.5 MB / 395.4 MB, free: 10.75 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.001286/0.001286, allocations: 102.8 kB / 478.2 MB, free: 1.281 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.608e-05/2.609e-05, allocations: 4 kB / 0.5536 GB, free: 8.926 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6681/0.6681, allocations: 82.3 MB / 0.6339 GB, free: 40.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.297/1.965, allocations: 362.2 MB / 0.9876 GB, free: 6.227 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004902/1.966, allocations: 95.44 kB / 0.9877 GB, free: 6.176 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 1.624/3.59, allocations: 305.1 MB / 1.286 GB, free: 53.03 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.795e-06/3.59, allocations: 0 / 1.286 GB, free: 53.03 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001989/3.59, allocations: 27.98 kB / 1.286 GB, free: 53 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.005289/3.596, allocations: 1.252 MB / 1.287 GB, free: 51.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 8.06e-05/3.596, allocations: 16.03 kB / 1.287 GB, free: 51.68 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007797/3.597, allocations: 118.6 kB / 1.287 GB, free: 51.56 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/3.599, allocations: 0.6678 MB / 1.288 GB, free: 50.85 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/3.6, allocations: 16 kB / 1.288 GB, free: 50.84 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000309/3.6, allocations: 40 kB / 1.288 GB, free: 50.8 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001492/3.601, allocations: 402.5 kB / 1.288 GB, free: 50.4 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/3.603, allocations: 0.5701 MB / 1.289 GB, free: 49.79 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/3.603, allocations: 3.938 kB / 1.289 GB, free: 49.79 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/3.603, allocations: 7.953 kB / 1.289 GB, free: 49.78 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/3.603, allocations: 12 kB / 1.289 GB, free: 49.77 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.006607/3.61, allocations: 2.475 MB / 1.291 GB, free: 47.17 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/3.611, allocations: 335.2 kB / 1.291 GB, free: 46.83 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/3.611, allocations: 184.8 kB / 1.292 GB, free: 46.65 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004564/3.612, allocations: 344.4 kB / 1.292 GB, free: 46.24 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006818/3.612, allocations: 321.5 kB / 1.292 GB, free: 45.89 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 7.694e-06/3.612, allocations: 0 / 1.292 GB, free: 45.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.002934/3.615, allocations: 0.612 MB / 1.293 GB, free: 45.27 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/3.616, allocations: 239.5 kB / 1.293 GB, free: 44.98 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001416/3.617, allocations: 0.5946 MB / 1.294 GB, free: 44.38 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.000129/3.617, allocations: 29.7 kB / 1.294 GB, free: 44.35 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005624/3.618, allocations: 456.3 kB / 1.294 GB, free: 43.89 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/3.618, allocations: 110.4 kB / 1.294 GB, free: 43.79 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/3.618, allocations: 3.938 kB / 1.294 GB, free: 43.78 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001198/3.618, allocations: 333.9 kB / 1.295 GB, free: 43.45 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004994/3.619, allocations: 189.1 kB / 1.295 GB, free: 43.27 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007135/3.619, allocations: 379.3 kB / 1.295 GB, free: 42.81 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/3.621, allocations: 321.6 kB / 1.295 GB, free: 42.5 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/3.621, allocations: 0 / 1.295 GB, free: 42.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002956/3.624, allocations: 0.7509 MB / 1.296 GB, free: 41.75 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003942/3.624, allocations: 1.09 MB / 1.297 GB, free: 40.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/3.624, allocations: 4 kB / 1.297 GB, free: 40.56 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.248e-05/3.625, allocations: 4 kB / 1.297 GB, free: 40.56 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/3.626, allocations: 159.7 kB / 1.297 GB, free: 40.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/3.628, allocations: 1.791 MB / 1.299 GB, free: 38.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/3.63, allocations: 107.7 kB / 1.299 GB, free: 38.44 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/3.63, allocations: 35.98 kB / 1.299 GB, free: 38.4 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/3.63, allocations: 1.094 kB / 1.299 GB, free: 38.4 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002741/3.633, allocations: 0.6446 MB / 1.3 GB, free: 37.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/3.633, allocations: 4.344 kB / 1.3 GB, free: 37.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/3.633, allocations: 8 kB / 1.3 GB, free: 37.75 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008996/3.634, allocations: 131.8 kB / 1.3 GB, free: 37.62 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/3.634, allocations: 7.984 kB / 1.3 GB, free: 37.61 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001539/3.635, allocations: 99.5 kB / 1.3 GB, free: 37.51 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/3.635, allocations: 28 kB / 1.3 GB, free: 37.48 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.0004241/3.636, allocations: 164.8 kB / 1.3 GB, free: 37.31 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002589/3.638, allocations: 0.609 MB / 1.301 GB, free: 36.7 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/3.639, allocations: 90.92 kB / 1.301 GB, free: 36.61 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/3.642, allocations: 0.7059 MB / 1.302 GB, free: 35.89 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/3.642, allocations: 12.08 kB / 1.302 GB, free: 35.88 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/3.642, allocations: 3.984 kB / 1.302 GB, free: 35.88 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/3.642, allocations: 0 / 1.302 GB, free: 35.88 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004433/3.646, allocations: 1.523 MB / 1.303 GB, free: 34.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/3.646, allocations: 4 kB / 1.303 GB, free: 34.3 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/3.647, allocations: 95.86 kB / 1.303 GB, free: 34.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.42e-05/3.647, allocations: 8.125 kB / 1.303 GB, free: 34.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.074e-05/3.647, allocations: 11.98 kB / 1.303 GB, free: 34.18 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000915/3.648, allocations: 1.766 MB / 1.305 GB, free: 32.35 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/3.648, allocations: 11.92 kB / 1.305 GB, free: 32.34 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003188/3.651, allocations: 1.205 MB / 1.306 GB, free: 31.08 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007027/3.652, allocations: 235.7 kB / 1.306 GB, free: 30.83 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/3.652, allocations: 8 kB / 1.306 GB, free: 30.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/3.653, allocations: 63.98 kB / 1.306 GB, free: 30.76 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/3.654, allocations: 43.94 kB / 1.307 GB, free: 30.72 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.367e-05/3.654, allocations: 27.98 kB / 1.307 GB, free: 30.69 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001007/3.655, allocations: 467 kB / 1.307 GB, free: 30.24 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.7e-07/3.655, allocations: 0 / 1.307 GB, free: 30.24 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.002494/3.657, allocations: 494.8 kB / 1.307 GB, free: 29.75 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.005166/3.662, allocations: 2.312 MB / 1.31 GB, free: 27.39 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002848/3.665, allocations: 0.9284 MB / 1.311 GB, free: 26.44 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/3.665, allocations: 0 / 1.311 GB, free: 26.44 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006108/3.666, allocations: 327.2 kB / 1.311 GB, free: 26.11 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/3.669, allocations: 292.7 kB / 1.311 GB, free: 25.83 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00528/3.674, allocations: 1.256 MB / 1.312 GB, free: 24.52 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007175/3.675, allocations: 1.022 MB / 1.313 GB, free: 23.47 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.001622/3.676, allocations: 192 kB / 1.314 GB, free: 23.28 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005688/3.677, allocations: 319.3 kB / 1.314 GB, free: 22.96 MB / 0.6823 GB Notification: Performance of SimCode: time 2.545e-06/3.677, allocations: 0 / 1.314 GB, free: 22.96 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07762/3.755, allocations: 22.7 MB / 1.336 GB, free: 468 kB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/3.755, allocations: 173.5 kB / 1.336 GB, free: 268 kB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.969/8.724, allocations: 0 / 1.336 GB, free: 268 kB / 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)