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.001459/0.001459, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001766/0.001766, allocations: 188 kB / 16.25 MB, free: 6.629 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.296/1.296, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 291.4 kB / 290.4 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9116/0.9116, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 94.97 kB / 0.5948 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1414, allocations: 86.98 MB / 0.6797 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00287/0.1443, allocations: 1.996 MB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.1454, allocations: 0.6801 MB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.454e-05/0.1455, allocations: 8.656 kB / 0.6824 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1457, allocations: 80.56 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.1458, allocations: 85.34 kB / 0.6825 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.1463, allocations: 166.5 kB / 0.6827 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.1466, allocations: 267.4 kB / 0.6829 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.1467, allocations: 69.86 kB / 0.683 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.1468, allocations: 119.6 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.147, allocations: 151.5 kB / 0.6833 GB, free: 13.37 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.264e-05/0.147, allocations: 20 kB / 0.6833 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.1472, allocations: 95.92 kB / 0.6834 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.047e-05/0.1473, allocations: 59.83 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.338e-05/0.1474, allocations: 107.3 kB / 0.6835 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.1477, allocations: 299 kB / 0.6838 GB, free: 12.8 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1477, allocations: 0 / 0.6838 GB, free: 12.8 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1477, allocations: 0 / 0.6838 GB, free: 12.8 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1477, allocations: 0 / 0.6838 GB, free: 12.8 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.0007502/0.1484, allocations: 0.5858 MB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.1485, allocations: 8.031 kB / 0.6844 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.743e-05/0.1485, allocations: 46.73 kB / 0.6844 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.2e-05/0.1486, allocations: 32.56 kB / 0.6845 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003826/0.149, allocations: 298.9 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.149, allocations: 16.36 kB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.1491, allocations: 12.38 kB / 0.6848 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.1494, allocations: 223.1 kB / 0.685 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1494, allocations: 3.938 kB / 0.685 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.1495, allocations: 12 kB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1495, allocations: 4 kB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.1497, allocations: 124.4 kB / 0.6851 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007702/0.1505, allocations: 0.6923 MB / 0.6858 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.1508, allocations: 158.5 kB / 0.686 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.151, allocations: 105 kB / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.151, allocations: 0 / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.1513, allocations: 175 kB / 0.6862 GB, free: 10.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.1513, allocations: 0 / 0.6862 GB, free: 10.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006167/0.152, allocations: 366.9 kB / 0.6866 GB, free: 9.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.152, allocations: 144.5 kB / 0.6867 GB, free: 9.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.1523, allocations: 282.6 kB / 0.687 GB, free: 9.297 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.1523, allocations: 29.7 kB / 0.687 GB, free: 9.262 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.808e-05/0.1524, allocations: 156.3 kB / 0.6872 GB, free: 9.105 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1525, allocations: 43.34 kB / 0.6872 GB, free: 9.062 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.707e-05/0.1525, allocations: 41.7 kB / 0.6872 GB, free: 9.016 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1527, allocations: 342.8 kB / 0.6876 GB, free: 8.672 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.1528, allocations: 87.95 kB / 0.6876 GB, free: 8.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.153, allocations: 131.1 kB / 0.6878 GB, free: 8.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.1533, allocations: 248 kB / 0.688 GB, free: 8.176 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1534, allocations: 3.938 kB / 0.688 GB, free: 8.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000463/0.1538, allocations: 328.8 kB / 0.6883 GB, free: 7.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.1539, allocations: 41.69 kB / 0.6884 GB, free: 7.793 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1539, allocations: 0 / 0.6884 GB, free: 7.793 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.1539, allocations: 4 kB / 0.6884 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.154, allocations: 24.02 kB / 0.6884 GB, free: 7.766 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.154, allocations: 11.98 kB / 0.6884 GB, free: 7.754 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.1542, allocations: 23.83 kB / 0.6884 GB, free: 7.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.1542, allocations: 8 kB / 0.6884 GB, free: 7.723 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.0001669/0.1544, allocations: 192 kB / 0.6886 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.911e-05/0.1544, allocations: 27.72 kB / 0.6886 GB, free: 7.492 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.322e-05/0.1545, allocations: 29.83 kB / 0.6887 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.1545, allocations: 4 kB / 0.6887 GB, free: 7.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1545, allocations: 3.938 kB / 0.6887 GB, free: 7.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1545, allocations: 4 kB / 0.6887 GB, free: 7.453 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.1547, allocations: 297.3 kB / 0.689 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1547, allocations: 0 / 0.689 GB, free: 7.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.1548, allocations: 15.98 kB / 0.689 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1549, allocations: 0 / 0.689 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.1549, allocations: 8 kB / 0.689 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1549, allocations: 0 / 0.689 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1549, allocations: 0 / 0.689 GB, free: 7.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.1556, allocations: 471.4 kB / 0.6894 GB, free: 6.605 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.1556, allocations: 96.8 kB / 0.6895 GB, free: 6.492 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.456e-05/0.1557, allocations: 12 kB / 0.6895 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.1558, allocations: 11.98 kB / 0.6896 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.1559, allocations: 27.97 kB / 0.6896 GB, free: 6.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.1559, allocations: 7.984 kB / 0.6896 GB, free: 6.434 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001626/0.1561, allocations: 206 kB / 0.6898 GB, free: 6.234 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1561, allocations: 0 / 0.6898 GB, free: 6.234 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1564, allocations: 63.97 kB / 0.6898 GB, free: 6.172 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.0009558/0.1573, allocations: 1.021 MB / 0.6908 GB, free: 5.121 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004379/0.1578, allocations: 299.2 kB / 0.6911 GB, free: 4.816 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1578, allocations: 0 / 0.6911 GB, free: 4.816 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.158, allocations: 187.5 kB / 0.6913 GB, free: 4.621 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.1583, allocations: 36.92 kB / 0.6913 GB, free: 4.582 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.1615, allocations: 2.834 MB / 0.6941 GB, free: 1.652 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.1618, allocations: 0.763 MB / 0.6949 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.584e-05/0.1619, allocations: 17.55 kB / 0.6949 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.162, allocations: 71.41 kB / 0.6949 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.162, allocations: 0 / 0.6949 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01939/0.1814, allocations: 5.114 MB / 0.6999 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/0.1816, allocations: 210.9 kB / 0.7001 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/2.023, allocations: 8.516 kB / 0.7001 GB, free: 11.55 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)