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.001418/0.001418, allocations: 174.5 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.6678/0.6678, allocations: 133.4 MB / 146.7 MB, free: 10.78 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.297/1.297, allocations: 221.3 MB / 400.4 MB, free: 5.852 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.0008552/0.0008554, allocations: 94.7 kB / 483.3 MB, free: 5.906 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.585e-05, allocations: 3.156 kB / 0.5601 GB, free: 87.89 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1424, allocations: 82.31 MB / 0.6405 GB, free: 7.734 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9933/1.136, allocations: 362.9 MB / 0.9949 GB, free: 257.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/1.136, allocations: 94 kB / 0.995 GB, free: 257.6 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.7891/1.925, allocations: 307.4 MB / 1.295 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.022e-06/1.925, allocations: 0 / 1.295 GB, free: 167.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.678e-05/1.925, allocations: 28.98 kB / 1.295 GB, free: 167.5 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.001869/1.927, allocations: 1.257 MB / 1.296 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/1.927, allocations: 10.09 kB / 1.296 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/1.927, allocations: 98 kB / 1.297 GB, free: 166.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000218/1.928, allocations: 118.9 kB / 1.297 GB, free: 166.7 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/1.929, allocations: 0.6597 MB / 1.297 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/1.929, allocations: 49.72 kB / 1.297 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/1.929, allocations: 70.19 kB / 1.297 GB, free: 166.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008081/1.93, allocations: 0.6501 MB / 1.298 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/1.93, allocations: 0 / 1.298 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.076e-05/1.93, allocations: 26.09 kB / 1.298 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/1.93, allocations: 15.48 kB / 1.298 GB, free: 166.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000566/1.93, allocations: 435.2 kB / 1.298 GB, free: 166.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.002763/1.933, allocations: 2.607 MB / 1.301 GB, free: 165 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004289/1.933, allocations: 339.5 kB / 1.301 GB, free: 165 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/1.934, allocations: 187.4 kB / 1.302 GB, free: 165 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001893/1.934, allocations: 347.9 kB / 1.302 GB, free: 164.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/1.934, allocations: 331.8 kB / 1.302 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.573e-06/1.934, allocations: 0 / 1.302 GB, free: 164.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.0007842/1.935, allocations: 0.5728 MB / 1.303 GB, free: 164.4 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/1.935, allocations: 238.5 kB / 1.303 GB, free: 164.1 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006238/1.936, allocations: 0.7224 MB / 1.304 GB, free: 164 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/1.936, allocations: 42.23 kB / 1.304 GB, free: 163.9 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/1.936, allocations: 432.7 kB / 1.304 GB, free: 163.8 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.555e-05/1.936, allocations: 126.3 kB / 1.304 GB, free: 163.7 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/1.936, allocations: 14 kB / 1.304 GB, free: 163.7 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 3.983e-05/1.936, allocations: 328.1 kB / 1.305 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/1.936, allocations: 198 kB / 1.305 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/1.937, allocations: 404.5 kB / 1.305 GB, free: 163.2 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/1.937, allocations: 255.2 kB / 1.305 GB, free: 163.1 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.937, allocations: 0 / 1.305 GB, free: 163.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008803/1.938, allocations: 0.7412 MB / 1.306 GB, free: 163 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/1.938, allocations: 1.088 MB / 1.307 GB, free: 161.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/1.938, allocations: 7.469 kB / 1.307 GB, free: 161.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/1.938, allocations: 7.375 kB / 1.307 GB, free: 161.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007888/1.939, allocations: 159.8 kB / 1.307 GB, free: 161.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005853/1.939, allocations: 1.781 MB / 1.309 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/1.94, allocations: 138.2 kB / 1.309 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.089e-05/1.94, allocations: 31.97 kB / 1.309 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.193e-06/1.94, allocations: 7.891 kB / 1.309 GB, free: 160.1 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008059/1.941, allocations: 0.6491 MB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-06/1.941, allocations: 3.875 kB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.38e-06/1.941, allocations: 3.25 kB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004553/1.942, allocations: 134.1 kB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/1.942, allocations: 15.16 kB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005685/1.942, allocations: 121.7 kB / 1.31 GB, free: 160 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/1.942, allocations: 29.81 kB / 1.31 GB, free: 160 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 (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.0001185/1.942, allocations: 174.7 kB / 1.31 GB, free: 159.9 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.491e-05/1.942, allocations: 96.67 kB / 1.31 GB, free: 159.8 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009787/1.943, allocations: 0.7095 MB / 1.311 GB, free: 159.7 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/1.943, allocations: 3.156 kB / 1.311 GB, free: 159.7 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/1.943, allocations: 0 / 1.311 GB, free: 159.7 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/1.943, allocations: 7.172 kB / 1.311 GB, free: 159.7 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/1.945, allocations: 1.561 MB / 1.313 GB, free: 159.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/1.945, allocations: 0 / 1.313 GB, free: 159.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003664/1.945, allocations: 93.31 kB / 1.313 GB, free: 159.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/1.945, allocations: 6.625 kB / 1.313 GB, free: 159.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/1.945, allocations: 18.31 kB / 1.313 GB, free: 159.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003889/1.946, allocations: 1.771 MB / 1.315 GB, free: 157.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/1.946, allocations: 3.938 kB / 1.315 GB, free: 157.5 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/1.947, allocations: 1.204 MB / 1.316 GB, free: 157 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002178/1.947, allocations: 230.6 kB / 1.316 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.538e-05/1.947, allocations: 23.02 kB / 1.316 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005471/1.948, allocations: 75.81 kB / 1.316 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/1.948, allocations: 48.92 kB / 1.316 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/1.948, allocations: 24.8 kB / 1.316 GB, free: 156.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000462/1.948, allocations: 0.5555 MB / 1.317 GB, free: 156.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/1.948, allocations: 0 / 1.317 GB, free: 156.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.00105/1.949, allocations: 0.4994 MB / 1.317 GB, free: 156.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) * 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.001608/1.951, allocations: 2.296 MB / 1.319 GB, free: 155.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001298/1.952, allocations: 0.9773 MB / 1.32 GB, free: 155.2 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.952, allocations: 0 / 1.32 GB, free: 155.2 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004072/1.953, allocations: 337.6 kB / 1.321 GB, free: 155.1 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/1.954, allocations: 363.6 kB / 1.321 GB, free: 155.1 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/1.956, allocations: 1.311 MB / 1.322 GB, free: 154.7 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/1.956, allocations: 1.021 MB / 1.323 GB, free: 154 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0006404/1.957, allocations: 222.6 kB / 1.323 GB, free: 153.9 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/1.957, allocations: 327 kB / 1.324 GB, free: 153.9 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/1.957, allocations: 0 / 1.324 GB, free: 153.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.766/3.723, allocations: 27.31 MB / 1.35 GB, free: 150.9 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002418/3.723, allocations: 227.2 kB / 1.351 GB, free: 150.7 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.855/6.578, allocations: 0 / 1.351 GB, free: 150.7 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)