Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadModel(Buildings): time 3.917/3.917, allocations: 433.4 MB / 440.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.335e-05/2.344e-05, allocations: 4 kB / 0.5325 GB, free: 1.859 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5529/0.5529, allocations: 98.71 MB / 0.6289 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2028/0.7558, allocations: 126.5 MB / 0.7525 GB, free: 0.9922 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.7561, allocations: 87.94 kB / 0.7525 GB, free: 0.9062 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.02378/0.7799, allocations: 5.577 MB / 0.758 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.333e-06/0.78, allocations: 0 / 0.758 GB, free: 11.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.886e-05/0.78, allocations: 4 kB / 0.758 GB, free: 11.32 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.000962/0.781, allocations: 0.5465 MB / 0.7585 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.781, allocations: 15.95 kB / 0.7585 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.7811, allocations: 31.67 kB / 0.7586 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.7817, allocations: 273.8 kB / 0.7588 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.7817, allocations: 8 kB / 0.7588 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.7818, allocations: 8 kB / 0.7589 GB, free: 10.35 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003242/0.7821, allocations: 124.1 kB / 0.759 GB, free: 10.23 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.7826, allocations: 197.3 kB / 0.7592 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.7826, allocations: 0 / 0.7592 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.7827, allocations: 0 / 0.7592 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.7827, allocations: 4 kB / 0.7592 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.7838, allocations: 0.5129 MB / 0.7597 GB, free: 9.465 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.7841, allocations: 150.5 kB / 0.7598 GB, free: 9.309 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001854/0.7843, allocations: 97.05 kB / 0.7599 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.7844, allocations: 0 / 0.7599 GB, free: 9.211 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.7847, allocations: 169 kB / 0.7601 GB, free: 9.027 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=15): time 3.042e-06/0.7847, allocations: 0 / 0.7601 GB, free: 9.027 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.0006853/0.7854, allocations: 234.8 kB / 0.7603 GB, free: 8.793 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.7855, allocations: 136.5 kB / 0.7604 GB, free: 8.629 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003013/0.7858, allocations: 212.5 kB / 0.7606 GB, free: 8.414 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/0.7859, allocations: 33.69 kB / 0.7607 GB, free: 8.375 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.7861, allocations: 156.1 kB / 0.7608 GB, free: 8.219 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 6.108e-05/0.7861, allocations: 39.44 kB / 0.7608 GB, free: 8.18 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.7862, allocations: 4 kB / 0.7608 GB, free: 8.176 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7864, allocations: 334.8 kB / 0.7612 GB, free: 7.84 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.7866, allocations: 87.97 kB / 0.7612 GB, free: 7.754 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002229/0.7868, allocations: 123.4 kB / 0.7614 GB, free: 7.621 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.7871, allocations: 83.08 kB / 0.7614 GB, free: 7.543 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.865e-06/0.7871, allocations: 0 / 0.7614 GB, free: 7.543 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006646/0.7878, allocations: 241.4 kB / 0.7617 GB, free: 7.301 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 6.175e-05/0.7879, allocations: 37.7 kB / 0.7617 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.346e-06/0.7879, allocations: 0 / 0.7617 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.7879, allocations: 0 / 0.7617 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.7881, allocations: 27.98 kB / 0.7617 GB, free: 7.23 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.692e-06/0.7881, allocations: 4 kB / 0.7617 GB, free: 7.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/0.7884, allocations: 43.77 kB / 0.7618 GB, free: 7.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.191e-05/0.7884, allocations: 8 kB / 0.7618 GB, free: 7.176 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.0001831/0.7886, allocations: 155.3 kB / 0.7619 GB, free: 7.016 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.861e-05/0.7887, allocations: 19.81 kB / 0.762 GB, free: 6.996 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.7888, allocations: 25.95 kB / 0.762 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-06/0.7888, allocations: 0 / 0.762 GB, free: 6.969 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.037e-06/0.7888, allocations: 8.078 kB / 0.762 GB, free: 6.961 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.7888, allocations: 3.938 kB / 0.762 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/0.7892, allocations: 261.9 kB / 0.7622 GB, free: 6.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-06/0.7892, allocations: 0 / 0.7622 GB, free: 6.664 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.7894, allocations: 19.98 kB / 0.7623 GB, free: 6.645 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.838e-06/0.7894, allocations: 7.938 kB / 0.7623 GB, free: 6.637 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.494e-05/0.7895, allocations: 11.98 kB / 0.7623 GB, free: 6.625 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.722e-06/0.7895, allocations: 4 kB / 0.7623 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.087e-06/0.7895, allocations: 0 / 0.7623 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009991/0.7905, allocations: 402.1 kB / 0.7627 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.512e-05/0.7907, allocations: 92.94 kB / 0.7628 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.293e-05/0.7907, allocations: 4 kB / 0.7628 GB, free: 6.098 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.791, allocations: 32.05 kB / 0.7628 GB, free: 6.066 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.7911, allocations: 23.95 kB / 0.7628 GB, free: 6.043 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/0.7912, allocations: 15.98 kB / 0.7628 GB, free: 6.027 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002404/0.7914, allocations: 172.5 kB / 0.763 GB, free: 5.855 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.78e-07/0.7914, allocations: 3.938 kB / 0.763 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004319/0.7919, allocations: 59.84 kB / 0.7631 GB, free: 5.793 MB / 0.6355 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.000279/0.7922, allocations: 139.3 kB / 0.7632 GB, free: 5.645 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0004925/0.7927, allocations: 255.2 kB / 0.7634 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.7927, allocations: 4 kB / 0.7634 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002509/0.7929, allocations: 167.4 kB / 0.7636 GB, free: 5.203 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003332/0.7933, allocations: 32.36 kB / 0.7636 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.7944, allocations: 331.2 kB / 0.7639 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.7949, allocations: 0.7554 MB / 0.7647 GB, free: 4.047 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001247/0.795, allocations: 12.77 kB / 0.7647 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.454e-05/0.7951, allocations: 19.38 kB / 0.7647 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of SimCode: time 1.759e-06/0.7951, allocations: 0 / 0.7647 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of Templates: time 0.007623/0.8028, allocations: 2.176 MB / 0.7668 GB, free: 1.848 MB / 0.6355 GB