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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001248/0.001248, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001306/0.001306, allocations: 192 kB / 16.25 MB, free: 6.637 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.232/1.232, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.328/2.328, allocations: 437 MB / 0.7101 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 71.89 kB / 0.8689 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4958/0.497, allocations: 151.6 MB / 1.017 GB, free: 2.625 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002631/0.4997, allocations: 2.012 MB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009112/0.5006, allocations: 0.7052 MB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.013e-05/0.5007, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.5009, allocations: 83.69 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.501, allocations: 79.75 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.5015, allocations: 163.8 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002438/0.5017, allocations: 267.4 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.5018, allocations: 64.16 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.502, allocations: 119.6 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.5021, allocations: 151.5 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.5022, allocations: 20 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.5023, allocations: 95.92 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.5024, allocations: 59.78 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.234e-05/0.5024, allocations: 111.3 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.5027, allocations: 299 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.5027, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5027, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.5027, allocations: 4 kB / 1.021 GB, free: 14.4 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.000652/0.5034, allocations: 0.5741 MB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.5034, allocations: 12.03 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.532e-05/0.5035, allocations: 50.73 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.5035, allocations: 28.66 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.5039, allocations: 298.8 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.5039, allocations: 12.38 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.5039, allocations: 12.38 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.5043, allocations: 227.1 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.5043, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.5043, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.5043, allocations: 4 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002165/0.5045, allocations: 136.3 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006836/0.5052, allocations: 0.6808 MB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.5056, allocations: 174.5 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.5057, allocations: 96.95 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.5057, allocations: 7.938 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002479/0.506, allocations: 175.3 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.353e-06/0.506, allocations: 0 / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0005726/0.5066, allocations: 378.8 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.5066, allocations: 132.5 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.5069, allocations: 278.7 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.5069, allocations: 29.7 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.507, allocations: 160.2 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.413e-05/0.507, allocations: 39.44 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.221e-05/0.5071, allocations: 41.7 kB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.43e-05/0.5072, allocations: 346.8 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.5073, allocations: 83.95 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.5075, allocations: 129 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.5078, allocations: 240.5 kB / 1.025 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.5078, allocations: 0 / 1.025 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004213/0.5082, allocations: 338.9 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.5083, allocations: 37.69 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.5083, allocations: 0 / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.277e-06/0.5083, allocations: 96 / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5084, allocations: 31.92 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.5084, allocations: 0 / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.5085, allocations: 27.83 kB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.529e-05/0.5086, allocations: 4 kB / 1.026 GB, free: 9.332 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.000143/0.5087, allocations: 195.9 kB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.414e-05/0.5087, allocations: 23.72 kB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.215e-05/0.5088, allocations: 37.83 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.5088, allocations: 0 / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.5088, allocations: 3.938 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.5088, allocations: 0 / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.509, allocations: 285.5 kB / 1.026 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.509, allocations: 0 / 1.026 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.955e-05/0.5091, allocations: 15.94 kB / 1.026 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.5092, allocations: 7.984 kB / 1.026 GB, free: 8.711 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.5092, allocations: 4 kB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.5092, allocations: 4 kB / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.5092, allocations: 0 / 1.026 GB, free: 8.703 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006129/0.5098, allocations: 479.9 kB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.5099, allocations: 96.86 kB / 1.027 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.5099, allocations: 8.188 kB / 1.027 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.51, allocations: 15.98 kB / 1.027 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.892e-05/0.5101, allocations: 23.91 kB / 1.027 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.5101, allocations: 16.05 kB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001512/0.5103, allocations: 198 kB / 1.027 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5103, allocations: 4 kB / 1.027 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000247/0.5105, allocations: 56.06 kB / 1.027 GB, free: 7.785 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.0008856/0.5114, allocations: 1.027 MB / 1.028 GB, free: 6.727 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000405/0.5118, allocations: 299.2 kB / 1.028 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5118, allocations: 0 / 1.028 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.512, allocations: 191.3 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.5123, allocations: 35.2 kB / 1.029 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.5152, allocations: 2.824 MB / 1.031 GB, free: 3.258 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002361/0.5155, allocations: 0.7514 MB / 1.032 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.976e-05/0.5156, allocations: 21.55 kB / 1.032 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.17e-05/0.5157, allocations: 75.41 kB / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5157, allocations: 0 / 1.032 GB, free: 2.387 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.52/1.036, allocations: 5.097 MB / 1.037 GB, free: 13.42 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001909/1.036, allocations: 208.7 kB / 1.037 GB, free: 13.16 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/2.678, allocations: 3.625 kB / 1.037 GB, free: 13.16 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)