Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 107.5 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 198.8 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 222.8 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.632/1.632, allocations: 292.3 MB / 0.5492 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 66.44 kB / 0.6716 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2607, allocations: 114.6 MB / 0.7835 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003258/0.2641, allocations: 2.008 MB / 0.7855 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.2653, allocations: 0.7376 MB / 0.7862 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.2654, allocations: 7.938 kB / 0.7862 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.2657, allocations: 71.77 kB / 0.7863 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001127/0.2658, allocations: 79.7 kB / 0.7863 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.2663, allocations: 170.4 kB / 0.7865 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002797/0.2666, allocations: 267.4 kB / 0.7868 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.2668, allocations: 73.81 kB / 0.7868 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001366/0.2669, allocations: 111.7 kB / 0.7869 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.2671, allocations: 155.5 kB / 0.7871 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.2672, allocations: 23.94 kB / 0.7871 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.2673, allocations: 91.94 kB / 0.7872 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.353e-05/0.2674, allocations: 67.69 kB / 0.7873 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.2675, allocations: 107.3 kB / 0.7874 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.2678, allocations: 219.6 kB / 0.7876 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2678, allocations: 0 / 0.7876 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2678, allocations: 0 / 0.7876 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2678, allocations: 0 / 0.7876 GB, free: 9.73 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008249/0.2687, allocations: 0.5819 MB / 0.7881 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2687, allocations: 12.03 kB / 0.7882 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.317e-05/0.2688, allocations: 28.56 kB / 0.7882 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.2692, allocations: 298.9 kB / 0.7885 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.2692, allocations: 12.31 kB / 0.7885 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2693, allocations: 20.38 kB / 0.7885 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.2697, allocations: 223.3 kB / 0.7887 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2697, allocations: 0 / 0.7887 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.2698, allocations: 8 kB / 0.7887 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.2698, allocations: 4 kB / 0.7887 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.27, allocations: 136.3 kB / 0.7889 GB, free: 8.309 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008348/0.2709, allocations: 0.6846 MB / 0.7895 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.2712, allocations: 166.4 kB / 0.7897 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.2714, allocations: 96.95 kB / 0.7898 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.2714, allocations: 4 kB / 0.7898 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003587/0.2718, allocations: 177.1 kB / 0.7899 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2718, allocations: 0 / 0.7899 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006818/0.2725, allocations: 369.2 kB / 0.7903 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.2726, allocations: 132.5 kB / 0.7904 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.2729, allocations: 286.5 kB / 0.7907 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.2729, allocations: 33.7 kB / 0.7907 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.273, allocations: 156.2 kB / 0.7909 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.569e-05/0.2731, allocations: 47.38 kB / 0.7909 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.2732, allocations: 41.7 kB / 0.791 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2733, allocations: 338.8 kB / 0.7913 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.2735, allocations: 83.89 kB / 0.7914 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.2737, allocations: 137.1 kB / 0.7915 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.274, allocations: 234.7 kB / 0.7917 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.274, allocations: 0 / 0.7917 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004755/0.2745, allocations: 337.5 kB / 0.792 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.981e-05/0.2746, allocations: 37.69 kB / 0.7921 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2746, allocations: 4 kB / 0.7921 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.2746, allocations: 96 / 0.7921 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.2747, allocations: 27.86 kB / 0.7921 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2747, allocations: 4 kB / 0.7921 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.2749, allocations: 31.92 kB / 0.7921 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.2749, allocations: 4 kB / 0.7921 GB, free: 4.711 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001838/0.2751, allocations: 195.2 kB / 0.7923 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.995e-05/0.2751, allocations: 27.72 kB / 0.7924 GB, free: 4.48 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.379e-05/0.2752, allocations: 29.83 kB / 0.7924 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2752, allocations: 11.88 kB / 0.7924 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.2752, allocations: 0 / 0.7924 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2752, allocations: 3.984 kB / 0.7924 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.2755, allocations: 301.3 kB / 0.7927 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2755, allocations: 0 / 0.7927 GB, free: 4.094 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.881e-05/0.2756, allocations: 15.98 kB / 0.7927 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.2756, allocations: 0 / 0.7927 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.2756, allocations: 8 kB / 0.7927 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.2756, allocations: 0 / 0.7927 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2756, allocations: 0 / 0.7927 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006488/0.2763, allocations: 470.3 kB / 0.7932 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.2764, allocations: 96.8 kB / 0.7933 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/0.2764, allocations: 12 kB / 0.7933 GB, free: 3.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.87e-05/0.2765, allocations: 11.98 kB / 0.7933 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.2766, allocations: 27.95 kB / 0.7933 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.2766, allocations: 4 kB / 0.7933 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001698/0.2768, allocations: 202 kB / 0.7935 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2768, allocations: 0 / 0.7935 GB, free: 3.219 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002695/0.2771, allocations: 64.09 kB / 0.7936 GB, free: 3.156 MB / 0.6075 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002133/0.2773, allocations: 133.1 kB / 0.7937 GB, free: 3.023 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004709/0.2778, allocations: 299.2 kB / 0.794 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2778, allocations: 4 kB / 0.794 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002198/0.278, allocations: 179.5 kB / 0.7941 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.2784, allocations: 36.83 kB / 0.7942 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.2794, allocations: 0.5691 MB / 0.7947 GB, free: 1.891 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.2797, allocations: 0.7514 MB / 0.7955 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.244e-05/0.2798, allocations: 23.44 kB / 0.7955 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of SimCode: time 3.81e-07/0.2798, allocations: 0 / 0.7955 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of Templates: time 0.005172/0.285, allocations: 2.994 MB / 0.7984 GB, free: 14.11 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)