Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_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.001023/0.001023, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001032/0.001032, allocations: 193.9 kB / 16.26 MB, free: 6.625 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.289/1.289, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9128/0.9128, allocations: 135.1 MB / 425.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 64.77 kB / 0.505 GB, free: 5.582 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1366, allocations: 80.93 MB / 0.584 GB, free: 4.82 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003141/0.1398, allocations: 2.001 MB / 0.5859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1409, allocations: 0.6896 MB / 0.5866 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.1411, allocations: 7.938 kB / 0.5866 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000219/0.1413, allocations: 75.77 kB / 0.5867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001307/0.1415, allocations: 87.69 kB / 0.5868 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005577/0.142, allocations: 162.9 kB / 0.5869 GB, free: 1.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003166/0.1424, allocations: 259.5 kB / 0.5872 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.1425, allocations: 78.08 kB / 0.5873 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.1427, allocations: 119.6 kB / 0.5874 GB, free: 1.332 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1429, allocations: 151.5 kB / 0.5875 GB, free: 1.184 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.726e-05/0.1429, allocations: 20 kB / 0.5875 GB, free: 1.164 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.1431, allocations: 99.86 kB / 0.5876 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.422e-05/0.1432, allocations: 55.83 kB / 0.5877 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.1433, allocations: 107.3 kB / 0.5878 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.1437, allocations: 295.2 kB / 0.5881 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1437, allocations: 0 / 0.5881 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1437, allocations: 0 / 0.5881 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.1437, allocations: 0 / 0.5881 GB, free: 0.6172 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.0008298/0.1445, allocations: 0.5974 MB / 0.5886 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1446, allocations: 8.031 kB / 0.5887 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.687e-05/0.1446, allocations: 50.67 kB / 0.5887 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.1447, allocations: 28.66 kB / 0.5887 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.1451, allocations: 298.7 kB / 0.589 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.1451, allocations: 20.12 kB / 0.589 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1452, allocations: 12 kB / 0.589 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.1456, allocations: 219.9 kB / 0.5893 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1456, allocations: 0 / 0.5893 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.1456, allocations: 8 kB / 0.5893 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1456, allocations: 0 / 0.5893 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.1459, allocations: 132.3 kB / 0.5894 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008176/0.1467, allocations: 0.6963 MB / 0.5901 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/0.1471, allocations: 158.5 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.1472, allocations: 101 kB / 0.5903 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1473, allocations: 0 / 0.5903 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003163/0.1476, allocations: 173.1 kB / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.853e-06/0.1476, allocations: 0 / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006624/0.1483, allocations: 373.6 kB / 0.5908 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.1483, allocations: 136.5 kB / 0.591 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.1486, allocations: 286.6 kB / 0.5912 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1487, allocations: 33.7 kB / 0.5913 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1488, allocations: 156.2 kB / 0.5914 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.1488, allocations: 47.38 kB / 0.5915 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.1489, allocations: 41.7 kB / 0.5915 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.149, allocations: 338.8 kB / 0.5918 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.1492, allocations: 87.95 kB / 0.5919 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.1494, allocations: 133.1 kB / 0.592 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.1497, allocations: 238.7 kB / 0.5923 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.1497, allocations: 4 kB / 0.5923 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004866/0.1502, allocations: 333.2 kB / 0.5926 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.1503, allocations: 41.69 kB / 0.5926 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1503, allocations: 0 / 0.5926 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1503, allocations: 4 kB / 0.5926 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1504, allocations: 23.92 kB / 0.5927 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.1505, allocations: 4 kB / 0.5927 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.1506, allocations: 27.67 kB / 0.5927 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1506, allocations: 16.09 kB / 0.5927 GB, free: 11.52 MB / 0.4981 GB 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.0001696/0.1508, allocations: 191.1 kB / 0.5929 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.1508, allocations: 27.72 kB / 0.5929 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/0.1509, allocations: 25.83 kB / 0.5929 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1509, allocations: 0 / 0.5929 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1509, allocations: 96 / 0.5929 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1509, allocations: 11.88 kB / 0.5929 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.1512, allocations: 289.5 kB / 0.5932 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1512, allocations: 4 kB / 0.5932 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.1513, allocations: 19.97 kB / 0.5932 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1513, allocations: 0 / 0.5932 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.1513, allocations: 4 kB / 0.5933 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.1513, allocations: 0 / 0.5933 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1513, allocations: 0 / 0.5933 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007106/0.1521, allocations: 482.2 kB / 0.5937 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.1521, allocations: 96.8 kB / 0.5938 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.463e-05/0.1522, allocations: 11.94 kB / 0.5938 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1523, allocations: 11.98 kB / 0.5938 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.1524, allocations: 31.89 kB / 0.5939 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.1524, allocations: 8 kB / 0.5939 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001747/0.1526, allocations: 198 kB / 0.5941 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1526, allocations: 0 / 0.5941 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002825/0.1529, allocations: 52 kB / 0.5941 GB, free: 9.977 MB / 0.4981 GB 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.001019/0.1539, allocations: 1.03 MB / 0.5951 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000458/0.1544, allocations: 299.3 kB / 0.5954 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.1544, allocations: 0 / 0.5954 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.1546, allocations: 183.3 kB / 0.5956 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.1549, allocations: 34.34 kB / 0.5956 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.1583, allocations: 2.828 MB / 0.5984 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1586, allocations: 0.7514 MB / 0.5991 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.062e-05/0.1587, allocations: 17.55 kB / 0.5991 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.1588, allocations: 79.34 kB / 0.5992 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1588, allocations: 0 / 0.5992 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2301/0.3889, allocations: 5.07 MB / 0.6041 GB, free: 52.26 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001173/0.3891, allocations: 195.1 kB / 0.6043 GB, free: 52.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.265, allocations: 4.641 kB / 0.6043 GB, free: 52.01 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)