Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.363/2.363, allocations: 248.7 MB / 256.2 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001432/0.001432, allocations: 181.2 kB / 315.4 MB, free: 3.988 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.189/2.189, allocations: 205.3 MB / 0.5662 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 92.42 kB / 0.6704 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.781e-05/2.795e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2081, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.949/2.157, allocations: 395.1 MB / 1.27 GB, free: 258.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003796/2.157, allocations: 93.53 kB / 1.27 GB, free: 258.1 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.013/3.17, allocations: 291 MB / 1.554 GB, free: 39.62 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.244e-06/3.17, allocations: 224 / 1.554 GB, free: 39.62 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001149/3.17, allocations: 35.92 kB / 1.554 GB, free: 39.58 MB / 0.8698 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.00349/3.174, allocations: 1.228 MB / 1.555 GB, free: 38.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/3.174, allocations: 16.02 kB / 1.555 GB, free: 38.29 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000475/3.175, allocations: 114.7 kB / 1.556 GB, free: 38.17 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/3.177, allocations: 0.6678 MB / 1.556 GB, free: 37.46 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/3.177, allocations: 20 kB / 1.556 GB, free: 37.45 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/3.177, allocations: 40 kB / 1.556 GB, free: 37.41 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001116/3.178, allocations: 398.5 kB / 1.557 GB, free: 37.02 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/3.179, allocations: 0.5817 MB / 1.557 GB, free: 36.39 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/3.179, allocations: 0 / 1.557 GB, free: 36.39 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.42e-05/3.179, allocations: 4 kB / 1.557 GB, free: 36.39 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/3.18, allocations: 12 kB / 1.557 GB, free: 36.38 MB / 0.8698 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.005742/3.185, allocations: 2.455 MB / 1.56 GB, free: 33.8 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000814/3.186, allocations: 347.1 kB / 1.56 GB, free: 33.45 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/3.187, allocations: 184.8 kB / 1.56 GB, free: 33.26 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003543/3.187, allocations: 340.4 kB / 1.56 GB, free: 32.86 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000598/3.188, allocations: 325.2 kB / 1.561 GB, free: 32.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 3.597e-06/3.188, allocations: 0 / 1.561 GB, free: 32.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.002532/3.19, allocations: 0.6025 MB / 1.561 GB, free: 31.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.09e-05/3.19, allocations: 243.5 kB / 1.562 GB, free: 31.61 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/3.191, allocations: 0.5906 MB / 1.562 GB, free: 31 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001583/3.191, allocations: 33.64 kB / 1.562 GB, free: 30.96 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000399/3.192, allocations: 439.9 kB / 1.563 GB, free: 30.53 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/3.192, allocations: 122.3 kB / 1.563 GB, free: 30.41 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/3.192, allocations: 4.062 kB / 1.563 GB, free: 30.41 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.015e-05/3.192, allocations: 333.9 kB / 1.563 GB, free: 30.07 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004598/3.193, allocations: 185.1 kB / 1.563 GB, free: 29.89 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005811/3.193, allocations: 380.4 kB / 1.564 GB, free: 29.44 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/3.195, allocations: 313.8 kB / 1.564 GB, free: 29.13 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/3.195, allocations: 0 / 1.564 GB, free: 29.13 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002733/3.198, allocations: 0.7509 MB / 1.565 GB, free: 28.38 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002756/3.198, allocations: 1.094 MB / 1.566 GB, free: 27.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/3.198, allocations: 0 / 1.566 GB, free: 27.19 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.431e-05/3.198, allocations: 8 kB / 1.566 GB, free: 27.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/3.2, allocations: 155.8 kB / 1.566 GB, free: 27.03 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/3.201, allocations: 1.79 MB / 1.568 GB, free: 25.17 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001569/3.202, allocations: 107.5 kB / 1.568 GB, free: 25.07 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/3.203, allocations: 39.92 kB / 1.568 GB, free: 25.03 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/3.203, allocations: 4 kB / 1.568 GB, free: 25.02 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00237/3.205, allocations: 0.633 MB / 1.568 GB, free: 24.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/3.205, allocations: 4 kB / 1.568 GB, free: 24.39 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/3.205, allocations: 4 kB / 1.568 GB, free: 24.39 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009942/3.206, allocations: 136.1 kB / 1.568 GB, free: 24.26 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/3.206, allocations: 7.984 kB / 1.568 GB, free: 24.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/3.208, allocations: 91.61 kB / 1.569 GB, free: 24.16 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.744e-05/3.208, allocations: 39.97 kB / 1.569 GB, free: 24.12 MB / 0.8698 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.0003074/3.208, allocations: 158.5 kB / 1.569 GB, free: 23.95 MB / 0.8698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0024/3.21, allocations: 0.6091 MB / 1.569 GB, free: 23.34 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/3.211, allocations: 82.97 kB / 1.569 GB, free: 23.25 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002745/3.213, allocations: 0.7136 MB / 1.57 GB, free: 22.53 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/3.213, allocations: 4 kB / 1.57 GB, free: 22.53 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/3.213, allocations: 0 / 1.57 GB, free: 22.53 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/3.213, allocations: 0 / 1.57 GB, free: 22.53 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/3.217, allocations: 1.519 MB / 1.572 GB, free: 20.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/3.218, allocations: 0 / 1.572 GB, free: 20.95 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007903/3.218, allocations: 103.8 kB / 1.572 GB, free: 20.85 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/3.218, allocations: 8.094 kB / 1.572 GB, free: 20.84 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-05/3.218, allocations: 15.98 kB / 1.572 GB, free: 20.83 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007309/3.219, allocations: 1.77 MB / 1.573 GB, free: 18.99 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/3.219, allocations: 4.031 kB / 1.573 GB, free: 18.98 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003015/3.222, allocations: 1.209 MB / 1.575 GB, free: 17.73 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005408/3.223, allocations: 223.8 kB / 1.575 GB, free: 17.49 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/3.223, allocations: 8 kB / 1.575 GB, free: 17.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/3.224, allocations: 67.98 kB / 1.575 GB, free: 17.41 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/3.224, allocations: 43.88 kB / 1.575 GB, free: 17.37 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.382e-05/3.224, allocations: 23.98 kB / 1.575 GB, free: 17.35 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0007697/3.225, allocations: 459.1 kB / 1.575 GB, free: 16.91 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.61e-07/3.225, allocations: 4 kB / 1.575 GB, free: 16.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002249/3.227, allocations: 494.8 kB / 1.576 GB, free: 16.42 MB / 0.8698 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.004234/3.232, allocations: 2.31 MB / 1.578 GB, free: 14.06 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002817/3.235, allocations: 0.9135 MB / 1.579 GB, free: 13.12 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/3.235, allocations: 128 / 1.579 GB, free: 13.12 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008153/3.235, allocations: 335.2 kB / 1.579 GB, free: 12.79 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003159/3.239, allocations: 299.7 kB / 1.58 GB, free: 12.49 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/3.243, allocations: 1.256 MB / 1.581 GB, free: 11.18 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/3.244, allocations: 1.022 MB / 1.582 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001404/3.245, allocations: 183.9 kB / 1.582 GB, free: 9.941 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005596/3.246, allocations: 323.3 kB / 1.582 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of SimCode: time 1.754e-06/3.246, allocations: 0 / 1.582 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7304/3.976, allocations: 22.76 MB / 1.605 GB, free: 218.8 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002673/3.976, allocations: 178.9 kB / 1.605 GB, free: 218.7 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.647/7.623, allocations: 1.406 kB / 1.605 GB, free: 218.7 MB / 0.8698 GB