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.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001253/0.001253, allocations: 192.8 kB / 16.14 MB, free: 6.715 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.228/1.228, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00191/0.00191, allocations: 276.1 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.871/0.871, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 90.77 kB / 0.5946 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1399, allocations: 86.98 MB / 0.6795 GB, free: 1.082 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003235/0.1432, allocations: 2 MB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1444, allocations: 0.7083 MB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1446, allocations: 4.5 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.1448, allocations: 73.66 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.145, allocations: 91.69 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005202/0.1455, allocations: 154.4 kB / 0.6825 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.1458, allocations: 239.4 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.146, allocations: 65.88 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.1461, allocations: 103.6 kB / 0.6829 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1463, allocations: 147.5 kB / 0.683 GB, free: 13.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.413e-05/0.1464, allocations: 12 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.1465, allocations: 75.94 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.51e-05/0.1466, allocations: 51.77 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.1467, allocations: 103.2 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003102/0.147, allocations: 287.1 kB / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.147, allocations: 0 / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.147, allocations: 0 / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1471, allocations: 0 / 0.6835 GB, free: 12.99 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.0008181/0.1479, allocations: 0.5781 MB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1479, allocations: 12.03 kB / 0.6841 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.872e-05/0.148, allocations: 46.73 kB / 0.6842 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.1481, allocations: 32.56 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.1485, allocations: 294.9 kB / 0.6845 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.1485, allocations: 16.38 kB / 0.6845 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/0.1485, allocations: 12.38 kB / 0.6845 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.1489, allocations: 227.1 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.1489, allocations: 3.938 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.149, allocations: 4 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.149, allocations: 8 kB / 0.6847 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.1492, allocations: 132.3 kB / 0.6849 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007897/0.15, allocations: 0.6846 MB / 0.6855 GB, free: 10.78 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003421/0.1504, allocations: 166.6 kB / 0.6857 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1505, allocations: 100.8 kB / 0.6858 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.1506, allocations: 4 kB / 0.6858 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.1509, allocations: 161 kB / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.1509, allocations: 0 / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006252/0.1515, allocations: 381.5 kB / 0.6863 GB, free: 9.941 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.1516, allocations: 140.5 kB / 0.6864 GB, free: 9.773 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1518, allocations: 278.6 kB / 0.6867 GB, free: 9.496 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.1519, allocations: 37.69 kB / 0.6867 GB, free: 9.453 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.152, allocations: 152.3 kB / 0.6869 GB, free: 9.301 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.883e-05/0.152, allocations: 47.34 kB / 0.6869 GB, free: 9.254 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.609e-05/0.1521, allocations: 37.7 kB / 0.687 GB, free: 9.211 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1522, allocations: 342.8 kB / 0.6873 GB, free: 8.867 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.1523, allocations: 83.97 kB / 0.6874 GB, free: 8.785 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1525, allocations: 132.5 kB / 0.6875 GB, free: 8.641 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.1528, allocations: 246.7 kB / 0.6877 GB, free: 8.375 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1528, allocations: 0 / 0.6877 GB, free: 8.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004632/0.1533, allocations: 340.4 kB / 0.6881 GB, free: 8.031 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.1534, allocations: 33.7 kB / 0.6881 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1534, allocations: 0 / 0.6881 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1534, allocations: 96 / 0.6881 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.1535, allocations: 31.92 kB / 0.6881 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.1535, allocations: 4.031 kB / 0.6881 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1536, allocations: 27.83 kB / 0.6881 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.1537, allocations: 4 kB / 0.6882 GB, free: 7.926 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.0001595/0.1538, allocations: 200 kB / 0.6883 GB, free: 7.715 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/0.1539, allocations: 23.72 kB / 0.6884 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.041e-05/0.1539, allocations: 29.83 kB / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1539, allocations: 0 / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1539, allocations: 0 / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.154, allocations: 4 kB / 0.6884 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.1542, allocations: 293.3 kB / 0.6887 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1542, allocations: 0 / 0.6887 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.874e-05/0.1543, allocations: 19.98 kB / 0.6887 GB, free: 7.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.1543, allocations: 4 kB / 0.6887 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.1543, allocations: 0 / 0.6887 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1543, allocations: 4 kB / 0.6887 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1543, allocations: 7.922 kB / 0.6887 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006377/0.155, allocations: 458.3 kB / 0.6891 GB, free: 6.816 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.444e-05/0.1551, allocations: 104.8 kB / 0.6892 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.174e-05/0.1551, allocations: 7.984 kB / 0.6893 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.1552, allocations: 12 kB / 0.6893 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.277e-05/0.1553, allocations: 23.95 kB / 0.6893 GB, free: 6.652 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.1553, allocations: 7.984 kB / 0.6893 GB, free: 6.645 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001632/0.1555, allocations: 202 kB / 0.6895 GB, free: 6.449 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.1555, allocations: 8 kB / 0.6895 GB, free: 6.441 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.1558, allocations: 63.91 kB / 0.6896 GB, free: 6.379 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.0009408/0.1567, allocations: 1.026 MB / 0.6906 GB, free: 5.32 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004229/0.1571, allocations: 302.1 kB / 0.6909 GB, free: 5.016 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1572, allocations: 3.938 kB / 0.6909 GB, free: 5.012 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.1574, allocations: 175.4 kB / 0.691 GB, free: 4.828 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.1577, allocations: 37.11 kB / 0.6911 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003202/0.1609, allocations: 2.831 MB / 0.6938 GB, free: 1.863 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.1611, allocations: 0.7594 MB / 0.6946 GB, free: 1.078 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.139e-05/0.1612, allocations: 17.55 kB / 0.6946 GB, free: 1.055 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1613, allocations: 75.41 kB / 0.6947 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1614, allocations: 3.938 kB / 0.6947 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.1756, allocations: 4.94 MB / 0.6995 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.1758, allocations: 221.9 kB / 0.6997 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.577/1.753, allocations: 0 / 0.6997 GB, free: 11.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)