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.0007832/0.0007833, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.005252/0.005252, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.275/1.275, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001656/0.001656, allocations: 271 kB / 291.7 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9279/0.9279, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004245/0.0004245, allocations: 12.19 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.15, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001916/0.1519, allocations: 1.655 MB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.153, allocations: 0.6956 MB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.367e-05/0.1531, allocations: 1.188 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.1533, allocations: 79.69 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.1535, allocations: 82.94 kB / 0.6877 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004495/0.1539, allocations: 154.8 kB / 0.6878 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.1542, allocations: 244.3 kB / 0.6881 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1543, allocations: 62.47 kB / 0.6881 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1544, allocations: 95.61 kB / 0.6882 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1546, allocations: 130.5 kB / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.1547, allocations: 4 kB / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1548, allocations: 83.86 kB / 0.6884 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.624e-05/0.1549, allocations: 47.77 kB / 0.6885 GB, free: 11.67 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.155, allocations: 113 kB / 0.6886 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.1552, allocations: 279 kB / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1553, allocations: 0.75 kB / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1553, allocations: 0 / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1553, allocations: 5.719 kB / 0.6888 GB, free: 11.27 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.000695/0.156, allocations: 0.5416 MB / 0.6894 GB, free: 10.68 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.156, allocations: 12.03 kB / 0.6894 GB, free: 10.67 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.659e-05/0.1561, allocations: 49.55 kB / 0.6894 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.1561, allocations: 32.56 kB / 0.6895 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.1565, allocations: 303.7 kB / 0.6898 GB, free: 10.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.1566, allocations: 12.38 kB / 0.6898 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.1566, allocations: 12.97 kB / 0.6898 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000366/0.157, allocations: 233.5 kB / 0.69 GB, free: 9.977 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.157, allocations: 1 kB / 0.69 GB, free: 9.977 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.157, allocations: 4 kB / 0.69 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.157, allocations: 4 kB / 0.69 GB, free: 9.969 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.1573, allocations: 140.3 kB / 0.6901 GB, free: 9.832 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007974/0.1581, allocations: 0.6846 MB / 0.6908 GB, free: 9.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.1585, allocations: 182.6 kB / 0.691 GB, free: 8.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.1586, allocations: 100.8 kB / 0.6911 GB, free: 8.801 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.1587, allocations: 3.984 kB / 0.6911 GB, free: 8.797 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.159, allocations: 181 kB / 0.6913 GB, free: 8.602 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.159, allocations: 0 / 0.6913 GB, free: 8.602 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006463/0.1596, allocations: 393 kB / 0.6916 GB, free: 8.207 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1597, allocations: 132.5 kB / 0.6918 GB, free: 8.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.16, allocations: 282.6 kB / 0.692 GB, free: 7.766 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.16, allocations: 29.7 kB / 0.6921 GB, free: 7.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1601, allocations: 156.3 kB / 0.6922 GB, free: 7.574 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.1601, allocations: 35.45 kB / 0.6922 GB, free: 7.539 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.975e-05/0.1602, allocations: 29.7 kB / 0.6923 GB, free: 7.504 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1603, allocations: 342.8 kB / 0.6926 GB, free: 7.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.1605, allocations: 95.89 kB / 0.6927 GB, free: 7.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1607, allocations: 137.8 kB / 0.6928 GB, free: 6.914 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000321/0.161, allocations: 252.6 kB / 0.6931 GB, free: 6.645 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.161, allocations: 0 / 0.6931 GB, free: 6.645 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004826/0.1615, allocations: 337 kB / 0.6934 GB, free: 6.305 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.1616, allocations: 41.78 kB / 0.6934 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1616, allocations: 3.938 kB / 0.6934 GB, free: 6.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.669e-06/0.1616, allocations: 4 kB / 0.6934 GB, free: 6.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.1617, allocations: 27.92 kB / 0.6935 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.1617, allocations: 0 / 0.6935 GB, free: 6.223 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.1619, allocations: 35.92 kB / 0.6935 GB, free: 6.188 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.1619, allocations: 4 kB / 0.6935 GB, free: 6.184 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.0001592/0.162, allocations: 194.8 kB / 0.6937 GB, free: 5.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.358e-05/0.1621, allocations: 23.72 kB / 0.6937 GB, free: 5.957 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.295e-05/0.1621, allocations: 33.83 kB / 0.6937 GB, free: 5.926 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1621, allocations: 0 / 0.6937 GB, free: 5.926 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1622, allocations: 8 kB / 0.6937 GB, free: 5.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1622, allocations: 0 / 0.6937 GB, free: 5.918 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.1624, allocations: 293.4 kB / 0.694 GB, free: 5.582 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1624, allocations: 3.938 kB / 0.694 GB, free: 5.578 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.1625, allocations: 23.92 kB / 0.694 GB, free: 5.555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1625, allocations: 0 / 0.694 GB, free: 5.555 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1626, allocations: 8 kB / 0.6941 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1626, allocations: 0 / 0.6941 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1626, allocations: 0 / 0.6941 GB, free: 5.547 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006966/0.1633, allocations: 488.3 kB / 0.6945 GB, free: 5.047 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.1633, allocations: 96.77 kB / 0.6946 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.1634, allocations: 8 kB / 0.6946 GB, free: 4.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.1635, allocations: 20.05 kB / 0.6946 GB, free: 4.906 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.393e-05/0.1636, allocations: 27.95 kB / 0.6947 GB, free: 4.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.1636, allocations: 4 kB / 0.6947 GB, free: 4.875 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001651/0.1638, allocations: 205.9 kB / 0.6949 GB, free: 4.676 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1638, allocations: 0 / 0.6949 GB, free: 4.676 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.1641, allocations: 56.06 kB / 0.6949 GB, free: 4.621 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.0009607/0.165, allocations: 1.043 MB / 0.6959 GB, free: 3.543 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004515/0.1655, allocations: 301.5 kB / 0.6962 GB, free: 3.238 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1655, allocations: 4 kB / 0.6962 GB, free: 3.234 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.1657, allocations: 191.5 kB / 0.6964 GB, free: 3.035 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.166, allocations: 28.92 kB / 0.6964 GB, free: 3.004 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003218/0.1693, allocations: 2.857 MB / 0.6992 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.1696, allocations: 0.7517 MB / 0.7 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.889e-05/0.1697, allocations: 25.53 kB / 0.7 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.846e-05/0.1698, allocations: 67.42 kB / 0.7001 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.1698, allocations: 0 / 0.7001 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01441/0.1842, allocations: 4.869 MB / 0.7048 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.1844, allocations: 206.2 kB / 0.705 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/1.954, allocations: 0 / 0.705 GB, free: 10.22 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)