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.000886/0.000886, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.005285/0.005285, allocations: 171.1 kB / 16.27 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.235/1.235, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.394/2.394, allocations: 437.8 MB / 0.7121 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000296/0.000296, allocations: 11.98 kB / 0.8729 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5296/0.5299, allocations: 153.8 MB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002013/0.5319, allocations: 1.666 MB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.5331, allocations: 0.7053 MB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.729e-05/0.5332, allocations: 7.938 kB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.5334, allocations: 71.77 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.5335, allocations: 91.67 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004794/0.534, allocations: 151.8 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00026/0.5343, allocations: 239.5 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.5345, allocations: 60.14 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.5346, allocations: 99.55 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.5348, allocations: 123.5 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.5348, allocations: 8 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000123/0.5349, allocations: 79.88 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.535, allocations: 43.83 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.721e-05/0.5351, allocations: 117 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002776/0.5354, allocations: 287 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.5354, allocations: 0 / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5354, allocations: 0 / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.5354, allocations: 0 / 1.027 GB, free: 12.05 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.0007422/0.5362, allocations: 0.547 MB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.5362, allocations: 8.031 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.882e-05/0.5363, allocations: 50.67 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.5363, allocations: 28.66 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.5367, allocations: 310.8 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.5368, allocations: 12.38 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.5368, allocations: 20.36 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003734/0.5372, allocations: 227.1 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.5372, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.5372, allocations: 8 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.5373, allocations: 0 / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/0.5375, allocations: 138 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007933/0.5383, allocations: 0.6847 MB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.5387, allocations: 174.5 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.5389, allocations: 112.6 kB / 1.029 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.268e-05/0.5389, allocations: 0 / 1.029 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002943/0.5392, allocations: 177.1 kB / 1.029 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.5392, allocations: 3.938 kB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0006552/0.5399, allocations: 389.2 kB / 1.03 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.5399, allocations: 136.5 kB / 1.03 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.5402, allocations: 282.7 kB / 1.03 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.5402, allocations: 25.7 kB / 1.03 GB, free: 8.492 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.5403, allocations: 160.2 kB / 1.03 GB, free: 8.332 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.5404, allocations: 43.44 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.5404, allocations: 29.7 kB / 1.03 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5405, allocations: 342.8 kB / 1.031 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.5407, allocations: 87.95 kB / 1.031 GB, free: 7.824 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.5409, allocations: 133.9 kB / 1.031 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.5412, allocations: 248.4 kB / 1.031 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.5413, allocations: 11.94 kB / 1.031 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005007/0.5418, allocations: 332.5 kB / 1.031 GB, free: 7.062 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.5418, allocations: 43.41 kB / 1.031 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.5418, allocations: 3.984 kB / 1.031 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.5418, allocations: 0 / 1.031 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.542, allocations: 32.02 kB / 1.031 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.542, allocations: 4 kB / 1.031 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.5421, allocations: 31.73 kB / 1.031 GB, free: 6.945 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.5421, allocations: 8 kB / 1.031 GB, free: 6.938 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.0001677/0.5423, allocations: 196.5 kB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.5423, allocations: 31.72 kB / 1.032 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.5424, allocations: 29.83 kB / 1.032 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.5424, allocations: 0 / 1.032 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5424, allocations: 4 kB / 1.032 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.5424, allocations: 4 kB / 1.032 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002273/0.5427, allocations: 289.4 kB / 1.032 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.5427, allocations: 0 / 1.032 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5428, allocations: 19.92 kB / 1.032 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5428, allocations: 0 / 1.032 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.5428, allocations: 12 kB / 1.032 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.5428, allocations: 0 / 1.032 GB, free: 6.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5428, allocations: 4 kB / 1.032 GB, free: 6.297 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000682/0.5435, allocations: 486.1 kB / 1.032 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.5436, allocations: 92.86 kB / 1.033 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.934e-05/0.5436, allocations: 12 kB / 1.033 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.5437, allocations: 11.98 kB / 1.033 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.5438, allocations: 27.95 kB / 1.033 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.5438, allocations: 4 kB / 1.033 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001695/0.544, allocations: 202 kB / 1.033 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.544, allocations: 4.062 kB / 1.033 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002612/0.5443, allocations: 64.05 kB / 1.033 GB, free: 5.371 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.001006/0.5453, allocations: 1.037 MB / 1.034 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004506/0.5458, allocations: 303.4 kB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.5458, allocations: 4 kB / 1.034 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002241/0.546, allocations: 187.5 kB / 1.034 GB, free: 3.793 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.5463, allocations: 32.67 kB / 1.034 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003307/0.5496, allocations: 2.863 MB / 1.037 GB, free: 0.7852 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.5499, allocations: 0.7478 MB / 1.038 GB, free: 12 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.207e-05/0.55, allocations: 21.53 kB / 1.038 GB, free: 15.99 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.611e-05/0.5501, allocations: 67.42 kB / 1.038 GB, free: 15.93 MB / 0.795 GB Notification: Performance of SimCode: time 2.91e-07/0.5501, allocations: 0 / 1.038 GB, free: 15.93 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01441/0.5645, allocations: 4.861 MB / 1.043 GB, free: 11.21 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001657/0.5647, allocations: 200.2 kB / 1.043 GB, free: 10.96 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.652, allocations: 4 kB / 1.043 GB, free: 10.95 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)