Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.857/1.857, allocations: 288.4 MB / 303.4 MB, free: 8.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 186 kB / 372 MB, free: 10.25 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.4 MB / 0.6307 GB, free: 9.973 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007521/0.0007523, allocations: 97.11 kB / 0.7441 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004391/0.0004392, allocations: 10.72 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.282, allocations: 115.3 MB / 0.9796 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002373/0.2845, allocations: 1.611 MB / 0.9812 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2859, allocations: 0.691 MB / 0.9818 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.2862, allocations: 11.94 kB / 0.9818 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.2865, allocations: 75.75 kB / 0.9819 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2866, allocations: 79.7 kB / 0.982 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007946/0.2874, allocations: 133.8 kB / 0.9821 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.2877, allocations: 219.5 kB / 0.9823 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.288, allocations: 61.52 kB / 0.9824 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.2881, allocations: 91.67 kB / 0.9825 GB, free: 24.69 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.2883, allocations: 115.5 kB / 0.9826 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.081e-05/0.2884, allocations: 8 kB / 0.9826 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.2885, allocations: 67.94 kB / 0.9827 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.164e-05/0.2886, allocations: 43.83 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.369e-05/0.2887, allocations: 57.58 kB / 0.9828 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.289, allocations: 211.6 kB / 0.983 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.289, allocations: 4 kB / 0.983 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.336e-06/0.289, allocations: 0 / 0.983 GB, free: 24.19 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.866e-06/0.289, allocations: 0 / 0.983 GB, free: 24.19 MB / 0.6198 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.001035/0.2901, allocations: 0.5584 MB / 0.9835 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.2901, allocations: 12.02 kB / 0.9835 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.612e-05/0.2902, allocations: 31.62 kB / 0.9835 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005216/0.2907, allocations: 297.5 kB / 0.9838 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.2908, allocations: 20 kB / 0.9838 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.529e-05/0.2908, allocations: 12 kB / 0.9839 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/0.2913, allocations: 219.2 kB / 0.9841 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2913, allocations: 0 / 0.9841 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.2914, allocations: 8 kB / 0.9841 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.2914, allocations: 8 kB / 0.9841 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/0.2916, allocations: 128.3 kB / 0.9842 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008087/0.2925, allocations: 0.7001 MB / 0.9849 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003375/0.2928, allocations: 174.7 kB / 0.9851 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.293, allocations: 104.8 kB / 0.9852 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.293, allocations: 3.984 kB / 0.9852 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003271/0.2933, allocations: 173.1 kB / 0.9853 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.2933, allocations: 0 / 0.9853 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0006319/0.294, allocations: 385 kB / 0.9857 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.2941, allocations: 140.5 kB / 0.9858 GB, free: 21 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.2943, allocations: 282.6 kB / 0.9861 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.2943, allocations: 29.7 kB / 0.9861 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.2945, allocations: 156.2 kB / 0.9863 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.2945, allocations: 47.44 kB / 0.9863 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-06/0.2946, allocations: 0 / 0.9863 GB, free: 20.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.544e-05/0.2946, allocations: 346.8 kB / 0.9866 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.2948, allocations: 88.14 kB / 0.9867 GB, free: 20.04 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.295, allocations: 134.1 kB / 0.9869 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001507/0.2951, allocations: 114.2 kB / 0.987 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2951, allocations: 0 / 0.987 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004238/0.2956, allocations: 353.1 kB / 0.9873 GB, free: 19.42 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.986e-05/0.2956, allocations: 33.7 kB / 0.9873 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2956, allocations: 0 / 0.9873 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2957, allocations: 4 kB / 0.9873 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2958, allocations: 23.98 kB / 0.9874 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.2958, allocations: 3.984 kB / 0.9874 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.2959, allocations: 35.92 kB / 0.9874 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.296, allocations: 7.984 kB / 0.9874 GB, free: 19.31 MB / 0.6198 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 ($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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001559/0.2961, allocations: 191.4 kB / 0.9876 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.2962, allocations: 23.81 kB / 0.9876 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.022e-05/0.2962, allocations: 33.77 kB / 0.9876 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2962, allocations: 4 kB / 0.9877 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2962, allocations: 0 / 0.9877 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.2963, allocations: 3.984 kB / 0.9877 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.2965, allocations: 289.5 kB / 0.9879 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2965, allocations: 3.953 kB / 0.9879 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.2966, allocations: 19.98 kB / 0.988 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2966, allocations: 3.984 kB / 0.988 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.2966, allocations: 15.97 kB / 0.988 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2966, allocations: 0 / 0.988 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2966, allocations: 3.938 kB / 0.988 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006247/0.2973, allocations: 470.9 kB / 0.9884 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.2973, allocations: 100.8 kB / 0.9885 GB, free: 18.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.2974, allocations: 8 kB / 0.9885 GB, free: 18.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.2975, allocations: 24.05 kB / 0.9886 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.526e-05/0.2976, allocations: 23.95 kB / 0.9886 GB, free: 18.01 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.2976, allocations: 8 kB / 0.9886 GB, free: 18 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001428/0.2977, allocations: 197.9 kB / 0.9888 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.092e-06/0.2978, allocations: 4 kB / 0.9888 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002547/0.298, allocations: 63.78 kB / 0.9888 GB, free: 17.75 MB / 0.6198 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 (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.0001999/0.2982, allocations: 133 kB / 0.989 GB, free: 17.61 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004274/0.2987, allocations: 300 kB / 0.9892 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2987, allocations: 0 / 0.9892 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2989, allocations: 187.3 kB / 0.9894 GB, free: 17.11 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.2992, allocations: 38.44 kB / 0.9895 GB, free: 17.07 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008833/0.3001, allocations: 0.5144 MB / 0.99 GB, free: 16.53 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.3003, allocations: 0.7519 MB / 0.9907 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.334e-05/0.3003, allocations: 21.55 kB / 0.9907 GB, free: 15.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.3004, allocations: 15.44 kB / 0.9907 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.3004, allocations: 0 / 0.9907 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of Templates: time 0.00521/0.3056, allocations: 2.455 MB / 0.9931 GB, free: 13.29 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)