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.409/1.409, allocations: 252 MB / 268 MB, free: 10.84 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.001022/0.001022, allocations: 184.1 kB / 327.6 MB, free: 2.09 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.808/1.808, allocations: 205.4 MB / 0.5786 GB, free: 20.12 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.001055/0.001055, allocations: 95.38 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003182, allocations: 9.031 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2059, allocations: 106.3 MB / 0.9015 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002434/0.2084, allocations: 1.669 MB / 0.9031 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00146/0.2099, allocations: 0.7565 MB / 0.9038 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.2101, allocations: 7.938 kB / 0.9038 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000247/0.2104, allocations: 63.78 kB / 0.9039 GB, free: 60.97 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.2105, allocations: 95.67 kB / 0.904 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.2112, allocations: 150 kB / 0.9041 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0003097/0.2115, allocations: 235.4 kB / 0.9043 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.2117, allocations: 65.88 kB / 0.9044 GB, free: 60.44 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001682/0.2118, allocations: 95.59 kB / 0.9045 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.212, allocations: 123.6 kB / 0.9046 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.2121, allocations: 12 kB / 0.9046 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.2122, allocations: 79.86 kB / 0.9047 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.917e-05/0.2123, allocations: 39.84 kB / 0.9047 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.2124, allocations: 117 kB / 0.9049 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.2127, allocations: 211.8 kB / 0.9051 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2127, allocations: 0 / 0.9051 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.893e-06/0.2127, allocations: 0 / 0.9051 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.2127, allocations: 0 / 0.9051 GB, free: 59.77 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.0007955/0.2135, allocations: 0.5547 MB / 0.9056 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.2136, allocations: 8.031 kB / 0.9056 GB, free: 59.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.64e-05/0.2137, allocations: 28.66 kB / 0.9056 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.2141, allocations: 310.8 kB / 0.9059 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.2141, allocations: 16.38 kB / 0.9059 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.2142, allocations: 16.38 kB / 0.906 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.2146, allocations: 231.2 kB / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.2146, allocations: 0 / 0.9062 GB, free: 58.5 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.2146, allocations: 8 kB / 0.9062 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.2146, allocations: 0 / 0.9062 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.2149, allocations: 136.3 kB / 0.9063 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.2156, allocations: 0.6809 MB / 0.907 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.216, allocations: 182.5 kB / 0.9072 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.2161, allocations: 104.8 kB / 0.9073 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.2162, allocations: 0 / 0.9073 GB, free: 57.33 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/0.2165, allocations: 181 kB / 0.9074 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.2165, allocations: 0 / 0.9074 GB, free: 57.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.00063/0.2171, allocations: 388.5 kB / 0.9078 GB, free: 56.74 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.2172, allocations: 132.5 kB / 0.9079 GB, free: 56.58 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.2174, allocations: 282.7 kB / 0.9082 GB, free: 56.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.2174, allocations: 29.7 kB / 0.9082 GB, free: 56.26 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 8.296e-05/0.2175, allocations: 160.2 kB / 0.9084 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.2175, allocations: 39.45 kB / 0.9084 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.199e-05/0.2176, allocations: 4 kB / 0.9084 GB, free: 56.06 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.2176, allocations: 342.8 kB / 0.9087 GB, free: 55.71 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.2178, allocations: 95.83 kB / 0.9088 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.2179, allocations: 137.1 kB / 0.909 GB, free: 55.47 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.2182, allocations: 252.9 kB / 0.9092 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.2182, allocations: 0 / 0.9092 GB, free: 55.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004301/0.2187, allocations: 345.9 kB / 0.9095 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.2187, allocations: 41.8 kB / 0.9096 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2187, allocations: 0 / 0.9096 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.2188, allocations: 7.984 kB / 0.9096 GB, free: 54.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.2189, allocations: 27.92 kB / 0.9096 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.2189, allocations: 3.984 kB / 0.9096 GB, free: 54.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.219, allocations: 27.89 kB / 0.9096 GB, free: 54.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.219, allocations: 4 kB / 0.9097 GB, free: 54.73 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 ($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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.2192, allocations: 206.4 kB / 0.9098 GB, free: 54.52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.2192, allocations: 31.62 kB / 0.9099 GB, free: 54.49 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.891e-05/0.2193, allocations: 33.83 kB / 0.9099 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2193, allocations: 0 / 0.9099 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2193, allocations: 0 / 0.9099 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.2193, allocations: 0 / 0.9099 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.2195, allocations: 285.5 kB / 0.9102 GB, free: 54.13 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2195, allocations: 3.938 kB / 0.9102 GB, free: 54.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.2196, allocations: 23.98 kB / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.2196, allocations: 0 / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.2197, allocations: 4 kB / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2197, allocations: 0 / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2197, allocations: 0 / 0.9102 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000592/0.2203, allocations: 491.5 kB / 0.9107 GB, free: 53.59 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.263e-05/0.2203, allocations: 96.86 kB / 0.9108 GB, free: 53.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.2204, allocations: 8 kB / 0.9108 GB, free: 53.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2205, allocations: 15.98 kB / 0.9108 GB, free: 53.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.2206, allocations: 27.89 kB / 0.9108 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2206, allocations: 12.25 kB / 0.9108 GB, free: 53.42 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001458/0.2208, allocations: 205.9 kB / 0.911 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2208, allocations: 3.938 kB / 0.911 GB, free: 53.21 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002813/0.2211, allocations: 51.94 kB / 0.9111 GB, free: 53.16 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.0001835/0.2212, allocations: 139.2 kB / 0.9112 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004078/0.2217, allocations: 295.2 kB / 0.9115 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2217, allocations: 0 / 0.9115 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.2219, allocations: 195.3 kB / 0.9117 GB, free: 52.51 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.2222, allocations: 34.45 kB / 0.9117 GB, free: 52.48 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009133/0.2231, allocations: 0.563 MB / 0.9123 GB, free: 51.88 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.2233, allocations: 0.7516 MB / 0.913 GB, free: 51.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.322e-05/0.2233, allocations: 19.44 kB / 0.913 GB, free: 51.09 MB / 0.6042 GB Notification: Performance of SimCode: time 1.122e-06/0.2233, allocations: 0 / 0.913 GB, free: 51.09 MB / 0.6042 GB Notification: Performance of Templates: time 0.004848/0.2282, allocations: 2.966 MB / 0.9159 GB, free: 48.13 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)