Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_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.001221/0.001221, allocations: 108 kB / 15.61 MB, free: 152 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.001064/0.001064, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002031/0.002031, allocations: 286.9 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9191/0.9191, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 94.5 kB / 0.5953 GB, free: 27.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1362, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003606/0.1399, allocations: 1.942 MB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.1411, allocations: 0.7039 MB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001433/0.1413, allocations: 8.656 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002208/0.1415, allocations: 81.61 kB / 0.683 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001442/0.1417, allocations: 91.58 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006362/0.1423, allocations: 184.4 kB / 0.6832 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.1427, allocations: 267.4 kB / 0.6835 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.1429, allocations: 67.84 kB / 0.6835 GB, free: 13.24 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.1431, allocations: 123.6 kB / 0.6837 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.1433, allocations: 147.5 kB / 0.6838 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.1433, allocations: 20 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.1435, allocations: 87.94 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.012e-05/0.1436, allocations: 63.75 kB / 0.684 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1437, allocations: 107.3 kB / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.144, allocations: 299 kB / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1441, allocations: 0 / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1441, allocations: 4 kB / 0.6844 GB, free: 12.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1441, allocations: 0 / 0.6844 GB, free: 12.41 MB / 494.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.000804/0.1449, allocations: 0.5741 MB / 0.6849 GB, free: 11.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1449, allocations: 8.031 kB / 0.6849 GB, free: 11.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.145, allocations: 50.73 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.292e-05/0.1451, allocations: 28.56 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.1455, allocations: 306.9 kB / 0.6853 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.1455, allocations: 8.375 kB / 0.6853 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.1456, allocations: 16.38 kB / 0.6853 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.1459, allocations: 235 kB / 0.6855 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1459, allocations: 0 / 0.6855 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/0.146, allocations: 8 kB / 0.6856 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.146, allocations: 4 kB / 0.6856 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.1462, allocations: 124.3 kB / 0.6857 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008152/0.1471, allocations: 0.6885 MB / 0.6863 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.1474, allocations: 170.5 kB / 0.6865 GB, free: 10.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1476, allocations: 99.83 kB / 0.6866 GB, free: 9.918 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.1476, allocations: 0 / 0.6866 GB, free: 9.918 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003357/0.148, allocations: 177 kB / 0.6868 GB, free: 9.727 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.492e-06/0.148, allocations: 0 / 0.6868 GB, free: 9.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006662/0.1486, allocations: 378.9 kB / 0.6871 GB, free: 9.344 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.1487, allocations: 136.5 kB / 0.6873 GB, free: 9.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.149, allocations: 282.6 kB / 0.6875 GB, free: 8.898 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.149, allocations: 29.7 kB / 0.6876 GB, free: 8.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.1491, allocations: 156.3 kB / 0.6877 GB, free: 8.707 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.1492, allocations: 43.36 kB / 0.6878 GB, free: 8.664 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.1493, allocations: 41.7 kB / 0.6878 GB, free: 8.617 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1494, allocations: 342.8 kB / 0.6881 GB, free: 8.273 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1496, allocations: 83.95 kB / 0.6882 GB, free: 8.191 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001856/0.1497, allocations: 137.8 kB / 0.6883 GB, free: 8.039 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.1501, allocations: 240.5 kB / 0.6886 GB, free: 7.781 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1501, allocations: 3.938 kB / 0.6886 GB, free: 7.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004813/0.1506, allocations: 324.8 kB / 0.6889 GB, free: 7.449 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.1506, allocations: 41.69 kB / 0.6889 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1506, allocations: 0 / 0.6889 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1507, allocations: 8.094 kB / 0.6889 GB, free: 7.395 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.1508, allocations: 19.98 kB / 0.6889 GB, free: 7.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1508, allocations: 7.938 kB / 0.689 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.1509, allocations: 23.83 kB / 0.689 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.668e-05/0.151, allocations: 8 kB / 0.689 GB, free: 7.336 MB / 494.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.000158/0.1511, allocations: 192.1 kB / 0.6892 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.1512, allocations: 27.66 kB / 0.6892 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.1512, allocations: 33.83 kB / 0.6892 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1512, allocations: 4 kB / 0.6892 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1513, allocations: 0 / 0.6892 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1513, allocations: 0 / 0.6892 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.1515, allocations: 301.3 kB / 0.6895 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1515, allocations: 0 / 0.6895 GB, free: 6.727 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.1516, allocations: 19.92 kB / 0.6895 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1516, allocations: 0 / 0.6895 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1516, allocations: 8 kB / 0.6895 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1517, allocations: 0 / 0.6895 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1517, allocations: 8 kB / 0.6895 GB, free: 6.691 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006572/0.1523, allocations: 464.9 kB / 0.69 GB, free: 6.215 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.188e-05/0.1524, allocations: 96.8 kB / 0.6901 GB, free: 6.102 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/0.1524, allocations: 8 kB / 0.6901 GB, free: 6.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1525, allocations: 11.98 kB / 0.6901 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.1526, allocations: 39.95 kB / 0.6901 GB, free: 6.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.1527, allocations: 4 kB / 0.6901 GB, free: 6.039 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1528, allocations: 202 kB / 0.6903 GB, free: 5.844 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1528, allocations: 192 / 0.6903 GB, free: 5.844 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.1531, allocations: 59.84 kB / 0.6904 GB, free: 5.785 MB / 494.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.0009928/0.1541, allocations: 1.032 MB / 0.6914 GB, free: 4.719 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004523/0.1546, allocations: 291.2 kB / 0.6917 GB, free: 4.422 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1546, allocations: 0 / 0.6917 GB, free: 4.422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002279/0.1548, allocations: 187.3 kB / 0.6919 GB, free: 4.227 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.1551, allocations: 32.8 kB / 0.6919 GB, free: 4.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.1583, allocations: 2.78 MB / 0.6946 GB, free: 1.312 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.1586, allocations: 0.7552 MB / 0.6953 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.541e-05/0.1587, allocations: 21.53 kB / 0.6954 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.1588, allocations: 71.41 kB / 0.6954 GB, free: 444 kB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1588, allocations: 0 / 0.6954 GB, free: 444 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.1831, allocations: 5.339 MB / 0.7006 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/7.295, allocations: 7.734 kB / 0.7007 GB, free: 11.2 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)