Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001545/0.001546, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002353/0.002354, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.735/1.735, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.571/1.571, allocations: 251.9 MB / 0.51 GB, free: 4.867 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005731/0.0005733, allocations: 15.44 kB / 0.6241 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6096/0.6102, allocations: 106.3 MB / 0.728 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002444/0.6127, allocations: 1.618 MB / 0.7296 GB, free: 9.844 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.614, allocations: 0.7003 MB / 0.7302 GB, free: 9.137 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.6141, allocations: 0 / 0.7302 GB, free: 9.137 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.6143, allocations: 79.75 kB / 0.7303 GB, free: 9.059 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.6145, allocations: 83.73 kB / 0.7304 GB, free: 8.977 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.6151, allocations: 134.6 kB / 0.7305 GB, free: 8.848 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.6154, allocations: 143.8 kB / 0.7307 GB, free: 8.707 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.6155, allocations: 61.53 kB / 0.7307 GB, free: 8.645 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.6156, allocations: 87.72 kB / 0.7308 GB, free: 8.559 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.6158, allocations: 111.6 kB / 0.7309 GB, free: 8.449 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.203e-05/0.6159, allocations: 4 kB / 0.7309 GB, free: 8.445 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.616, allocations: 67.94 kB / 0.731 GB, free: 8.379 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.891e-05/0.6161, allocations: 43.81 kB / 0.731 GB, free: 8.336 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 6.273e-05/0.6161, allocations: 61.58 kB / 0.7311 GB, free: 8.27 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.6164, allocations: 215.5 kB / 0.7313 GB, free: 8.059 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.6164, allocations: 4 kB / 0.7313 GB, free: 8.055 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.014e-06/0.6164, allocations: 0 / 0.7313 GB, free: 8.055 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.6164, allocations: 0 / 0.7313 GB, free: 8.055 MB / 0.545 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.0009054/0.6173, allocations: 0.5468 MB / 0.7318 GB, free: 7.453 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.6174, allocations: 12.03 kB / 0.7318 GB, free: 7.441 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.765e-05/0.6174, allocations: 27.67 kB / 0.7319 GB, free: 7.414 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005122/0.6179, allocations: 305.5 kB / 0.7321 GB, free: 7.074 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.618, allocations: 8 kB / 0.7322 GB, free: 7.066 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.618, allocations: 20 kB / 0.7322 GB, free: 7.047 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.6184, allocations: 227.9 kB / 0.7324 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.6185, allocations: 0 / 0.7324 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.6185, allocations: 4 kB / 0.7324 GB, free: 6.801 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.6185, allocations: 8 kB / 0.7324 GB, free: 6.793 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002493/0.6188, allocations: 137.8 kB / 0.7325 GB, free: 6.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009683/0.6197, allocations: 0.6886 MB / 0.7332 GB, free: 5.914 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003828/0.6201, allocations: 182.6 kB / 0.7334 GB, free: 5.727 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.6202, allocations: 0 / 0.7334 GB, free: 5.727 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003438/0.6205, allocations: 173 kB / 0.7335 GB, free: 5.539 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.6205, allocations: 0 / 0.7335 GB, free: 5.539 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0007596/0.6213, allocations: 475.9 kB / 0.734 GB, free: 5.043 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.6214, allocations: 136.5 kB / 0.7341 GB, free: 4.879 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.6217, allocations: 282.7 kB / 0.7344 GB, free: 4.602 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.422e-05/0.6218, allocations: 29.7 kB / 0.7344 GB, free: 4.566 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.6219, allocations: 156.2 kB / 0.7346 GB, free: 4.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.214e-05/0.622, allocations: 43.44 kB / 0.7346 GB, free: 4.367 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.098e-05/0.622, allocations: 4 kB / 0.7346 GB, free: 4.363 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.6222, allocations: 338.8 kB / 0.7349 GB, free: 4.023 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.6223, allocations: 84.14 kB / 0.735 GB, free: 3.941 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.6226, allocations: 143.3 kB / 0.7352 GB, free: 3.785 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.6228, allocations: 120.8 kB / 0.7353 GB, free: 3.664 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.6228, allocations: 0 / 0.7353 GB, free: 3.664 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005117/0.6233, allocations: 334.9 kB / 0.7356 GB, free: 3.324 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.107e-05/0.6234, allocations: 41.69 kB / 0.7356 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.6234, allocations: 4 kB / 0.7356 GB, free: 3.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.6234, allocations: 4.094 kB / 0.7356 GB, free: 3.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.6235, allocations: 27.92 kB / 0.7357 GB, free: 3.242 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.6235, allocations: 4 kB / 0.7357 GB, free: 3.238 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.6237, allocations: 27.83 kB / 0.7357 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.6237, allocations: 8 kB / 0.7357 GB, free: 3.203 MB / 0.545 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002149/0.6239, allocations: 195.4 kB / 0.7359 GB, free: 2.996 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.628e-05/0.624, allocations: 27.72 kB / 0.7359 GB, free: 2.969 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.417e-05/0.624, allocations: 29.83 kB / 0.736 GB, free: 2.941 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.624, allocations: 0 / 0.736 GB, free: 2.941 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.624, allocations: 4 kB / 0.736 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.6241, allocations: 0 / 0.736 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.6243, allocations: 297.2 kB / 0.7362 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.6243, allocations: 0 / 0.7362 GB, free: 2.598 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.6244, allocations: 15.98 kB / 0.7363 GB, free: 2.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.6245, allocations: 4 kB / 0.7363 GB, free: 2.578 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.6245, allocations: 8 kB / 0.7363 GB, free: 2.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.6245, allocations: 0 / 0.7363 GB, free: 2.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6245, allocations: 4 kB / 0.7363 GB, free: 2.566 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006845/0.6252, allocations: 478.3 kB / 0.7367 GB, free: 2.074 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.6253, allocations: 100.8 kB / 0.7368 GB, free: 1.957 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.939e-05/0.6253, allocations: 8 kB / 0.7368 GB, free: 1.949 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.6255, allocations: 15.98 kB / 0.7368 GB, free: 1.934 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/0.6255, allocations: 27.95 kB / 0.7369 GB, free: 1.906 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.6256, allocations: 7.984 kB / 0.7369 GB, free: 1.898 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001815/0.6258, allocations: 202 kB / 0.7371 GB, free: 1.699 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6258, allocations: 192 / 0.7371 GB, free: 1.699 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002721/0.626, allocations: 55.91 kB / 0.7371 GB, free: 1.645 MB / 0.545 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002096/0.6263, allocations: 131.3 kB / 0.7372 GB, free: 1.508 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000471/0.6267, allocations: 318.7 kB / 0.7376 GB, free: 1.188 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6268, allocations: 0 / 0.7376 GB, free: 1.188 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002257/0.627, allocations: 183.4 kB / 0.7377 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.6272, allocations: 24.55 kB / 0.7378 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000999/0.6283, allocations: 0.5185 MB / 0.7383 GB, free: 436 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.6286, allocations: 0.7675 MB / 0.739 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.905e-05/0.6287, allocations: 17.55 kB / 0.739 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.6288, allocations: 19.44 kB / 0.739 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.6288, allocations: 0 / 0.739 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of Templates: time 0.005607/0.6344, allocations: 2.445 MB / 0.7414 GB, free: 13.17 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: