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.001611/0.001611, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002364/0.002364, allocations: 199.1 kB / 16.26 MB, free: 6.621 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.469/1.469, allocations: 222.9 MB / 239.9 MB, free: 4.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.925/2.925, allocations: 472.6 MB / 0.7448 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002348/0.002348, allocations: 63.34 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3848, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004124/0.389, allocations: 2.001 MB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001889/0.3909, allocations: 0.7051 MB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003072/0.3913, allocations: 3.938 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.3917, allocations: 71.78 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.392, allocations: 87.67 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008723/0.3928, allocations: 167.2 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.3933, allocations: 267.2 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.3935, allocations: 78.09 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000221/0.3938, allocations: 111.7 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.394, allocations: 151.5 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.566e-05/0.3941, allocations: 23.94 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.3942, allocations: 95.91 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.595e-05/0.3943, allocations: 59.77 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.3945, allocations: 107.4 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004029/0.3949, allocations: 299.1 kB / 1.072 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3949, allocations: 4 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3949, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.3949, allocations: 0 / 1.072 GB, free: 6.539 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.0009549/0.3959, allocations: 0.5741 MB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.396, allocations: 11.97 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.033e-05/0.396, allocations: 32.56 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000462/0.3965, allocations: 306.9 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.3966, allocations: 8.375 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.3966, allocations: 16.38 kB / 1.073 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.397, allocations: 223.2 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.397, allocations: 8 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.328e-05/0.397, allocations: 4 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3971, allocations: 7.938 kB / 1.073 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.3973, allocations: 132.3 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009122/0.3982, allocations: 0.6846 MB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003594/0.3986, allocations: 174.5 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.3988, allocations: 100.8 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.3988, allocations: 0 / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000353/0.3992, allocations: 177.1 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.3992, allocations: 0 / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006867/0.3999, allocations: 368.8 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.4, allocations: 136.5 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003216/0.4003, allocations: 282.5 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.4003, allocations: 33.7 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.4005, allocations: 152.2 kB / 1.075 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.4006, allocations: 47.36 kB / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.4007, allocations: 41.7 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001999/0.4009, allocations: 338.8 kB / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.4011, allocations: 87.89 kB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.4013, allocations: 133.1 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.4017, allocations: 238.8 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4018, allocations: 0 / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006433/0.4024, allocations: 332.8 kB / 1.076 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.214e-05/0.4025, allocations: 37.69 kB / 1.076 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.4025, allocations: 4 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.4025, allocations: 4.094 kB / 1.076 GB, free: 1.574 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.4027, allocations: 27.92 kB / 1.076 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4027, allocations: 0 / 1.076 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.4029, allocations: 31.77 kB / 1.076 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.4029, allocations: 4 kB / 1.076 GB, free: 1.512 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.0002652/0.4032, allocations: 195.4 kB / 1.077 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.306e-05/0.4032, allocations: 23.72 kB / 1.077 GB, free: 1.281 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.963e-05/0.4033, allocations: 37.83 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.4033, allocations: 0 / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.4033, allocations: 0 / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4033, allocations: 0 / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.4037, allocations: 293.3 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4037, allocations: 0 / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.4038, allocations: 15.98 kB / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4039, allocations: 0 / 1.077 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.499e-05/0.4039, allocations: 4 kB / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.4039, allocations: 0 / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4039, allocations: 0 / 1.077 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000834/0.4047, allocations: 480.1 kB / 1.077 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.4049, allocations: 100.9 kB / 1.077 GB, free: 288 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.4049, allocations: 11.94 kB / 1.077 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.405, allocations: 11.98 kB / 1.077 GB, free: 264 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/0.4051, allocations: 23.95 kB / 1.078 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.4052, allocations: 16.06 kB / 1.078 GB, free: 224 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002281/0.4054, allocations: 198 kB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4054, allocations: 0 / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003593/0.4058, allocations: 68 kB / 1.078 GB, free: 15.95 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.0002936/0.4061, allocations: 131.2 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005639/0.4067, allocations: 303.2 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4067, allocations: 0 / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.4069, allocations: 183.4 kB / 1.078 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.4073, allocations: 28.55 kB / 1.078 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.4085, allocations: 0.5477 MB / 1.079 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004832/0.409, allocations: 0.756 MB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001141/0.4092, allocations: 17.55 kB / 1.08 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.4092, allocations: 19.42 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of SimCode: time 6.42e-07/0.4092, allocations: 4 kB / 1.08 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of Templates: time 0.007548/0.4168, allocations: 2.649 MB / 1.082 GB, free: 11.27 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)