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: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009558/0.0009557, allocations: 98.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 179.9 kB / 16.92 MB, free: 6.922 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.29/1.29, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6519/0.6519, allocations: 115.5 MB / 407.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002865, allocations: 8 kB / 496 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1434, allocations: 77.53 MB / 0.56 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002175/0.1456, allocations: 1.643 MB / 0.5616 GB, free: 7.293 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001211/0.1468, allocations: 0.6976 MB / 0.5623 GB, free: 6.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.147, allocations: 7.938 kB / 0.5623 GB, free: 6.582 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.1472, allocations: 79.77 kB / 0.5624 GB, free: 6.504 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.1474, allocations: 83.62 kB / 0.5625 GB, free: 6.422 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.1479, allocations: 155.1 kB / 0.5626 GB, free: 6.273 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.1482, allocations: 235.5 kB / 0.5629 GB, free: 6.043 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.1484, allocations: 74.09 kB / 0.5629 GB, free: 5.973 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.1485, allocations: 95.53 kB / 0.563 GB, free: 5.879 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.1487, allocations: 123.6 kB / 0.5631 GB, free: 5.758 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.1488, allocations: 8 kB / 0.5631 GB, free: 5.75 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1489, allocations: 83.86 kB / 0.5632 GB, free: 5.668 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.079e-05/0.149, allocations: 39.77 kB / 0.5633 GB, free: 5.629 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1491, allocations: 117 kB / 0.5634 GB, free: 5.508 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003105/0.1494, allocations: 283.1 kB / 0.5636 GB, free: 5.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1494, allocations: 0 / 0.5636 GB, free: 5.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1495, allocations: 0 / 0.5636 GB, free: 5.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.1495, allocations: 0 / 0.5636 GB, free: 5.23 MB / 430.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.0007923/0.1503, allocations: 0.5508 MB / 0.5642 GB, free: 4.625 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1503, allocations: 8.031 kB / 0.5642 GB, free: 4.617 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.461e-05/0.1504, allocations: 46.75 kB / 0.5642 GB, free: 4.562 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.1504, allocations: 28.56 kB / 0.5643 GB, free: 4.535 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004373/0.1509, allocations: 314.9 kB / 0.5646 GB, free: 4.191 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.1509, allocations: 8.375 kB / 0.5646 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.151, allocations: 20.31 kB / 0.5646 GB, free: 4.164 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003842/0.1513, allocations: 227.1 kB / 0.5648 GB, free: 3.918 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.1514, allocations: 4 kB / 0.5648 GB, free: 3.914 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.1514, allocations: 8 kB / 0.5648 GB, free: 3.906 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1514, allocations: 4 kB / 0.5648 GB, free: 3.902 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002502/0.1517, allocations: 128.3 kB / 0.5649 GB, free: 3.777 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008391/0.1525, allocations: 0.6924 MB / 0.5656 GB, free: 3.027 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003741/0.1529, allocations: 186.5 kB / 0.5658 GB, free: 2.836 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.1531, allocations: 101 kB / 0.5659 GB, free: 2.734 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.342e-05/0.1531, allocations: 4 kB / 0.5659 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.1534, allocations: 177.1 kB / 0.5661 GB, free: 2.539 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.1534, allocations: 0 / 0.5661 GB, free: 2.539 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006624/0.1541, allocations: 379 kB / 0.5664 GB, free: 2.156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/0.1542, allocations: 140.5 kB / 0.5666 GB, free: 1.988 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.1544, allocations: 282.5 kB / 0.5668 GB, free: 1.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.1545, allocations: 33.7 kB / 0.5669 GB, free: 1.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.966e-05/0.1546, allocations: 152.3 kB / 0.567 GB, free: 1.512 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.1546, allocations: 47.36 kB / 0.5671 GB, free: 1.465 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.1547, allocations: 29.64 kB / 0.5671 GB, free: 1.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1548, allocations: 342.8 kB / 0.5674 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.155, allocations: 87.97 kB / 0.5675 GB, free: 1 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.1551, allocations: 137.1 kB / 0.5676 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003236/0.1555, allocations: 244.5 kB / 0.5679 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1555, allocations: 7.969 kB / 0.5679 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004955/0.156, allocations: 341 kB / 0.5682 GB, free: 240 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.156, allocations: 37.64 kB / 0.5682 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1561, allocations: 0 / 0.5682 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1561, allocations: 0 / 0.5682 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.1562, allocations: 36.02 kB / 0.5683 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1562, allocations: 4 kB / 0.5683 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.1563, allocations: 23.83 kB / 0.5683 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.1564, allocations: 12 kB / 0.5683 GB, free: 120 kB / 430.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.0001847/0.1566, allocations: 192.3 kB / 0.5685 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.1566, allocations: 23.72 kB / 0.5685 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.104e-05/0.1567, allocations: 29.83 kB / 0.5685 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1567, allocations: 4 kB / 0.5685 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.1567, allocations: 3.938 kB / 0.5685 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1567, allocations: 0 / 0.5685 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.1569, allocations: 297.3 kB / 0.5688 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.1569, allocations: 0 / 0.5688 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1571, allocations: 19.98 kB / 0.5688 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.1571, allocations: 4 kB / 0.5689 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.538e-05/0.1571, allocations: 0 / 0.5689 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1571, allocations: 8 kB / 0.5689 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1571, allocations: 0 / 0.5689 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006914/0.1578, allocations: 479.8 kB / 0.5693 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.1579, allocations: 104.8 kB / 0.5694 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.039e-05/0.1579, allocations: 8 kB / 0.5694 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.158, allocations: 15.98 kB / 0.5694 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.1581, allocations: 23.95 kB / 0.5695 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.1581, allocations: 8 kB / 0.5695 GB, free: 14.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1583, allocations: 205.9 kB / 0.5697 GB, free: 14.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1583, allocations: 0 / 0.5697 GB, free: 14.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002718/0.1586, allocations: 68.03 kB / 0.5697 GB, free: 14.55 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.00102/0.1596, allocations: 1.03 MB / 0.5707 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004617/0.1601, allocations: 307.2 kB / 0.571 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1601, allocations: 256 / 0.571 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002419/0.1604, allocations: 187.5 kB / 0.5712 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.1607, allocations: 36.67 kB / 0.5712 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.1641, allocations: 2.861 MB / 0.574 GB, free: 9.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.1644, allocations: 0.7532 MB / 0.5748 GB, free: 9.203 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.385e-05/0.1645, allocations: 17.55 kB / 0.5748 GB, free: 9.188 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.1646, allocations: 71.41 kB / 0.5749 GB, free: 9.121 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1646, allocations: 0 / 0.5749 GB, free: 9.121 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01555/0.1802, allocations: 4.852 MB / 0.5796 GB, free: 4.43 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.1805, allocations: 202.1 kB / 0.5798 GB, free: 4.172 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.939, allocations: 0 / 0.5798 GB, free: 4.172 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)