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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.866/1.866, allocations: 288.4 MB / 303.3 MB, free: 8.211 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.0009923/0.0009923, allocations: 190.8 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.82/1.82, allocations: 205.4 MB / 0.6307 GB, free: 9.969 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.00109/0.00109, allocations: 98.3 kB / 0.744 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004512/0.0004512, allocations: 15.88 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2513, allocations: 115.3 MB / 0.9796 GB, free: 27.56 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002506/0.2539, allocations: 1.608 MB / 0.9812 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.2553, allocations: 0.7023 MB / 0.9819 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.2556, allocations: 4 kB / 0.9819 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.2559, allocations: 75.77 kB / 0.982 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.2561, allocations: 87.61 kB / 0.9821 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007426/0.2568, allocations: 133.5 kB / 0.9822 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.2573, allocations: 223.4 kB / 0.9824 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.2575, allocations: 49.66 kB / 0.9825 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000265/0.2578, allocations: 87.66 kB / 0.9825 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.2581, allocations: 119.5 kB / 0.9826 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.675e-05/0.2581, allocations: 4 kB / 0.9827 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.2583, allocations: 67.94 kB / 0.9827 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.2583, allocations: 39.84 kB / 0.9828 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.992e-05/0.2584, allocations: 65.52 kB / 0.9828 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.2587, allocations: 223.5 kB / 0.983 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2587, allocations: 0 / 0.983 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.933e-06/0.2587, allocations: 0 / 0.983 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.2587, allocations: 0 / 0.983 GB, free: 24.07 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.0008552/0.2596, allocations: 0.5507 MB / 0.9836 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.2596, allocations: 16.02 kB / 0.9836 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.073e-05/0.2597, allocations: 46.55 kB / 0.9836 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.2598, allocations: 31.62 kB / 0.9837 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.2603, allocations: 293.6 kB / 0.9839 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.2603, allocations: 12 kB / 0.9839 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.2604, allocations: 12 kB / 0.984 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003692/0.2607, allocations: 223.1 kB / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.2608, allocations: 4 kB / 0.9842 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.2608, allocations: 8 kB / 0.9842 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2608, allocations: 4 kB / 0.9842 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002421/0.261, allocations: 128.4 kB / 0.9843 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000816/0.2619, allocations: 0.7001 MB / 0.985 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.2622, allocations: 182.5 kB / 0.9852 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.2624, allocations: 105 kB / 0.9853 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.2624, allocations: 4 kB / 0.9853 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/0.2627, allocations: 173 kB / 0.9854 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 1.804e-06/0.2627, allocations: 0 / 0.9854 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0006084/0.2634, allocations: 383 kB / 0.9858 GB, free: 21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.2634, allocations: 136.5 kB / 0.9859 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.2637, allocations: 290.5 kB / 0.9862 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.2637, allocations: 25.7 kB / 0.9862 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.2638, allocations: 156.3 kB / 0.9864 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.24e-05/0.2638, allocations: 39.36 kB / 0.9864 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-06/0.2638, allocations: 12.09 kB / 0.9864 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.151e-05/0.2639, allocations: 342.8 kB / 0.9868 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.2641, allocations: 84.14 kB / 0.9868 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.2642, allocations: 143 kB / 0.987 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.2644, allocations: 110.7 kB / 0.9871 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2644, allocations: 0 / 0.9871 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004215/0.2649, allocations: 345.2 kB / 0.9874 GB, free: 19.26 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.54e-05/0.2649, allocations: 41.69 kB / 0.9875 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2649, allocations: 0 / 0.9875 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2649, allocations: 4 kB / 0.9875 GB, free: 19.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.2651, allocations: 27.92 kB / 0.9875 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.2651, allocations: 0 / 0.9875 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.2652, allocations: 31.92 kB / 0.9875 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.2652, allocations: 8 kB / 0.9875 GB, free: 19.14 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.0001471/0.2654, allocations: 191.5 kB / 0.9877 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.2654, allocations: 23.72 kB / 0.9877 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.424e-05/0.2655, allocations: 25.83 kB / 0.9877 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2655, allocations: 4 kB / 0.9878 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2655, allocations: 7.938 kB / 0.9878 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2655, allocations: 0 / 0.9878 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.2657, allocations: 297.4 kB / 0.988 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2657, allocations: 0 / 0.988 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.2658, allocations: 19.94 kB / 0.9881 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2658, allocations: 3.984 kB / 0.9881 GB, free: 18.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.2659, allocations: 8 kB / 0.9881 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2659, allocations: 0 / 0.9881 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2659, allocations: 0 / 0.9881 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.2665, allocations: 480.5 kB / 0.9885 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.2665, allocations: 100.8 kB / 0.9886 GB, free: 17.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.011e-05/0.2666, allocations: 8 kB / 0.9886 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.2667, allocations: 20.05 kB / 0.9887 GB, free: 17.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.2668, allocations: 27.95 kB / 0.9887 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.2668, allocations: 4 kB / 0.9887 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001365/0.2669, allocations: 201.9 kB / 0.9889 GB, free: 17.65 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2669, allocations: 4 kB / 0.9889 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002425/0.2672, allocations: 55.97 kB / 0.9889 GB, free: 17.59 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.0008393/0.268, allocations: 1.042 MB / 0.99 GB, free: 16.51 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000453/0.2685, allocations: 303.4 kB / 0.9902 GB, free: 16.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2685, allocations: 0 / 0.9902 GB, free: 16.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.2687, allocations: 191.4 kB / 0.9904 GB, free: 16 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.269, allocations: 36.53 kB / 0.9905 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.2714, allocations: 1.65 MB / 0.9921 GB, free: 14.25 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.2717, allocations: 0.7555 MB / 0.9928 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.156e-05/0.2718, allocations: 13.55 kB / 0.9928 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.255e-05/0.2719, allocations: 79.41 kB / 0.9929 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of SimCode: time 2.5e-07/0.2719, allocations: 0 / 0.9929 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.2889, allocations: 4.882 MB / 0.9977 GB, free: 8.668 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.2891, allocations: 195.1 kB / 0.9979 GB, free: 8.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.032/2.321, allocations: 0 / 0.9979 GB, free: 8.43 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)