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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 86.88 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7816/0.7816, allocations: 132.3 MB / 423.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 8 kB / 0.5035 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4606/0.461, allocations: 81.58 MB / 0.5832 GB, free: 3.992 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02571/0.4868, allocations: 21.35 MB / 0.604 GB, free: 4.801 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.4976, allocations: 6.097 MB / 0.61 GB, free: 15.85 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.4993, allocations: 27.22 kB / 0.61 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.5004, allocations: 289.2 kB / 0.6103 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.5036, allocations: 0.8871 MB / 0.6111 GB, free: 14.92 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.5065, allocations: 0.8826 MB / 0.612 GB, free: 14.32 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.5097, allocations: 2.155 MB / 0.6141 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009171/0.5106, allocations: 0.5783 MB / 0.6147 GB, free: 12.68 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.5121, allocations: 0.7014 MB / 0.6154 GB, free: 12.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.5132, allocations: 0.6336 MB / 0.616 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.5133, allocations: 34.94 kB / 0.616 GB, free: 11.94 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.5154, allocations: 0.8699 MB / 0.6169 GB, free: 11.46 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002333/0.5156, allocations: 170.4 kB / 0.617 GB, free: 11.34 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003452/0.516, allocations: 193.3 kB / 0.6172 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.5174, allocations: 1.027 MB / 0.6182 GB, free: 10.55 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5174, allocations: 0 / 0.6182 GB, free: 10.55 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5175, allocations: 0 / 0.6182 GB, free: 10.55 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.5175, allocations: 1.625 kB / 0.6182 GB, free: 10.55 MB / 462.1 MB 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.00219/0.5197, allocations: 1.253 MB / 0.6194 GB, free: 9.547 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.5197, allocations: 9.312 kB / 0.6194 GB, free: 9.547 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.5199, allocations: 98.73 kB / 0.6195 GB, free: 9.461 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.52, allocations: 112.1 kB / 0.6196 GB, free: 9.406 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.5211, allocations: 0.6449 MB / 0.6203 GB, free: 8.895 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.144e-05/0.5212, allocations: 48.22 kB / 0.6203 GB, free: 8.875 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.5213, allocations: 65.66 kB / 0.6204 GB, free: 8.852 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.5224, allocations: 0.6629 MB / 0.621 GB, free: 8.418 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.5224, allocations: 0.875 kB / 0.621 GB, free: 8.418 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.5225, allocations: 25.94 kB / 0.6211 GB, free: 8.398 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.5225, allocations: 18.2 kB / 0.6211 GB, free: 8.395 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/0.5233, allocations: 451.4 kB / 0.6215 GB, free: 8.191 MB / 462.1 MB 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.003592/0.5269, allocations: 2.547 MB / 0.624 GB, free: 6.031 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007082/0.5276, allocations: 367.9 kB / 0.6243 GB, free: 5.859 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.528, allocations: 187.7 kB / 0.6245 GB, free: 5.777 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003167/0.5283, allocations: 342.8 kB / 0.6248 GB, free: 5.387 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005592/0.5289, allocations: 330.1 kB / 0.6252 GB, free: 5.066 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 3.586e-06/0.5289, allocations: 3.984 kB / 0.6252 GB, free: 5.062 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.001328/0.5302, allocations: 0.7006 MB / 0.6258 GB, free: 4.352 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001342/0.5304, allocations: 247.3 kB / 0.6261 GB, free: 4.055 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000965/0.5313, allocations: 0.8408 MB / 0.6269 GB, free: 3.191 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.5314, allocations: 41.7 kB / 0.6269 GB, free: 3.145 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/0.5317, allocations: 428.5 kB / 0.6273 GB, free: 2.719 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.5319, allocations: 118.8 kB / 0.6275 GB, free: 2.602 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.958e-05/0.5319, allocations: 8 kB / 0.6275 GB, free: 2.594 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.532, allocations: 337.9 kB / 0.6278 GB, free: 2.258 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.5324, allocations: 201 kB / 0.628 GB, free: 2.062 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004834/0.5329, allocations: 371.6 kB / 0.6283 GB, free: 1.645 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004164/0.5333, allocations: 251.7 kB / 0.6286 GB, free: 1.395 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5333, allocations: 4 kB / 0.6286 GB, free: 1.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001211/0.5346, allocations: 0.729 MB / 0.6293 GB, free: 0.6523 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.5348, allocations: 206.5 kB / 0.6295 GB, free: 416 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.5348, allocations: 96 / 0.6295 GB, free: 416 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.5348, allocations: 11.94 kB / 0.6295 GB, free: 404 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.5358, allocations: 175.7 kB / 0.6297 GB, free: 228 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.5371, allocations: 1.781 MB / 0.6314 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008078/0.5379, allocations: 115.5 kB / 0.6315 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.04e-05/0.538, allocations: 27.98 kB / 0.6315 GB, free: 14.23 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/0.538, allocations: 8 kB / 0.6316 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001068/0.5391, allocations: 0.635 MB / 0.6322 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5391, allocations: 4 kB / 0.6322 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.5391, allocations: 8 kB / 0.6322 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.5396, allocations: 127.8 kB / 0.6323 GB, free: 13.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5397, allocations: 4 kB / 0.6323 GB, free: 13.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.5402, allocations: 107.3 kB / 0.6324 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-05/0.5403, allocations: 27.98 kB / 0.6324 GB, free: 13.3 MB / 478.1 MB 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.0004868/0.5408, allocations: 350.7 kB / 0.6328 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.5409, allocations: 90.88 kB / 0.6329 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.5421, allocations: 0.6751 MB / 0.6335 GB, free: 12.17 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.5421, allocations: 4 kB / 0.6335 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.5422, allocations: 0 / 0.6335 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.5422, allocations: 7.984 kB / 0.6335 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.5442, allocations: 1.532 MB / 0.635 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.5443, allocations: 8.031 kB / 0.635 GB, free: 10.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.5447, allocations: 83.89 kB / 0.6351 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.5447, allocations: 4 kB / 0.6351 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.5447, allocations: 15.98 kB / 0.6351 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009426/0.5457, allocations: 1.77 MB / 0.6369 GB, free: 8.605 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5457, allocations: 0 / 0.6369 GB, free: 8.605 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/0.5472, allocations: 1.116 MB / 0.638 GB, free: 7.461 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003177/0.5475, allocations: 235.7 kB / 0.6382 GB, free: 7.211 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001437/0.5476, allocations: 23.97 kB / 0.6382 GB, free: 7.188 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005173/0.5482, allocations: 48.02 kB / 0.6382 GB, free: 7.141 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.5483, allocations: 43.92 kB / 0.6383 GB, free: 7.098 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.5483, allocations: 19.95 kB / 0.6383 GB, free: 7.078 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0007995/0.5492, allocations: 0.567 MB / 0.6389 GB, free: 6.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5492, allocations: 0 / 0.6389 GB, free: 6.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001439/0.5506, allocations: 463.1 kB / 0.6393 GB, free: 6.047 MB / 478.1 MB 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.002646/0.5533, allocations: 1.899 MB / 0.6412 GB, free: 4.121 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002168/0.5554, allocations: 1.024 MB / 0.6422 GB, free: 3.074 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.5555, allocations: 0 / 0.6422 GB, free: 3.074 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007531/0.5562, allocations: 352.3 kB / 0.6425 GB, free: 2.719 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.5584, allocations: 371.9 kB / 0.6428 GB, free: 2.359 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009294/0.5677, allocations: 5.068 MB / 0.6478 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.5684, allocations: 1.001 MB / 0.6488 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0007579/0.5691, allocations: 157.4 kB / 0.6489 GB, free: 11.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004567/0.5696, allocations: 335.3 kB / 0.6492 GB, free: 11.57 MB / 494.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5696, allocations: 0 / 0.6492 GB, free: 11.57 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04385/0.6135, allocations: 23.66 MB / 0.6724 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002246/0.6137, allocations: 245.3 kB / 0.6726 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.486/3.1, allocations: 0 / 0.6726 GB, free: 4.02 MB / 0.4981 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) Environment - environmentSimulation: