Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.323/4.323, allocations: 433.2 MB / 440.7 MB, free: 4.555 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.848e-05, allocations: 3.438 kB / 0.5325 GB, free: 12.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2433, allocations: 98.73 MB / 0.6289 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.4778, allocations: 126.5 MB / 0.7525 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/0.4782, allocations: 83.89 kB / 0.7525 GB, free: 10.32 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02695/0.5052, allocations: 5.588 MB / 0.758 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5053, allocations: 0 / 0.758 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.959e-05/0.5053, allocations: 4 kB / 0.758 GB, free: 4.723 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001148/0.5064, allocations: 0.5426 MB / 0.7585 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5065, allocations: 16.03 kB / 0.7585 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.5066, allocations: 27.67 kB / 0.7586 GB, free: 4.082 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.5072, allocations: 273.8 kB / 0.7588 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.5073, allocations: 4 kB / 0.7588 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/0.5073, allocations: 11.98 kB / 0.7588 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003612/0.5077, allocations: 124.2 kB / 0.759 GB, free: 3.641 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004434/0.5082, allocations: 189.3 kB / 0.7591 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.5082, allocations: 4 kB / 0.7591 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.504e-05/0.5082, allocations: 4 kB / 0.7591 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.5083, allocations: 7.891 kB / 0.7592 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.5094, allocations: 0.513 MB / 0.7597 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.5098, allocations: 142.6 kB / 0.7598 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/0.51, allocations: 96.95 kB / 0.7599 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.5101, allocations: 4 kB / 0.7599 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003503/0.5104, allocations: 185 kB / 0.7601 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=15): time 3.056e-06/0.5104, allocations: 0 / 0.7601 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.0007555/0.5112, allocations: 222.8 kB / 0.7603 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.174e-05/0.5113, allocations: 136.5 kB / 0.7604 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.5117, allocations: 212.5 kB / 0.7606 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.035e-05/0.5117, allocations: 29.7 kB / 0.7606 GB, free: 1.789 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.5119, allocations: 152.2 kB / 0.7608 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/0.512, allocations: 47.39 kB / 0.7608 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.955e-05/0.512, allocations: 0 / 0.7608 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.5122, allocations: 338.8 kB / 0.7612 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002091/0.5124, allocations: 87.97 kB / 0.7612 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.5126, allocations: 108.8 kB / 0.7613 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002532/0.5129, allocations: 85.88 kB / 0.7614 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.5129, allocations: 0 / 0.7614 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006378/0.5136, allocations: 245.2 kB / 0.7617 GB, free: 0.7188 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 5.885e-05/0.5136, allocations: 41.69 kB / 0.7617 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.5137, allocations: 0 / 0.7617 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.5137, allocations: 4 kB / 0.7617 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002503/0.5139, allocations: 23.98 kB / 0.7617 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.514, allocations: 7.938 kB / 0.7617 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.5143, allocations: 43.84 kB / 0.7618 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.5143, allocations: 8 kB / 0.7618 GB, free: 0.5859 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.5145, allocations: 146.6 kB / 0.7619 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006766/0.5152, allocations: 235 kB / 0.7621 GB, free: 196 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.792e-05/0.5153, allocations: 27.91 kB / 0.7622 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.803e-05/0.5154, allocations: 25.97 kB / 0.7622 GB, free: 144 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.5154, allocations: 11.88 kB / 0.7622 GB, free: 132 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5154, allocations: 0 / 0.7622 GB, free: 132 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.5154, allocations: 0 / 0.7622 GB, free: 132 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003952/0.5158, allocations: 265.9 kB / 0.7625 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5158, allocations: 0 / 0.7625 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.5161, allocations: 19.98 kB / 0.7625 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.5161, allocations: 0 / 0.7625 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.5161, allocations: 8 kB / 0.7625 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.5162, allocations: 11.92 kB / 0.7625 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5162, allocations: 0 / 0.7625 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.5172, allocations: 398.2 kB / 0.7629 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.167e-05/0.5173, allocations: 96.86 kB / 0.763 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.5174, allocations: 8 kB / 0.763 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.5177, allocations: 32.03 kB / 0.763 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.5178, allocations: 27.95 kB / 0.763 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.107e-05/0.5179, allocations: 8 kB / 0.763 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002488/0.5181, allocations: 180.4 kB / 0.7632 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.51e-07/0.5182, allocations: 0 / 0.7632 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0004416/0.5186, allocations: 56.06 kB / 0.7633 GB, free: 14.96 MB / 0.6511 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,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00124/0.5199, allocations: 0.8936 MB / 0.7641 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005158/0.5204, allocations: 259.2 kB / 0.7644 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5204, allocations: 4 kB / 0.7644 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.5207, allocations: 171.3 kB / 0.7646 GB, free: 13.59 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.5211, allocations: 31.3 kB / 0.7646 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.5228, allocations: 392.9 kB / 0.765 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.5232, allocations: 0.7554 MB / 0.7657 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001292/0.5234, allocations: 12.77 kB / 0.7657 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5236, allocations: 67.41 kB / 0.7658 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of SimCode: time 1.473e-06/0.5236, allocations: 4 kB / 0.7658 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04827/0.5719, allocations: 4.073 MB / 0.7698 GB, free: 8.215 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/0.5723, allocations: 144.6 kB / 0.7699 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.1, allocations: 0 / 0.7699 GB, free: 8.027 MB / 0.6511 GB