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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 251.5 MB / 266.7 MB, free: 11.05 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.0008566/0.0008563, allocations: 180.7 kB / 325.8 MB, free: 2.68 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.238/1.238, allocations: 205 MB / 0.576 GB, free: 20.98 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.0006474/0.0006474, allocations: 82.36 kB / 0.6797 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002622, allocations: 12.81 kB / 0.7933 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1326, allocations: 105.4 MB / 0.8962 GB, free: 68.07 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001547/0.1342, allocations: 1.694 MB / 0.8978 GB, free: 66.37 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000847/0.135, allocations: 0.772 MB / 0.8986 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.581e-05/0.1351, allocations: 7.938 kB / 0.8986 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1353, allocations: 71.75 kB / 0.8987 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.034e-05/0.1354, allocations: 83.7 kB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003556/0.1358, allocations: 155.8 kB / 0.8989 GB, free: 65.27 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.1359, allocations: 239.4 kB / 0.8991 GB, free: 65.04 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.136, allocations: 65.88 kB / 0.8992 GB, free: 64.97 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.65e-05/0.1361, allocations: 91.67 kB / 0.8993 GB, free: 64.88 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.1362, allocations: 131.5 kB / 0.8994 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.1363, allocations: 8 kB / 0.8994 GB, free: 64.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-05/0.1364, allocations: 79.86 kB / 0.8995 GB, free: 64.67 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 4.651e-05/0.1364, allocations: 35.84 kB / 0.8995 GB, free: 64.63 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.659e-05/0.1365, allocations: 91.34 kB / 0.8996 GB, free: 64.54 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.1367, allocations: 279 kB / 0.8999 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1367, allocations: 7.938 kB / 0.8999 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.183e-06/0.1367, allocations: 0 / 0.8999 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.1367, allocations: 4 kB / 0.8999 GB, free: 64.26 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.0005172/0.1372, allocations: 0.5392 MB / 0.9004 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.793e-05/0.1373, allocations: 12.03 kB / 0.9004 GB, free: 63.65 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.1373, allocations: 46.73 kB / 0.9005 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.1373, allocations: 28.66 kB / 0.9005 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1376, allocations: 306.8 kB / 0.9008 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.1377, allocations: 20.38 kB / 0.9008 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.1377, allocations: 20.31 kB / 0.9008 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.138, allocations: 227.1 kB / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.138, allocations: 0 / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.138, allocations: 4 kB / 0.9011 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.138, allocations: 4 kB / 0.9011 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.1382, allocations: 136.3 kB / 0.9012 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005413/0.1387, allocations: 0.6847 MB / 0.9019 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.139, allocations: 182.6 kB / 0.902 GB, free: 61.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001191/0.1392, allocations: 100.8 kB / 0.9021 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.1392, allocations: 3.984 kB / 0.9021 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.1394, allocations: 181 kB / 0.9023 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1394, allocations: 0 / 0.9023 GB, free: 61.58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=15): time 0.0004756/0.1399, allocations: 388.4 kB / 0.9027 GB, free: 61.19 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.1399, allocations: 136.5 kB / 0.9028 GB, free: 61.02 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.1401, allocations: 278.7 kB / 0.9031 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.1401, allocations: 33.64 kB / 0.9031 GB, free: 60.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/0.1402, allocations: 160.2 kB / 0.9033 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.478e-05/0.1402, allocations: 39.45 kB / 0.9033 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.77e-05/0.1402, allocations: 25.66 kB / 0.9033 GB, free: 60.47 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.078e-05/0.1403, allocations: 342.8 kB / 0.9036 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.1404, allocations: 95.95 kB / 0.9037 GB, free: 60.04 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.1406, allocations: 132.8 kB / 0.9039 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.1408, allocations: 254 kB / 0.9041 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1408, allocations: 0 / 0.9041 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003514/0.1412, allocations: 344.7 kB / 0.9044 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1412, allocations: 37.69 kB / 0.9045 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.1412, allocations: 4 kB / 0.9045 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.747e-06/0.1412, allocations: 0 / 0.9045 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.804e-05/0.1413, allocations: 31.92 kB / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.1413, allocations: 0 / 0.9045 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1414, allocations: 39.83 kB / 0.9045 GB, free: 59.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.1415, allocations: 15.98 kB / 0.9046 GB, free: 59.14 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.0001005/0.1416, allocations: 192 kB / 0.9047 GB, free: 58.94 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.1416, allocations: 23.72 kB / 0.9048 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.1416, allocations: 29.83 kB / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1416, allocations: 0 / 0.9048 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1416, allocations: 7.938 kB / 0.9048 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1417, allocations: 0 / 0.9048 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.1418, allocations: 289.4 kB / 0.9051 GB, free: 58.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1418, allocations: 4 kB / 0.9051 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.409e-05/0.1419, allocations: 19.98 kB / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1419, allocations: 0 / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1419, allocations: 4 kB / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1419, allocations: 0 / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1419, allocations: 0 / 0.9051 GB, free: 58.52 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005055/0.1424, allocations: 492.6 kB / 0.9056 GB, free: 58.02 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.027e-05/0.1425, allocations: 100.8 kB / 0.9057 GB, free: 57.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.1425, allocations: 8 kB / 0.9057 GB, free: 57.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.46e-05/0.1426, allocations: 20.05 kB / 0.9057 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.596e-05/0.1427, allocations: 28.14 kB / 0.9057 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.1427, allocations: 4 kB / 0.9057 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001137/0.1428, allocations: 209.9 kB / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1428, allocations: 0 / 0.9059 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002085/0.143, allocations: 55.94 kB / 0.906 GB, free: 57.58 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.0006664/0.1437, allocations: 1.039 MB / 0.907 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003261/0.1441, allocations: 303.2 kB / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1441, allocations: 0 / 0.9073 GB, free: 56.2 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.1442, allocations: 187.5 kB / 0.9075 GB, free: 56 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.1445, allocations: 35.64 kB / 0.9075 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.1468, allocations: 2.836 MB / 0.9103 GB, free: 53.02 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.1469, allocations: 0.7553 MB / 0.911 GB, free: 52.24 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 7.036e-05/0.147, allocations: 25.48 kB / 0.911 GB, free: 52.22 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.065e-05/0.1471, allocations: 71.41 kB / 0.9111 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of SimCode: time 2.2e-07/0.1471, allocations: 0 / 0.9111 GB, free: 52.15 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2523/0.3994, allocations: 4.871 MB / 0.9159 GB, free: 47.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001254/0.3995, allocations: 210.2 kB / 0.9161 GB, free: 47.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/2.146, allocations: 4 kB / 0.9161 GB, free: 47.18 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)