Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.341/4.341, allocations: 433.2 MB / 440.8 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.661e-05/2.66e-05, allocations: 4.984 kB / 0.5325 GB, free: 12.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2307, allocations: 98.74 MB / 0.6289 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.202/1.432, allocations: 385.5 MB / 1.005 GB, free: 15.55 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004596/1.433, allocations: 96.19 kB / 1.005 GB, free: 15.5 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 1.586/3.019, allocations: 288.1 MB / 1.287 GB, free: 137.3 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.024e-06/3.019, allocations: 0 / 1.287 GB, free: 137.3 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0001037/3.019, allocations: 27.94 kB / 1.287 GB, free: 137.2 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003072/3.022, allocations: 1.221 MB / 1.288 GB, free: 136 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/3.022, allocations: 16.02 kB / 1.288 GB, free: 135.9 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003869/3.023, allocations: 114.7 kB / 1.288 GB, free: 135.8 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/3.025, allocations: 0.6484 MB / 1.289 GB, free: 135.1 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/3.025, allocations: 20 kB / 1.289 GB, free: 135.1 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/3.025, allocations: 36 kB / 1.289 GB, free: 135.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009983/3.026, allocations: 378.5 kB / 1.289 GB, free: 134.7 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/3.027, allocations: 0.5528 MB / 1.29 GB, free: 134.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/3.027, allocations: 0 / 1.29 GB, free: 134.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.265e-05/3.027, allocations: 0 / 1.29 GB, free: 134.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/3.027, allocations: 12 kB / 1.29 GB, free: 134.1 MB / 0.823 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.005407/3.033, allocations: 2.584 MB / 1.292 GB, free: 131.3 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/3.034, allocations: 310.8 kB / 1.293 GB, free: 131 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/3.034, allocations: 157.1 kB / 1.293 GB, free: 130.9 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.978e-05/3.034, allocations: 12.2 kB / 1.293 GB, free: 130.9 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005035/3.034, allocations: 281.6 kB / 1.293 GB, free: 130.6 MB / 0.823 GB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/3.034, allocations: 0 / 1.293 GB, free: 130.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=33): time 0.001986/3.036, allocations: 0.4911 MB / 1.293 GB, free: 130.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/3.037, allocations: 191.9 kB / 1.294 GB, free: 129.8 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009454/3.038, allocations: 0.5982 MB / 1.294 GB, free: 129.2 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 9.441e-05/3.038, allocations: 25.7 kB / 1.294 GB, free: 129.2 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003888/3.038, allocations: 443.8 kB / 1.295 GB, free: 128.8 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/3.038, allocations: 106.5 kB / 1.295 GB, free: 128.6 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/3.038, allocations: 0 / 1.295 GB, free: 128.6 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.536e-05/3.038, allocations: 330 kB / 1.295 GB, free: 128.3 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/3.039, allocations: 185 kB / 1.295 GB, free: 128.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005791/3.039, allocations: 369.3 kB / 1.296 GB, free: 127.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/3.041, allocations: 297.8 kB / 1.296 GB, free: 127.4 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/3.041, allocations: 0 / 1.296 GB, free: 127.4 MB / 0.823 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00234/3.043, allocations: 0.665 MB / 1.297 GB, free: 126.7 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002289/3.043, allocations: 0.9081 MB / 1.297 GB, free: 125.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/3.043, allocations: 0 / 1.297 GB, free: 125.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/3.043, allocations: 15.95 kB / 1.297 GB, free: 125.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/3.045, allocations: 148.1 kB / 1.298 GB, free: 125.6 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/3.046, allocations: 1.797 MB / 1.299 GB, free: 123.7 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/3.048, allocations: 115.5 kB / 1.299 GB, free: 123.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/3.048, allocations: 32 kB / 1.299 GB, free: 123.6 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/3.048, allocations: 4 kB / 1.299 GB, free: 123.6 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00205/3.05, allocations: 0.5432 MB / 1.3 GB, free: 123 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/3.05, allocations: 4 kB / 1.3 GB, free: 123 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/3.05, allocations: 7.938 kB / 1.3 GB, free: 123 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/3.051, allocations: 132.1 kB / 1.3 GB, free: 122.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/3.051, allocations: 7.984 kB / 1.3 GB, free: 122.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/3.053, allocations: 95.56 kB / 1.3 GB, free: 122.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/3.053, allocations: 24 kB / 1.3 GB, free: 122.8 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 11 ($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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * 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.000387/3.054, allocations: 163.8 kB / 1.3 GB, free: 122.6 MB / 0.823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002862/3.057, allocations: 0.4901 MB / 1.301 GB, free: 122.1 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/3.057, allocations: 83.06 kB / 1.301 GB, free: 122 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/3.06, allocations: 0.5185 MB / 1.301 GB, free: 121.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/3.06, allocations: 7.953 kB / 1.301 GB, free: 121.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/3.06, allocations: 0 / 1.301 GB, free: 121.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/3.06, allocations: 7.922 kB / 1.301 GB, free: 121.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004887/3.065, allocations: 1.14 MB / 1.303 GB, free: 120.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/3.065, allocations: 0 / 1.303 GB, free: 120.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009604/3.066, allocations: 91.81 kB / 1.303 GB, free: 120.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/3.066, allocations: 3.953 kB / 1.303 GB, free: 120.2 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.575e-05/3.066, allocations: 8 kB / 1.303 GB, free: 120.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/3.067, allocations: 1.77 MB / 1.304 GB, free: 118.4 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/3.067, allocations: 0 / 1.304 GB, free: 118.4 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/3.071, allocations: 0.8045 MB / 1.305 GB, free: 117.5 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006821/3.072, allocations: 216 kB / 1.305 GB, free: 117.3 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002406/3.072, allocations: 7.953 kB / 1.305 GB, free: 117.3 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/3.073, allocations: 67.92 kB / 1.305 GB, free: 117.2 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/3.074, allocations: 43.88 kB / 1.306 GB, free: 117.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.412e-05/3.074, allocations: 15.98 kB / 1.306 GB, free: 117.2 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.001151/3.075, allocations: 455.1 kB / 1.306 GB, free: 116.7 MB / 0.823 GB Notification: Performance of sort global known variables: time 9.22e-07/3.075, allocations: 4 kB / 1.306 GB, free: 116.7 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.003037/3.078, allocations: 486.8 kB / 1.306 GB, free: 116.3 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (30): * Single equations (assignments): 26 * 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 Backend phase and start with SimCode phase: time 0.004933/3.083, allocations: 1.656 MB / 1.308 GB, free: 114.6 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.003447/3.087, allocations: 0.8704 MB / 1.309 GB, free: 113.7 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/3.087, allocations: 4 kB / 1.309 GB, free: 113.7 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006324/3.087, allocations: 271.2 kB / 1.309 GB, free: 113.4 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002737/3.09, allocations: 305.2 kB / 1.309 GB, free: 113.1 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/3.094, allocations: 1.158 MB / 1.311 GB, free: 111.9 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/3.094, allocations: 0.9943 MB / 1.312 GB, free: 110.9 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.001308/3.095, allocations: 179.8 kB / 1.312 GB, free: 110.7 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004986/3.096, allocations: 311.3 kB / 1.312 GB, free: 110.4 MB / 0.823 GB Notification: Performance of SimCode: time 1.252e-06/3.096, allocations: 0 / 1.312 GB, free: 110.4 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08332/3.179, allocations: 22.2 MB / 1.334 GB, free: 88.33 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/3.18, allocations: 183.6 kB / 1.334 GB, free: 88.14 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.798/6.978, allocations: 0 / 1.334 GB, free: 88.14 MB / 0.823 GB