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.001083/0.001083, allocations: 108 kB / 15.6 MB, free: 132 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.001157/0.001157, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.292/1.292, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002198/0.002198, allocations: 279 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9313/0.9313, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002984/0.002984, allocations: 99.39 kB / 0.5953 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1418, allocations: 86.98 MB / 0.6803 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003139/0.145, allocations: 1.946 MB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.1462, allocations: 0.7057 MB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.1464, allocations: 4 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.1466, allocations: 83.64 kB / 0.683 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.1467, allocations: 95.56 kB / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.1473, allocations: 187 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003077/0.1476, allocations: 263.4 kB / 0.6835 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001513/0.1478, allocations: 73.86 kB / 0.6836 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.148, allocations: 115.7 kB / 0.6837 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001903/0.1482, allocations: 151.5 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.249e-05/0.1482, allocations: 20 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.1484, allocations: 87.94 kB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.58e-05/0.1484, allocations: 59.81 kB / 0.684 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1485, allocations: 107.3 kB / 0.6841 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.1489, allocations: 303 kB / 0.6844 GB, free: 12.38 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1489, allocations: 0 / 0.6844 GB, free: 12.38 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.1489, allocations: 0 / 0.6844 GB, free: 12.38 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1489, allocations: 3.938 kB / 0.6844 GB, free: 12.38 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.0008156/0.1498, allocations: 0.5741 MB / 0.6849 GB, free: 11.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1498, allocations: 8.031 kB / 0.6849 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.89e-05/0.1499, allocations: 54.73 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.086e-05/0.1499, allocations: 28.56 kB / 0.685 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004188/0.1504, allocations: 302.9 kB / 0.6853 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/0.1504, allocations: 8.375 kB / 0.6853 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.1504, allocations: 16.38 kB / 0.6853 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003712/0.1508, allocations: 227.1 kB / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.1508, allocations: 0 / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.1509, allocations: 8 kB / 0.6855 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1509, allocations: 4 kB / 0.6856 GB, free: 11.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.1511, allocations: 120.4 kB / 0.6857 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007838/0.1519, allocations: 0.6923 MB / 0.6863 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.1523, allocations: 166.7 kB / 0.6865 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.1525, allocations: 96.83 kB / 0.6866 GB, free: 9.898 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.1525, allocations: 4.031 kB / 0.6866 GB, free: 9.895 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.1528, allocations: 179.1 kB / 0.6868 GB, free: 9.703 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1528, allocations: 4 kB / 0.6868 GB, free: 9.699 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006704/0.1535, allocations: 378.8 kB / 0.6871 GB, free: 9.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.1536, allocations: 132.5 kB / 0.6873 GB, free: 9.156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.1538, allocations: 282.6 kB / 0.6875 GB, free: 8.875 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.1539, allocations: 33.7 kB / 0.6876 GB, free: 8.836 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.852e-05/0.154, allocations: 152.3 kB / 0.6877 GB, free: 8.684 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.154, allocations: 43.36 kB / 0.6877 GB, free: 8.641 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/0.1541, allocations: 45.7 kB / 0.6878 GB, free: 8.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1542, allocations: 338.8 kB / 0.6881 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.1544, allocations: 87.89 kB / 0.6882 GB, free: 8.164 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001903/0.1546, allocations: 133.8 kB / 0.6883 GB, free: 8.016 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.1549, allocations: 244.2 kB / 0.6886 GB, free: 7.754 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1549, allocations: 0 / 0.6886 GB, free: 7.754 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004947/0.1554, allocations: 327 kB / 0.6889 GB, free: 7.422 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.833e-05/0.1555, allocations: 45.78 kB / 0.6889 GB, free: 7.371 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.1555, allocations: 4 kB / 0.6889 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1555, allocations: 0 / 0.6889 GB, free: 7.367 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.1556, allocations: 19.98 kB / 0.6889 GB, free: 7.348 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1557, allocations: 4 kB / 0.6889 GB, free: 7.344 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.1558, allocations: 31.83 kB / 0.689 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1558, allocations: 4 kB / 0.689 GB, free: 7.309 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.0001685/0.156, allocations: 200 kB / 0.6892 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.1561, allocations: 23.72 kB / 0.6892 GB, free: 7.074 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.36e-05/0.1561, allocations: 29.83 kB / 0.6892 GB, free: 7.047 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1561, allocations: 4 kB / 0.6892 GB, free: 7.043 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1561, allocations: 0 / 0.6892 GB, free: 7.043 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1561, allocations: 3.938 kB / 0.6892 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.1564, allocations: 301.3 kB / 0.6895 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1564, allocations: 0 / 0.6895 GB, free: 6.695 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.1565, allocations: 15.98 kB / 0.6895 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.1565, allocations: 0 / 0.6895 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1566, allocations: 12 kB / 0.6895 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1566, allocations: 0 / 0.6895 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1566, allocations: 0 / 0.6895 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007134/0.1573, allocations: 468.1 kB / 0.69 GB, free: 6.188 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.1574, allocations: 96.8 kB / 0.6901 GB, free: 6.074 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.1574, allocations: 12 kB / 0.6901 GB, free: 6.062 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1575, allocations: 12.05 kB / 0.6901 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.149e-05/0.1576, allocations: 31.95 kB / 0.6901 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.1576, allocations: 4 kB / 0.6901 GB, free: 6.016 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.1578, allocations: 202 kB / 0.6903 GB, free: 5.82 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1578, allocations: 0 / 0.6903 GB, free: 5.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002849/0.1581, allocations: 63.83 kB / 0.6904 GB, free: 5.758 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.0009925/0.1591, allocations: 1.026 MB / 0.6914 GB, free: 4.699 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004692/0.1596, allocations: 295.2 kB / 0.6917 GB, free: 4.398 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1596, allocations: 4.438 kB / 0.6917 GB, free: 4.395 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.1599, allocations: 187.3 kB / 0.6919 GB, free: 4.199 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.1602, allocations: 35.72 kB / 0.6919 GB, free: 4.168 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003306/0.1635, allocations: 2.778 MB / 0.6946 GB, free: 1.289 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.1638, allocations: 0.7552 MB / 0.6953 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.906e-05/0.1639, allocations: 25.42 kB / 0.6954 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.731e-05/0.164, allocations: 71.41 kB / 0.6954 GB, free: 416 kB / 494.1 MB Notification: Performance of SimCode: time 2.31e-07/0.164, allocations: 0 / 0.6954 GB, free: 416 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.186, allocations: 5.337 MB / 0.7006 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/7.494, allocations: 6.672 kB / 0.7006 GB, free: 11.18 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)