Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001303/0.001303, allocations: 101.2 kB / 16.27 MB, free: 5.969 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.001192/0.001192, allocations: 192 kB / 17.2 MB, free: 5.598 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.38/1.38, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.768/0.768, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.91 kB / 0.4911 GB, free: 7.434 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4996/0.5008, allocations: 77.92 MB / 0.5672 GB, free: 32.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003564/0.5044, allocations: 1.942 MB / 0.5691 GB, free: 31.42 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.5057, allocations: 0.7 MB / 0.5698 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.5058, allocations: 6.125 kB / 0.5698 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002743/0.5061, allocations: 86.19 kB / 0.5699 GB, free: 30.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.5063, allocations: 89.44 kB / 0.5699 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006128/0.5069, allocations: 191.7 kB / 0.5701 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.5072, allocations: 259.2 kB / 0.5704 GB, free: 30.68 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.5074, allocations: 79.11 kB / 0.5704 GB, free: 30.64 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.5076, allocations: 120.3 kB / 0.5706 GB, free: 30.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.5078, allocations: 146 kB / 0.5707 GB, free: 30.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.741e-05/0.5079, allocations: 19.88 kB / 0.5707 GB, free: 30.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.5081, allocations: 91.75 kB / 0.5708 GB, free: 30.53 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 9.299e-05/0.5082, allocations: 60.98 kB / 0.5709 GB, free: 30.49 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001134/0.5083, allocations: 114.7 kB / 0.571 GB, free: 30.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004381/0.5087, allocations: 293.7 kB / 0.5713 GB, free: 30.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5087, allocations: 0 / 0.5713 GB, free: 30.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5088, allocations: 1.312 kB / 0.5713 GB, free: 30.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.5088, allocations: 1.062 kB / 0.5713 GB, free: 30.29 MB / 446.1 MB 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.0009821/0.5098, allocations: 0.5807 MB / 0.5718 GB, free: 29.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5098, allocations: 12.19 kB / 0.5718 GB, free: 29.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.5099, allocations: 31.02 kB / 0.5719 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.5104, allocations: 303.2 kB / 0.5722 GB, free: 29.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.5105, allocations: 11.41 kB / 0.5722 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.5105, allocations: 14.06 kB / 0.5722 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.5109, allocations: 231.7 kB / 0.5724 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.511, allocations: 1 kB / 0.5724 GB, free: 29.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.511, allocations: 6.844 kB / 0.5724 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.511, allocations: 3.25 kB / 0.5724 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.5113, allocations: 132.6 kB / 0.5725 GB, free: 29.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008773/0.5122, allocations: 0.6774 MB / 0.5732 GB, free: 28.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.5126, allocations: 170.5 kB / 0.5734 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.5128, allocations: 98.92 kB / 0.5735 GB, free: 28.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.5128, allocations: 2.188 kB / 0.5735 GB, free: 28.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.5131, allocations: 166.2 kB / 0.5736 GB, free: 28.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.814e-06/0.5132, allocations: 0.5 kB / 0.5736 GB, free: 28.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007204/0.5139, allocations: 386.4 kB / 0.574 GB, free: 28.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.514, allocations: 133 kB / 0.5741 GB, free: 28.26 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.5143, allocations: 283.4 kB / 0.5744 GB, free: 28.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.5143, allocations: 31.98 kB / 0.5744 GB, free: 28.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.5144, allocations: 155.6 kB / 0.5746 GB, free: 27.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.5144, allocations: 45.81 kB / 0.5746 GB, free: 27.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.152e-05/0.5145, allocations: 36.39 kB / 0.5746 GB, free: 27.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.5146, allocations: 339.1 kB / 0.575 GB, free: 27.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.5148, allocations: 91.22 kB / 0.575 GB, free: 27.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.515, allocations: 131.8 kB / 0.5752 GB, free: 27.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003266/0.5153, allocations: 243.2 kB / 0.5754 GB, free: 27.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.5154, allocations: 3.938 kB / 0.5754 GB, free: 27.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005393/0.5159, allocations: 330.9 kB / 0.5757 GB, free: 27.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.5159, allocations: 36.19 kB / 0.5758 GB, free: 27.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.516, allocations: 4.703 kB / 0.5758 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.516, allocations: 4.719 kB / 0.5758 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.5161, allocations: 24.67 kB / 0.5758 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.5161, allocations: 6.188 kB / 0.5758 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.5163, allocations: 23.77 kB / 0.5758 GB, free: 27.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.5163, allocations: 5.656 kB / 0.5758 GB, free: 27.13 MB / 446.1 MB 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.0001662/0.5165, allocations: 200 kB / 0.576 GB, free: 26.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.231e-05/0.5165, allocations: 29.19 kB / 0.576 GB, free: 26.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.911e-05/0.5166, allocations: 27.53 kB / 0.5761 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.5166, allocations: 4.094 kB / 0.5761 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.5166, allocations: 0 / 0.5761 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.5166, allocations: 1.953 kB / 0.5761 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.5169, allocations: 287.8 kB / 0.5764 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.5169, allocations: 2.375 kB / 0.5764 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.5171, allocations: 22.02 kB / 0.5764 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.5171, allocations: 5.219 kB / 0.5764 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.5171, allocations: 5.531 kB / 0.5764 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.5171, allocations: 0.6875 kB / 0.5764 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5171, allocations: 1.594 kB / 0.5764 GB, free: 26.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009905/0.5181, allocations: 470.1 kB / 0.5768 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/0.5182, allocations: 100.1 kB / 0.5769 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.476e-05/0.5182, allocations: 7.016 kB / 0.5769 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.5184, allocations: 16.58 kB / 0.577 GB, free: 26.36 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.5185, allocations: 27.28 kB / 0.577 GB, free: 26.35 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.5185, allocations: 6.609 kB / 0.577 GB, free: 26.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002273/0.5187, allocations: 204.1 kB / 0.5772 GB, free: 26.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.22e-07/0.5187, allocations: 192 / 0.5772 GB, free: 26.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.5191, allocations: 60.22 kB / 0.5772 GB, free: 26.23 MB / 446.1 MB 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.0002646/0.5194, allocations: 135.9 kB / 0.5774 GB, free: 26.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.52, allocations: 302.5 kB / 0.5777 GB, free: 25.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.52, allocations: 0.7812 kB / 0.5777 GB, free: 25.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002264/0.5202, allocations: 188.9 kB / 0.5778 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.5205, allocations: 34.48 kB / 0.5779 GB, free: 25.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.5215, allocations: 473.1 kB / 0.5783 GB, free: 25.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.5218, allocations: 0.752 MB / 0.5791 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.214e-05/0.5219, allocations: 26.75 kB / 0.5791 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.5219, allocations: 23.55 kB / 0.5791 GB, free: 24.89 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.522, allocations: 0 / 0.5791 GB, free: 24.89 MB / 446.1 MB Notification: Performance of Templates: time 0.00663/0.5286, allocations: 2.817 MB / 0.5819 GB, free: 23.98 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)