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 Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01279/0.01279, allocations: 222.9 kB / 15.17 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001198/0.001197, allocations: 178.2 kB / 16.06 MB, free: 5.871 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 3.788/3.788, allocations: 389.1 MB / 405.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.387/4.387, allocations: 472.3 MB / 0.9017 GB, free: 3.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005329/0.0005332, allocations: 8 kB / 1.008 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6981/0.6986, allocations: 98.7 MB / 1.104 GB, free: 212.9 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.02905/0.7277, allocations: 21.26 MB / 1.125 GB, free: 198.1 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0193/0.7471, allocations: 8.894 MB / 1.134 GB, free: 192.2 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.7488, allocations: 32.09 kB / 1.134 GB, free: 192.2 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.7509, allocations: 449.1 kB / 1.134 GB, free: 192 MB / 0.7292 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:25:17-26:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:23:17-24:49:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:25:17-26:47:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Fluid/Sources/BaseClasses/PartialSource.mo:23:17-24:49:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.005169/0.7561, allocations: 1.085 MB / 1.135 GB, free: 191.4 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.01123/0.7674, allocations: 2.475 MB / 1.137 GB, free: 190.5 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.004431/0.7719, allocations: 2.168 MB / 1.14 GB, free: 189.6 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001455/0.7734, allocations: 0.5608 MB / 1.14 GB, free: 189.4 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002049/0.7754, allocations: 0.6686 MB / 1.141 GB, free: 189.1 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001605/0.7771, allocations: 0.6224 MB / 1.141 GB, free: 188.9 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.7773, allocations: 31.5 kB / 1.141 GB, free: 188.9 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002821/0.7801, allocations: 0.8584 MB / 1.142 GB, free: 188.6 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 0.0003843/0.7806, allocations: 159.9 kB / 1.142 GB, free: 188.6 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.7811, allocations: 194.5 kB / 1.143 GB, free: 188.5 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.7837, allocations: 0.991 MB / 1.144 GB, free: 188.2 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.7837, allocations: 2.734 kB / 1.144 GB, free: 188.2 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.635e-06/0.7838, allocations: 0 / 1.144 GB, free: 188.2 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.014e-05/0.7838, allocations: 0 / 1.144 GB, free: 188.2 MB / 0.7292 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.003471/0.7873, allocations: 1.219 MB / 1.145 GB, free: 187.3 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.7874, allocations: 10.25 kB / 1.145 GB, free: 187.3 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.7876, allocations: 93.97 kB / 1.145 GB, free: 187.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.7878, allocations: 114.6 kB / 1.145 GB, free: 187.2 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.7897, allocations: 0.6393 MB / 1.146 GB, free: 186.8 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-05/0.7898, allocations: 46.25 kB / 1.146 GB, free: 186.8 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.79, allocations: 57.38 kB / 1.146 GB, free: 186.8 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.7916, allocations: 0.6285 MB / 1.146 GB, free: 186.5 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.327e-05/0.7917, allocations: 4.688 kB / 1.146 GB, free: 186.5 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.7918, allocations: 23.17 kB / 1.146 GB, free: 186.5 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.7918, allocations: 12.72 kB / 1.146 GB, free: 186.5 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.7931, allocations: 431.8 kB / 1.147 GB, free: 186.3 MB / 0.7292 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.005533/0.7986, allocations: 2.332 MB / 1.149 GB, free: 184.8 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.7997, allocations: 329 kB / 1.149 GB, free: 184.7 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004811/0.8002, allocations: 172.2 kB / 1.15 GB, free: 184.6 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000343/0.8006, allocations: 345.2 kB / 1.15 GB, free: 184.2 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007682/0.8014, allocations: 317.7 kB / 1.15 GB, free: 184 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=35): time 4.248e-06/0.8014, allocations: 7.312 kB / 1.15 GB, free: 184 MB / 0.7292 GB Notification: Performance of matching and sorting (n=35): time 0.001964/0.8034, allocations: 0.604 MB / 1.151 GB, free: 183.8 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.182e-05/0.8035, allocations: 251.9 kB / 1.151 GB, free: 183.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.8051, allocations: 0.8179 MB / 1.152 GB, free: 183.2 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.8053, allocations: 39.03 kB / 1.152 GB, free: 183.1 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.8057, allocations: 426.8 kB / 1.152 GB, free: 182.8 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.8059, allocations: 111.5 kB / 1.152 GB, free: 182.7 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-05/0.8059, allocations: 11.16 kB / 1.152 GB, free: 182.7 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.428e-05/0.806, allocations: 328 kB / 1.153 GB, free: 182.4 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006523/0.8067, allocations: 188.9 kB / 1.153 GB, free: 182.3 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007481/0.8074, allocations: 345.9 kB / 1.153 GB, free: 182.1 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000689/0.8081, allocations: 242.2 kB / 1.153 GB, free: 182 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.8082, allocations: 4.219 kB / 1.153 GB, free: 182 MB / 0.7292 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001939/0.8101, allocations: 0.6521 MB / 1.154 GB, free: 181.7 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/0.8103, allocations: 192.2 kB / 1.154 GB, free: 181.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.8103, allocations: 7.062 kB / 1.154 GB, free: 181.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.8103, allocations: 4.938 kB / 1.154 GB, free: 181.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.8121, allocations: 174.2 kB / 1.154 GB, free: 181.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009917/0.8132, allocations: 1.773 MB / 1.156 GB, free: 179.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.8146, allocations: 112.4 kB / 1.156 GB, free: 179.7 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.811e-05/0.8147, allocations: 26.56 kB / 1.156 GB, free: 179.7 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.8147, allocations: 3.969 kB / 1.156 GB, free: 179.7 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001595/0.8163, allocations: 0.5575 MB / 1.157 GB, free: 179.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.8163, allocations: 3.344 kB / 1.157 GB, free: 179.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.8164, allocations: 5.219 kB / 1.157 GB, free: 179.5 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009893/0.8174, allocations: 126.1 kB / 1.157 GB, free: 179.4 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.8174, allocations: 5.391 kB / 1.157 GB, free: 179.4 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.8187, allocations: 98.27 kB / 1.157 GB, free: 179.4 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.485e-05/0.8188, allocations: 23.45 kB / 1.157 GB, free: 179.4 MB / 0.7292 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * 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.0007319/0.8195, allocations: 347.1 kB / 1.157 GB, free: 179.1 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.8198, allocations: 92.08 kB / 1.158 GB, free: 179.1 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/0.8216, allocations: 0.5762 MB / 1.158 GB, free: 178.9 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/0.8217, allocations: 5.547 kB / 1.158 GB, free: 178.9 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.8217, allocations: 8.859 kB / 1.158 GB, free: 178.8 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.8217, allocations: 2.875 kB / 1.158 GB, free: 178.8 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.8248, allocations: 1.185 MB / 1.159 GB, free: 178.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.8248, allocations: 1.969 kB / 1.159 GB, free: 178.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007282/0.8256, allocations: 90.75 kB / 1.159 GB, free: 178.2 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/0.8256, allocations: 6.297 kB / 1.159 GB, free: 178.2 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/0.8256, allocations: 10.34 kB / 1.159 GB, free: 178.2 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007407/0.8264, allocations: 1.768 MB / 1.161 GB, free: 176.4 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.8264, allocations: 1.188 kB / 1.161 GB, free: 176.4 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002163/0.8286, allocations: 0.8587 MB / 1.162 GB, free: 175.9 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005658/0.8292, allocations: 218.4 kB / 1.162 GB, free: 175.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.8294, allocations: 15.36 kB / 1.162 GB, free: 175.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008821/0.8303, allocations: 54.78 kB / 1.162 GB, free: 175.7 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.8305, allocations: 42.5 kB / 1.162 GB, free: 175.7 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.889e-05/0.8305, allocations: 16.98 kB / 1.162 GB, free: 175.7 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.00105/0.8316, allocations: 0.5491 MB / 1.163 GB, free: 175.3 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.11e-07/0.8316, allocations: 0.75 kB / 1.163 GB, free: 175.3 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001955/0.8336, allocations: 450.4 kB / 1.163 GB, free: 175.2 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 28 * 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.003357/0.837, allocations: 1.658 MB / 1.165 GB, free: 174.1 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00343/0.8404, allocations: 0.9956 MB / 1.166 GB, free: 173.6 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.8405, allocations: 1.281 kB / 1.166 GB, free: 173.6 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0009709/0.8415, allocations: 335.6 kB / 1.166 GB, free: 173.4 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003645/0.8451, allocations: 374.7 kB / 1.166 GB, free: 173.3 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.857, allocations: 4.854 MB / 1.171 GB, free: 168.8 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.8576, allocations: 1.018 MB / 1.172 GB, free: 167.8 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.001107/0.8587, allocations: 142.9 kB / 1.172 GB, free: 167.7 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005326/0.8592, allocations: 327.9 kB / 1.173 GB, free: 167.3 MB / 0.7292 GB Notification: Performance of SimCode: time 8.12e-07/0.8592, allocations: 0 / 1.173 GB, free: 167.3 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07077/0.93, allocations: 23.47 MB / 1.196 GB, free: 144.9 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002803/0.9304, allocations: 267.2 kB / 1.196 GB, free: 144.5 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.535/4.465, allocations: 0 / 1.196 GB, free: 144.5 MB / 0.7292 GB