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.71/1.71, allocations: 288.2 MB / 303.2 MB, free: 8.125 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.001091/0.001091, allocations: 192 kB / 371.8 MB, free: 10.28 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.574/1.574, allocations: 205.4 MB / 0.6305 GB, free: 9.996 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.0008498/0.0008495, allocations: 104.7 kB / 0.7439 GB, free: 5.91 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003929, allocations: 15.69 kB / 0.8669 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2434, allocations: 115.3 MB / 0.9795 GB, free: 27.62 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001984/0.2454, allocations: 1.612 MB / 0.981 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009666/0.2464, allocations: 0.7023 MB / 0.9817 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.2465, allocations: 8 kB / 0.9817 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.2467, allocations: 71.75 kB / 0.9818 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.2468, allocations: 83.8 kB / 0.9819 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004356/0.2472, allocations: 138.8 kB / 0.982 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001847/0.2474, allocations: 143.8 kB / 0.9822 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.2476, allocations: 57.62 kB / 0.9822 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.58e-05/0.2477, allocations: 91.66 kB / 0.9823 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.2478, allocations: 103.6 kB / 0.9824 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.2478, allocations: 8 kB / 0.9824 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.248, allocations: 67.88 kB / 0.9825 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.775e-05/0.248, allocations: 47.81 kB / 0.9825 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.895e-05/0.2481, allocations: 57.58 kB / 0.9826 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.2483, allocations: 215.6 kB / 0.9828 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.2483, allocations: 4 kB / 0.9828 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2483, allocations: 0 / 0.9828 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.2483, allocations: 0 / 0.9828 GB, free: 24.21 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.0007662/0.2491, allocations: 0.5507 MB / 0.9833 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2491, allocations: 15.95 kB / 0.9833 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.834e-05/0.2492, allocations: 46.55 kB / 0.9834 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.023e-05/0.2492, allocations: 35.62 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.2497, allocations: 297.6 kB / 0.9837 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.2497, allocations: 16 kB / 0.9837 GB, free: 23.15 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.2497, allocations: 12 kB / 0.9837 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.2501, allocations: 223.1 kB / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.2501, allocations: 0 / 0.9839 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.2501, allocations: 12 kB / 0.9839 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.2502, allocations: 7.938 kB / 0.984 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.2504, allocations: 128.3 kB / 0.9841 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007354/0.2511, allocations: 0.6885 MB / 0.9847 GB, free: 22.01 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003167/0.2515, allocations: 178.6 kB / 0.9849 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.2515, allocations: 7.984 kB / 0.9849 GB, free: 21.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.2518, allocations: 173 kB / 0.9851 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.2518, allocations: 0 / 0.9851 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0006139/0.2524, allocations: 461.1 kB / 0.9855 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.2525, allocations: 136.5 kB / 0.9857 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.2527, allocations: 286.5 kB / 0.9859 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.2527, allocations: 29.7 kB / 0.986 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.562e-05/0.2528, allocations: 156.3 kB / 0.9861 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.2528, allocations: 39.36 kB / 0.9861 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.718e-06/0.2528, allocations: 4 kB / 0.9862 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.057e-05/0.2529, allocations: 338.8 kB / 0.9865 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/0.2531, allocations: 96.14 kB / 0.9866 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.2532, allocations: 137.4 kB / 0.9867 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.2534, allocations: 119.1 kB / 0.9868 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2534, allocations: 0 / 0.9868 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004079/0.2538, allocations: 341 kB / 0.9871 GB, free: 19.41 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.2539, allocations: 37.69 kB / 0.9872 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.2539, allocations: 8.094 kB / 0.9872 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2539, allocations: 0 / 0.9872 GB, free: 19.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.254, allocations: 31.92 kB / 0.9872 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.254, allocations: 0 / 0.9872 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.2542, allocations: 27.83 kB / 0.9872 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.2542, allocations: 12 kB / 0.9872 GB, free: 19.29 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.0001529/0.2543, allocations: 195.5 kB / 0.9874 GB, free: 19.08 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.2544, allocations: 23.72 kB / 0.9875 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.845e-05/0.2544, allocations: 29.83 kB / 0.9875 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2544, allocations: 0 / 0.9875 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2545, allocations: 3.938 kB / 0.9875 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2545, allocations: 0 / 0.9875 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.2547, allocations: 285.4 kB / 0.9878 GB, free: 18.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.2547, allocations: 7.953 kB / 0.9878 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.2548, allocations: 23.98 kB / 0.9878 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2548, allocations: 0 / 0.9878 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.2548, allocations: 4 kB / 0.9878 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2548, allocations: 96 / 0.9878 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2548, allocations: 3.938 kB / 0.9878 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/0.2554, allocations: 479.2 kB / 0.9883 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.84e-05/0.2555, allocations: 104.8 kB / 0.9884 GB, free: 18.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.919e-05/0.2555, allocations: 12 kB / 0.9884 GB, free: 18.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.2557, allocations: 15.98 kB / 0.9884 GB, free: 18.02 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.96e-05/0.2557, allocations: 27.94 kB / 0.9884 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.2558, allocations: 4 kB / 0.9884 GB, free: 17.99 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001697/0.2559, allocations: 213.9 kB / 0.9886 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.256, allocations: 0 / 0.9886 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002376/0.2562, allocations: 59.84 kB / 0.9887 GB, free: 17.72 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.0007797/0.257, allocations: 1.037 MB / 0.9897 GB, free: 16.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000399/0.2574, allocations: 304.8 kB / 0.99 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2574, allocations: 0 / 0.99 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.2576, allocations: 195.3 kB / 0.9902 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.2578, allocations: 24.55 kB / 0.9902 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002095/0.2599, allocations: 2.074 MB / 0.9922 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.2601, allocations: 0.7529 MB / 0.9929 GB, free: 13.2 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.167e-05/0.2602, allocations: 17.55 kB / 0.993 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/0.2603, allocations: 75.41 kB / 0.993 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.2603, allocations: 0 / 0.993 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01642/0.2767, allocations: 4.864 MB / 0.9978 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002138/0.277, allocations: 194.5 kB / 0.998 GB, free: 8.145 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/2.261, allocations: 0 / 0.998 GB, free: 8.145 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)