Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.642/2.642, allocations: 287.3 MB / 302.3 MB, free: 8.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001553/0.001553, allocations: 183.2 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001776/0.001775, allocations: 88.31 kB / 0.7428 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000642/0.0006423, allocations: 12.31 kB / 0.8657 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2394, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02719/0.2666, allocations: 19.82 MB / 0.9976 GB, free: 8.398 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01809/0.2847, allocations: 8.625 MB / 1.006 GB, free: 15.76 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.2864, allocations: 31.69 kB / 1.006 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.002539/0.289, allocations: 0.5173 MB / 1.007 GB, free: 15.21 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.005051/0.2941, allocations: 1.096 MB / 1.008 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01103/0.3052, allocations: 2.48 MB / 1.01 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.003504/0.3087, allocations: 1.203 MB / 1.011 GB, free: 10.46 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001436/0.3102, allocations: 0.5767 MB / 1.012 GB, free: 9.867 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001973/0.3122, allocations: 0.654 MB / 1.012 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.3137, allocations: 0.4979 MB / 1.013 GB, free: 8.711 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0002319/0.3139, allocations: 32 kB / 1.013 GB, free: 8.68 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00294/0.3169, allocations: 0.9049 MB / 1.014 GB, free: 7.773 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.000426/0.3174, allocations: 163.3 kB / 1.014 GB, free: 7.613 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.3178, allocations: 197.1 kB / 1.014 GB, free: 7.414 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.002559/0.3204, allocations: 1.025 MB / 1.015 GB, free: 6.387 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3205, allocations: 0 / 1.015 GB, free: 6.387 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.675e-06/0.3205, allocations: 0 / 1.015 GB, free: 6.387 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 2.972e-05/0.3205, allocations: 0 / 1.015 GB, free: 6.387 MB / 0.6355 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.003529/0.3241, allocations: 1.243 MB / 1.016 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.717e-05/0.3241, allocations: 8.031 kB / 1.016 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002792/0.3244, allocations: 102.5 kB / 1.017 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003243/0.3248, allocations: 114.7 kB / 1.017 GB, free: 4.855 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002044/0.3268, allocations: 0.6445 MB / 1.017 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.371e-05/0.327, allocations: 49.31 kB / 1.017 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.3272, allocations: 63.91 kB / 1.017 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001922/0.3291, allocations: 0.6546 MB / 1.018 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.959e-05/0.3292, allocations: 4 kB / 1.018 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.77e-05/0.3293, allocations: 24 kB / 1.018 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.557e-05/0.3293, allocations: 19.98 kB / 1.018 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3307, allocations: 456.9 kB / 1.019 GB, free: 2.871 MB / 0.6355 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.006199/0.3369, allocations: 2.538 MB / 1.021 GB, free: 200 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.3383, allocations: 376.7 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004352/0.3387, allocations: 344.3 kB / 1.022 GB, free: 15.41 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000961/0.3397, allocations: 329.1 kB / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=37): time 4.017e-06/0.3397, allocations: 0 / 1.022 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of matching and sorting (n=37): time 0.002478/0.3422, allocations: 0.7747 MB / 1.023 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001828/0.3425, allocations: 243.3 kB / 1.023 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.3442, allocations: 0.8281 MB / 1.024 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001683/0.3444, allocations: 37.7 kB / 1.024 GB, free: 13.06 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005656/0.345, allocations: 440.3 kB / 1.024 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001893/0.3452, allocations: 114.4 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.3453, allocations: 12 kB / 1.024 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.3454, allocations: 330 kB / 1.025 GB, free: 12.17 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007108/0.3462, allocations: 197.2 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000919/0.3471, allocations: 363.6 kB / 1.025 GB, free: 11.56 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008265/0.348, allocations: 255.7 kB / 1.025 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.348, allocations: 0 / 1.025 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002248/0.3502, allocations: 0.7332 MB / 1.026 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000648/0.3509, allocations: 1.086 MB / 1.027 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.351, allocations: 4.547 kB / 1.027 GB, free: 9.383 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.301e-05/0.351, allocations: 8 kB / 1.027 GB, free: 9.375 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/0.3531, allocations: 183.8 kB / 1.027 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.3548, allocations: 1.774 MB / 1.029 GB, free: 7.352 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.3562, allocations: 119.2 kB / 1.029 GB, free: 7.234 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.3563, allocations: 31.94 kB / 1.029 GB, free: 7.203 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.3564, allocations: 4 kB / 1.029 GB, free: 7.199 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001955/0.3583, allocations: 0.6386 MB / 1.03 GB, free: 6.555 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.3584, allocations: 4 kB / 1.03 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3584, allocations: 4 kB / 1.03 GB, free: 6.547 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.3594, allocations: 128.2 kB / 1.03 GB, free: 6.422 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.3595, allocations: 11.94 kB / 1.03 GB, free: 6.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.3607, allocations: 99.38 kB / 1.03 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.815e-05/0.3608, allocations: 27.98 kB / 1.03 GB, free: 6.285 MB / 0.6511 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.0006871/0.3615, allocations: 346.6 kB / 1.031 GB, free: 5.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/0.3617, allocations: 94.83 kB / 1.031 GB, free: 5.836 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/0.3639, allocations: 0.675 MB / 1.031 GB, free: 5.148 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.364, allocations: 4 kB / 1.031 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.364, allocations: 0 / 1.031 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.364, allocations: 3.984 kB / 1.031 GB, free: 5.141 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003521/0.3675, allocations: 1.527 MB / 1.033 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.3676, allocations: 0 / 1.033 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.3684, allocations: 99.86 kB / 1.033 GB, free: 3.445 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.201e-05/0.3684, allocations: 4 kB / 1.033 GB, free: 3.441 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-05/0.3685, allocations: 12 kB / 1.033 GB, free: 3.43 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.3698, allocations: 1.766 MB / 1.035 GB, free: 1.594 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.3698, allocations: 8.125 kB / 1.035 GB, free: 1.586 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.3725, allocations: 1.163 MB / 1.036 GB, free: 380 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.373, allocations: 227.6 kB / 1.036 GB, free: 132 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001806/0.3732, allocations: 20.06 kB / 1.036 GB, free: 112 kB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000945/0.3742, allocations: 55.88 kB / 1.036 GB, free: 56 kB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.3743, allocations: 43.94 kB / 1.036 GB, free: 12 kB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.3744, allocations: 16.03 kB / 1.036 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.001158/0.3756, allocations: 0.5588 MB / 1.037 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.61e-07/0.3756, allocations: 0 / 1.037 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001871/0.3775, allocations: 463.1 kB / 1.037 GB, free: 14.97 MB / 0.6667 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.004152/0.3817, allocations: 2.203 MB / 1.039 GB, free: 12.72 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.00382/0.3855, allocations: 1.027 MB / 1.04 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.3856, allocations: 0 / 1.04 GB, free: 11.67 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.3867, allocations: 360.1 kB / 1.041 GB, free: 11.31 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003469/0.3902, allocations: 366.6 kB / 1.041 GB, free: 10.95 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.3966, allocations: 3.923 MB / 1.045 GB, free: 6.91 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008135/0.3974, allocations: 1.01 MB / 1.046 GB, free: 5.875 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.00113/0.3986, allocations: 158.2 kB / 1.046 GB, free: 5.719 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000708/0.3993, allocations: 339.3 kB / 1.046 GB, free: 5.387 MB / 0.6667 GB Notification: Performance of SimCode: time 1.122e-06/0.3993, allocations: 0 / 1.046 GB, free: 5.387 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.763/1.162, allocations: 23.26 MB / 1.069 GB, free: 86.77 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003174/1.163, allocations: 264.6 kB / 1.069 GB, free: 86.42 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.566/4.729, allocations: 0 / 1.069 GB, free: 86.42 MB / 0.6823 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)