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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.392/1.392, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 171.1 kB / 326.5 MB, free: 2.684 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205 MB / 0.5766 GB, free: 20.97 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007959/0.0007959, allocations: 90.58 kB / 0.6804 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.0003671, allocations: 8.844 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2384, allocations: 105.4 MB / 0.8967 GB, free: 68.14 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002042/0.2405, allocations: 1.682 MB / 0.8984 GB, free: 66.45 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2418, allocations: 0.7836 MB / 0.8991 GB, free: 65.65 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001616/0.242, allocations: 4 kB / 0.8992 GB, free: 65.65 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.00024/0.2422, allocations: 71.7 kB / 0.8992 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.2424, allocations: 87.75 kB / 0.8993 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005594/0.2429, allocations: 157.9 kB / 0.8995 GB, free: 65.34 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.2432, allocations: 239.4 kB / 0.8997 GB, free: 65.11 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.2434, allocations: 61.89 kB / 0.8997 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.2435, allocations: 91.66 kB / 0.8998 GB, free: 64.95 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.2437, allocations: 131.5 kB / 0.9 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.2437, allocations: 8 kB / 0.9 GB, free: 64.82 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.2439, allocations: 75.92 kB / 0.9 GB, free: 64.74 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.244, allocations: 47.77 kB / 0.9001 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 8.117e-05/0.244, allocations: 87.34 kB / 0.9002 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002393/0.2443, allocations: 215.5 kB / 0.9004 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.2443, allocations: 0 / 0.9004 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.874e-06/0.2443, allocations: 0 / 0.9004 GB, free: 64.4 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.2443, allocations: 0 / 0.9004 GB, free: 64.4 MB / 0.6042 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.0007281/0.2451, allocations: 0.547 MB / 0.9009 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.2451, allocations: 8.031 kB / 0.9009 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.2452, allocations: 32.66 kB / 0.9009 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003905/0.2456, allocations: 306.8 kB / 0.9012 GB, free: 63.42 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.2456, allocations: 16.38 kB / 0.9013 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.943e-05/0.2457, allocations: 20.31 kB / 0.9013 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.246, allocations: 231.2 kB / 0.9015 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.246, allocations: 0 / 0.9015 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.2461, allocations: 8 kB / 0.9015 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.2461, allocations: 0 / 0.9015 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002224/0.2463, allocations: 140.3 kB / 0.9016 GB, free: 62.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.247, allocations: 0.677 MB / 0.9023 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.2474, allocations: 186.4 kB / 0.9025 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.2475, allocations: 105 kB / 0.9026 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.2475, allocations: 0 / 0.9026 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002541/0.2478, allocations: 177 kB / 0.9027 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.2478, allocations: 0 / 0.9027 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0005757/0.2484, allocations: 391.8 kB / 0.9031 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.2485, allocations: 132.5 kB / 0.9032 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.2487, allocations: 286.7 kB / 0.9035 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.2487, allocations: 29.7 kB / 0.9035 GB, free: 60.89 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.2488, allocations: 156.2 kB / 0.9037 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.2488, allocations: 43.44 kB / 0.9037 GB, free: 60.69 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.2489, allocations: 25.7 kB / 0.9038 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.982e-05/0.2489, allocations: 338.8 kB / 0.9041 GB, free: 60.32 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.2491, allocations: 95.89 kB / 0.9042 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.2492, allocations: 133 kB / 0.9043 GB, free: 60.08 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.2495, allocations: 252.8 kB / 0.9045 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2495, allocations: 0 / 0.9045 GB, free: 59.81 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004069/0.2499, allocations: 346.9 kB / 0.9049 GB, free: 59.46 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.25, allocations: 33.69 kB / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.25, allocations: 4 kB / 0.9049 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.25, allocations: 3.938 kB / 0.9049 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.2502, allocations: 23.98 kB / 0.9049 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.2502, allocations: 7.938 kB / 0.9049 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.2503, allocations: 31.92 kB / 0.905 GB, free: 59.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.534e-05/0.2503, allocations: 8 kB / 0.905 GB, free: 59.34 MB / 0.6042 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.0001286/0.2505, allocations: 187.5 kB / 0.9052 GB, free: 59.14 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.2505, allocations: 31.62 kB / 0.9052 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.695e-05/0.2505, allocations: 33.81 kB / 0.9052 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2506, allocations: 0 / 0.9052 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2506, allocations: 0 / 0.9052 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.2506, allocations: 4 kB / 0.9052 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.2508, allocations: 293.4 kB / 0.9055 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.2508, allocations: 0 / 0.9055 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.635e-05/0.2509, allocations: 19.92 kB / 0.9055 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2509, allocations: 0 / 0.9055 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.2509, allocations: 11.98 kB / 0.9055 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2509, allocations: 0 / 0.9055 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2509, allocations: 0 / 0.9055 GB, free: 58.71 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.2515, allocations: 483.8 kB / 0.906 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.2516, allocations: 96.8 kB / 0.9061 GB, free: 58.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.2516, allocations: 8 kB / 0.9061 GB, free: 58.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.2517, allocations: 27.98 kB / 0.9061 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.353e-05/0.2518, allocations: 23.95 kB / 0.9061 GB, free: 58.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.2518, allocations: 8 kB / 0.9062 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001314/0.252, allocations: 198 kB / 0.9063 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.252, allocations: 0 / 0.9063 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002569/0.2522, allocations: 60.3 kB / 0.9064 GB, free: 57.78 MB / 0.6042 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.0001719/0.2524, allocations: 127.2 kB / 0.9065 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003853/0.2528, allocations: 315.1 kB / 0.9068 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2528, allocations: 3.938 kB / 0.9068 GB, free: 57.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.253, allocations: 187.3 kB / 0.907 GB, free: 57.12 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.2533, allocations: 32.73 kB / 0.907 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008574/0.2542, allocations: 0.5619 MB / 0.9076 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001628/0.2543, allocations: 0.7555 MB / 0.9083 GB, free: 55.72 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.443e-05/0.2544, allocations: 15.44 kB / 0.9083 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of SimCode: time 4.3e-07/0.2544, allocations: 4 kB / 0.9083 GB, free: 55.7 MB / 0.6042 GB Notification: Performance of Templates: time 0.004632/0.259, allocations: 2.956 MB / 0.9112 GB, free: 52.75 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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)