Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.862/2.862, allocations: 472.6 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 60.56 kB / 0.912 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3224, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003694/0.3262, allocations: 1.952 MB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3277, allocations: 0.7167 MB / 1.071 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.3279, allocations: 4 kB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002581/0.3281, allocations: 83.62 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001667/0.3283, allocations: 95.56 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006537/0.329, allocations: 183.7 kB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003768/0.3294, allocations: 267.2 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.3296, allocations: 74.08 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.3298, allocations: 115.6 kB / 1.072 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.33, allocations: 147.5 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.3301, allocations: 20 kB / 1.072 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.3303, allocations: 95.94 kB / 1.072 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.3304, allocations: 59.77 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.3306, allocations: 115.3 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.331, allocations: 291.2 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.331, allocations: 3.984 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.743e-06/0.331, allocations: 0 / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.799e-06/0.331, allocations: 0 / 1.072 GB, free: 6.223 MB / 0.8262 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.0008875/0.3319, allocations: 0.5741 MB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.332, allocations: 8.031 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.36e-05/0.3321, allocations: 36.56 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004431/0.3325, allocations: 298.9 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.3325, allocations: 16.31 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.3326, allocations: 12.38 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/0.333, allocations: 231.7 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.333, allocations: 4 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.333, allocations: 4 kB / 1.073 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.333, allocations: 4 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.3333, allocations: 128.4 kB / 1.074 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008327/0.3341, allocations: 0.6924 MB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.3345, allocations: 162.6 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.3347, allocations: 100.8 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.291e-05/0.3347, allocations: 0 / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003259/0.3351, allocations: 173 kB / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/0.3351, allocations: 0 / 1.075 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006946/0.3358, allocations: 373 kB / 1.075 GB, free: 3.223 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.087e-05/0.3359, allocations: 136.5 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.3362, allocations: 274.6 kB / 1.075 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.3362, allocations: 41.69 kB / 1.075 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/0.3364, allocations: 160.3 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.422e-05/0.3364, allocations: 47.3 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.752e-05/0.3365, allocations: 41.7 kB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3367, allocations: 338.8 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.3369, allocations: 83.91 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.3371, allocations: 134 kB / 1.076 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003274/0.3374, allocations: 239.9 kB / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3374, allocations: 0 / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005102/0.3379, allocations: 356.4 kB / 1.077 GB, free: 1.301 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/0.338, allocations: 29.7 kB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.338, allocations: 7.938 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.338, allocations: 0 / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.3381, allocations: 23.98 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.3382, allocations: 0 / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.3383, allocations: 27.83 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.495e-05/0.3383, allocations: 12.08 kB / 1.077 GB, free: 1.195 MB / 0.8262 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.0001731/0.3385, allocations: 191.4 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.499e-05/0.3386, allocations: 23.72 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.106e-05/0.3386, allocations: 33.83 kB / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3386, allocations: 0 / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3386, allocations: 0 / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3387, allocations: 0 / 1.077 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.3389, allocations: 297.3 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3389, allocations: 4 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.3391, allocations: 15.98 kB / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3391, allocations: 0 / 1.077 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3391, allocations: 8 kB / 1.077 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.3391, allocations: 3.984 kB / 1.077 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3391, allocations: 4 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007247/0.3398, allocations: 466.2 kB / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.846e-05/0.3399, allocations: 96.86 kB / 1.078 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.34, allocations: 11.98 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3401, allocations: 11.98 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.515e-05/0.3402, allocations: 27.95 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.3402, allocations: 4 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002007/0.3404, allocations: 205.9 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4e-07/0.3405, allocations: 0 / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003129/0.3408, allocations: 59.84 kB / 1.078 GB, free: 15.65 MB / 0.8419 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.0002271/0.341, allocations: 139.7 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005155/0.3415, allocations: 295.2 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3415, allocations: 96 / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.3418, allocations: 191.2 kB / 1.079 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.3421, allocations: 36.73 kB / 1.079 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.3431, allocations: 482.8 kB / 1.079 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.3435, allocations: 0.7521 MB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.093e-05/0.3436, allocations: 21.55 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.346e-05/0.3436, allocations: 15.44 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.3436, allocations: 0 / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.006234/0.3499, allocations: 2.835 MB / 1.083 GB, free: 10.85 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)