Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001347/0.001347, allocations: 196.5 kB / 16.14 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.423/2.423, allocations: 437 MB / 0.7099 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 63.89 kB / 0.8687 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6049/0.6062, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00334/0.6096, allocations: 2.009 MB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.6109, allocations: 0.7325 MB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.6111, allocations: 4 kB / 1.019 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.6113, allocations: 75.75 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.6115, allocations: 83.7 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.612, allocations: 157 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.6123, allocations: 239.4 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.6125, allocations: 66.67 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.6126, allocations: 107.7 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.6128, allocations: 139.5 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.6128, allocations: 12 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.613, allocations: 79.94 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.47e-05/0.6131, allocations: 51.81 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.6132, allocations: 91.34 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.6135, allocations: 291 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.6135, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.72e-07/0.6135, allocations: 0 / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.6135, allocations: 4 kB / 1.021 GB, free: 14.67 MB / 0.7794 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.0008103/0.6144, allocations: 0.578 MB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.6144, allocations: 12.03 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.178e-05/0.6145, allocations: 46.73 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.969e-05/0.6145, allocations: 28.66 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.6149, allocations: 302.8 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.615, allocations: 16.38 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.615, allocations: 12.38 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003586/0.6154, allocations: 219.1 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.6154, allocations: 7.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.6154, allocations: 4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.6154, allocations: 4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002423/0.6157, allocations: 130 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008054/0.6165, allocations: 0.6808 MB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003556/0.6168, allocations: 170.5 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.617, allocations: 96.95 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.617, allocations: 8.031 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003139/0.6174, allocations: 172.9 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.6174, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0006427/0.618, allocations: 378.9 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.6181, allocations: 136.5 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.6183, allocations: 274.7 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.6184, allocations: 33.7 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.6185, allocations: 156.2 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.6185, allocations: 43.45 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-05/0.6186, allocations: 41.7 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.6187, allocations: 342.8 kB / 1.024 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.6189, allocations: 91.86 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.6191, allocations: 126 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.6194, allocations: 244.5 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6194, allocations: 0 / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004752/0.6199, allocations: 327 kB / 1.025 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.784e-05/0.6199, allocations: 41.69 kB / 1.025 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.62, allocations: 3.938 kB / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.62, allocations: 96 / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.6201, allocations: 27.98 kB / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.6201, allocations: 0 / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.6202, allocations: 23.83 kB / 1.025 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.6203, allocations: 8 kB / 1.025 GB, free: 9.609 MB / 0.7794 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.0001612/0.6204, allocations: 199.9 kB / 1.026 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/0.6205, allocations: 27.7 kB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.6205, allocations: 37.83 kB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.6205, allocations: 0 / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6206, allocations: 0 / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.6206, allocations: 0 / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.6208, allocations: 301.3 kB / 1.026 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6208, allocations: 0 / 1.026 GB, free: 8.992 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.6209, allocations: 15.98 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.6209, allocations: 4 kB / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.6209, allocations: 0 / 1.026 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.621, allocations: 4 kB / 1.026 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.621, allocations: 0 / 1.026 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.6217, allocations: 480.3 kB / 1.026 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.699e-05/0.6217, allocations: 96.86 kB / 1.026 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.305e-05/0.6218, allocations: 8 kB / 1.026 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.6219, allocations: 11.98 kB / 1.026 GB, free: 8.344 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.622, allocations: 23.95 kB / 1.026 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.622, allocations: 8.062 kB / 1.026 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001707/0.6222, allocations: 205.9 kB / 1.027 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6222, allocations: 0 / 1.027 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002784/0.6225, allocations: 63.97 kB / 1.027 GB, free: 8.051 MB / 0.7794 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.0009958/0.6235, allocations: 1.02 MB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004407/0.6239, allocations: 303.2 kB / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.6239, allocations: 0 / 1.028 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.6242, allocations: 183.3 kB / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.6245, allocations: 38.09 kB / 1.028 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003345/0.6278, allocations: 2.83 MB / 1.031 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.6281, allocations: 0.7478 MB / 1.032 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.419e-05/0.6282, allocations: 21.53 kB / 1.032 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.6283, allocations: 71.42 kB / 1.032 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.6283, allocations: 0 / 1.032 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.6433, allocations: 4.938 MB / 1.037 GB, free: 13.83 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.6434, allocations: 212.1 kB / 1.037 GB, free: 13.57 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.342, allocations: 0 / 1.037 GB, free: 13.57 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)