Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0007982/0.0007983, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.0008136/0.0008137, allocations: 172.7 kB / 15.95 MB, free: 208 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.505/1.505, allocations: 205.4 MB / 222.1 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.75/1.75, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.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.0005674/0.0005675, allocations: 12.78 kB / 0.6737 GB, free: 26.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2344, allocations: 116.3 MB / 0.7873 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002262/0.2367, allocations: 1.623 MB / 0.7889 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.238, allocations: 0.6912 MB / 0.7895 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.2382, allocations: 3.938 kB / 0.7895 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002202/0.2384, allocations: 83.75 kB / 0.7896 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.2386, allocations: 75.7 kB / 0.7897 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.2391, allocations: 131 kB / 0.7898 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.2395, allocations: 219.4 kB / 0.79 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2396, allocations: 57.59 kB / 0.7901 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.2398, allocations: 91.66 kB / 0.7902 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.24, allocations: 111.6 kB / 0.7903 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.24, allocations: 4 kB / 0.7903 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.2402, allocations: 83.84 kB / 0.7904 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.2403, allocations: 39.84 kB / 0.7904 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.553e-05/0.2403, allocations: 57.58 kB / 0.7905 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.2406, allocations: 211.6 kB / 0.7907 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2406, allocations: 4 kB / 0.7907 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2406, allocations: 0 / 0.7907 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.364e-06/0.2406, allocations: 4 kB / 0.7907 GB, free: 8.449 MB / 0.6075 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.0007951/0.2414, allocations: 0.539 MB / 0.7912 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2415, allocations: 12.03 kB / 0.7912 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.124e-05/0.2416, allocations: 35.61 kB / 0.7912 GB, free: 7.809 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/0.242, allocations: 293.5 kB / 0.7915 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.242, allocations: 15.94 kB / 0.7915 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.2421, allocations: 16 kB / 0.7916 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.2425, allocations: 231.1 kB / 0.7918 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2425, allocations: 0 / 0.7918 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.2425, allocations: 4 kB / 0.7918 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2425, allocations: 4 kB / 0.7918 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.2428, allocations: 144.3 kB / 0.7919 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008686/0.2437, allocations: 0.6963 MB / 0.7926 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.2441, allocations: 182.5 kB / 0.7928 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.2442, allocations: 101 kB / 0.7929 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.2442, allocations: 4 kB / 0.7929 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.2446, allocations: 173.1 kB / 0.793 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.993e-06/0.2446, allocations: 0 / 0.793 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006554/0.2452, allocations: 375 kB / 0.7934 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.895e-05/0.2453, allocations: 140.5 kB / 0.7935 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.2456, allocations: 282.6 kB / 0.7938 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.2456, allocations: 33.7 kB / 0.7938 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.992e-05/0.2458, allocations: 152.2 kB / 0.794 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.2458, allocations: 47.44 kB / 0.794 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.869e-06/0.2458, allocations: 0 / 0.794 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.246, allocations: 342.8 kB / 0.7943 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001666/0.2461, allocations: 96.08 kB / 0.7944 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.2463, allocations: 135.8 kB / 0.7946 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.2465, allocations: 113.7 kB / 0.7947 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.2465, allocations: 4 kB / 0.7947 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004723/0.247, allocations: 337.5 kB / 0.795 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.2471, allocations: 45.78 kB / 0.795 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2471, allocations: 3.938 kB / 0.795 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.2471, allocations: 4 kB / 0.7951 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.2472, allocations: 23.98 kB / 0.7951 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2472, allocations: 0 / 0.7951 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.2474, allocations: 31.83 kB / 0.7951 GB, free: 3.59 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.2474, allocations: 7.938 kB / 0.7951 GB, free: 3.582 MB / 0.6075 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.0001697/0.2476, allocations: 199.4 kB / 0.7953 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.2476, allocations: 23.72 kB / 0.7953 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.197e-05/0.2477, allocations: 29.84 kB / 0.7954 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2477, allocations: 3.984 kB / 0.7954 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2477, allocations: 0 / 0.7954 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2477, allocations: 96 / 0.7954 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.2479, allocations: 289.4 kB / 0.7956 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.248, allocations: 3.953 kB / 0.7956 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.2481, allocations: 24 kB / 0.7957 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2481, allocations: 0 / 0.7957 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.2481, allocations: 7.984 kB / 0.7957 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2481, allocations: 0 / 0.7957 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2481, allocations: 0 / 0.7957 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.2488, allocations: 485.1 kB / 0.7961 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.804e-05/0.2489, allocations: 104.8 kB / 0.7962 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.199e-05/0.2489, allocations: 8 kB / 0.7962 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.249, allocations: 15.98 kB / 0.7963 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.403e-05/0.2491, allocations: 23.95 kB / 0.7963 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.2491, allocations: 8.062 kB / 0.7963 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001746/0.2493, allocations: 205.9 kB / 0.7965 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2493, allocations: 0 / 0.7965 GB, free: 2.074 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002827/0.2496, allocations: 59.84 kB / 0.7965 GB, free: 2.016 MB / 0.6075 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.000199/0.2498, allocations: 131.3 kB / 0.7967 GB, free: 1.879 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004551/0.2503, allocations: 299.2 kB / 0.7969 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2503, allocations: 0 / 0.7969 GB, free: 1.574 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.2505, allocations: 187.3 kB / 0.7971 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.2508, allocations: 28.73 kB / 0.7972 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009249/0.2517, allocations: 0.5224 MB / 0.7977 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.252, allocations: 0.7486 MB / 0.7984 GB, free: 28 kB / 0.6075 GB Notification: Performance of simCode: alias equations: time 8.281e-05/0.2521, allocations: 17.55 kB / 0.7984 GB, free: 12 kB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.421e-05/0.2522, allocations: 15.44 kB / 0.7984 GB, free: 16 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.2522, allocations: 4 kB / 0.7984 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of Templates: time 0.005566/0.2578, allocations: 2.461 MB / 0.8008 GB, free: 13.55 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: