Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.427/1.427, allocations: 288.4 MB / 303.6 MB, free: 7.969 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008669/0.0008669, allocations: 180.5 kB / 372.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.14/1.14, allocations: 205.4 MB / 0.631 GB, free: 9.902 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006735/0.0006735, allocations: 96.67 kB / 0.7444 GB, free: 5.82 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003289/0.0003289, allocations: 13 kB / 0.8676 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1438, allocations: 115.3 MB / 0.9802 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001649/0.1455, allocations: 1.612 MB / 0.9818 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008993/0.1464, allocations: 0.7101 MB / 0.9824 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1465, allocations: 7.938 kB / 0.9825 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.1467, allocations: 67.77 kB / 0.9825 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.001e-05/0.1468, allocations: 83.64 kB / 0.9826 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.1472, allocations: 137.8 kB / 0.9827 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000201/0.1474, allocations: 219.5 kB / 0.9829 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1476, allocations: 61.89 kB / 0.983 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.514e-05/0.1477, allocations: 91.66 kB / 0.9831 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.1478, allocations: 115.6 kB / 0.9832 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.264e-05/0.1478, allocations: 4 kB / 0.9832 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1479, allocations: 83.92 kB / 0.9833 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.383e-05/0.148, allocations: 31.84 kB / 0.9833 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.01e-05/0.1481, allocations: 117.1 kB / 0.9834 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.1483, allocations: 207.6 kB / 0.9836 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1483, allocations: 0 / 0.9836 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1483, allocations: 0 / 0.9836 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.1483, allocations: 0 / 0.9836 GB, free: 23.69 MB / 0.6198 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.0005882/0.1489, allocations: 0.5509 MB / 0.9842 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.1489, allocations: 12.03 kB / 0.9842 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.149, allocations: 46.73 kB / 0.9842 GB, free: 23.02 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.488e-05/0.149, allocations: 32.56 kB / 0.9842 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.1493, allocations: 310.9 kB / 0.9845 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1494, allocations: 12.38 kB / 0.9846 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.62e-05/0.1494, allocations: 12.38 kB / 0.9846 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.1497, allocations: 235 kB / 0.9848 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1497, allocations: 0 / 0.9848 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.1497, allocations: 8 kB / 0.9848 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1498, allocations: 4 kB / 0.9848 GB, free: 22.36 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.15, allocations: 132.3 kB / 0.9849 GB, free: 22.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005978/0.1506, allocations: 0.6963 MB / 0.9856 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.1509, allocations: 178.6 kB / 0.9858 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.151, allocations: 104.8 kB / 0.9859 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.151, allocations: 3.984 kB / 0.9859 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.1513, allocations: 169 kB / 0.986 GB, free: 21 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=15): time 2.245e-06/0.1513, allocations: 7.938 kB / 0.9861 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=15): time 0.0005208/0.1518, allocations: 389.8 kB / 0.9864 GB, free: 20.6 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.1518, allocations: 132.5 kB / 0.9866 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.152, allocations: 286.6 kB / 0.9868 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.152, allocations: 29.7 kB / 0.9869 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.359e-05/0.1521, allocations: 156.3 kB / 0.987 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.1521, allocations: 43.36 kB / 0.987 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.807e-06/0.1522, allocations: 4 kB / 0.987 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.388e-05/0.1522, allocations: 342.8 kB / 0.9874 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.1523, allocations: 83.95 kB / 0.9875 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.1525, allocations: 142.7 kB / 0.9876 GB, free: 19.33 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.1527, allocations: 244.8 kB / 0.9878 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1528, allocations: 0 / 0.9878 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003718/0.1531, allocations: 338.9 kB / 0.9881 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.1532, allocations: 41.8 kB / 0.9882 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1532, allocations: 7.969 kB / 0.9882 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1532, allocations: 4 kB / 0.9882 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1533, allocations: 27.92 kB / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1533, allocations: 0 / 0.9882 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1534, allocations: 31.83 kB / 0.9883 GB, free: 18.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.1535, allocations: 4 kB / 0.9883 GB, free: 18.6 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.1536, allocations: 199.8 kB / 0.9884 GB, free: 18.39 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.1536, allocations: 27.7 kB / 0.9885 GB, free: 18.37 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.011e-05/0.1536, allocations: 33.78 kB / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1537, allocations: 0 / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1537, allocations: 0 / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1537, allocations: 3.984 kB / 0.9885 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.1538, allocations: 293.3 kB / 0.9888 GB, free: 18 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1538, allocations: 0 / 0.9888 GB, free: 18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.191e-05/0.1539, allocations: 27.92 kB / 0.9888 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1539, allocations: 0 / 0.9888 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.154, allocations: 7.984 kB / 0.9888 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.154, allocations: 0 / 0.9888 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.154, allocations: 0 / 0.9888 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005223/0.1545, allocations: 474.3 kB / 0.9893 GB, free: 17.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.1545, allocations: 108.7 kB / 0.9894 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.1546, allocations: 8 kB / 0.9894 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.85e-05/0.1547, allocations: 15.98 kB / 0.9894 GB, free: 17.33 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.687e-05/0.1547, allocations: 23.95 kB / 0.9894 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.1548, allocations: 8.062 kB / 0.9894 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000118/0.1549, allocations: 206.1 kB / 0.9896 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1549, allocations: 0 / 0.9896 GB, free: 17.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000227/0.1551, allocations: 67.91 kB / 0.9897 GB, free: 17.03 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007185/0.1559, allocations: 1.034 MB / 0.9907 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003457/0.1562, allocations: 299.3 kB / 0.991 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1562, allocations: 0 / 0.991 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.1564, allocations: 191.3 kB / 0.9912 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1567, allocations: 26.09 kB / 0.9912 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.1585, allocations: 1.665 MB / 0.9928 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.1586, allocations: 0.7514 MB / 0.9936 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7.386e-05/0.1587, allocations: 17.55 kB / 0.9936 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.851e-05/0.1588, allocations: 71.41 kB / 0.9936 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of SimCode: time 6.01e-07/0.1588, allocations: 0 / 0.9936 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5715/0.7303, allocations: 4.888 MB / 0.9984 GB, free: 8.113 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/0.7305, allocations: 196.8 kB / 0.9986 GB, free: 7.875 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.415, allocations: 8.062 kB / 0.9986 GB, free: 7.867 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)