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.0009811/0.000981, allocations: 90.52 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.005955/0.005955, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9126/0.9126, allocations: 135.3 MB / 426.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 8 kB / 0.5077 GB, free: 4.684 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1408, allocations: 82.31 MB / 0.5881 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002083/0.1429, allocations: 1.646 MB / 0.5897 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.1441, allocations: 0.6898 MB / 0.5904 GB, free: 180 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.1442, allocations: 4 kB / 0.5904 GB, free: 176 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.1445, allocations: 83.7 kB / 0.5904 GB, free: 92 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.1446, allocations: 79.69 kB / 0.5905 GB, free: 12 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.1451, allocations: 163.6 kB / 0.5907 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.1454, allocations: 235.5 kB / 0.5909 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1456, allocations: 66.09 kB / 0.591 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001381/0.1457, allocations: 95.61 kB / 0.5911 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/0.1459, allocations: 127.5 kB / 0.5912 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.586e-05/0.146, allocations: 4 kB / 0.5912 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.1461, allocations: 79.91 kB / 0.5913 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.738e-05/0.1462, allocations: 47.72 kB / 0.5913 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.1463, allocations: 121 kB / 0.5914 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.1466, allocations: 275.1 kB / 0.5917 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1466, allocations: 0 / 0.5917 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.1466, allocations: 0 / 0.5917 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.1466, allocations: 4 kB / 0.5917 GB, free: 14.82 MB / 0.4981 GB 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.0007541/0.1474, allocations: 0.543 MB / 0.5922 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1475, allocations: 12.03 kB / 0.5922 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.1475, allocations: 46.73 kB / 0.5923 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.1476, allocations: 36.56 kB / 0.5923 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.148, allocations: 306.9 kB / 0.5926 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.1481, allocations: 20.12 kB / 0.5926 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.1481, allocations: 15.91 kB / 0.5926 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.1485, allocations: 227.9 kB / 0.5929 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1485, allocations: 0 / 0.5929 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.1485, allocations: 4 kB / 0.5929 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1486, allocations: 7.938 kB / 0.5929 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002688/0.1488, allocations: 140.3 kB / 0.593 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008156/0.1497, allocations: 0.6886 MB / 0.5937 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003777/0.15, allocations: 186.6 kB / 0.5938 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001765/0.1502, allocations: 104.8 kB / 0.5939 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.1503, allocations: 3.984 kB / 0.5939 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.1506, allocations: 165.1 kB / 0.5941 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1506, allocations: 3.938 kB / 0.5941 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006727/0.1512, allocations: 390.3 kB / 0.5945 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.1513, allocations: 136.5 kB / 0.5946 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002614/0.1516, allocations: 278.6 kB / 0.5949 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.1516, allocations: 33.7 kB / 0.5949 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1517, allocations: 160.2 kB / 0.5951 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.1518, allocations: 43.45 kB / 0.5951 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/0.1518, allocations: 21.72 kB / 0.5951 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.152, allocations: 342.8 kB / 0.5955 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.1521, allocations: 87.95 kB / 0.5955 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.1523, allocations: 142.9 kB / 0.5957 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.1527, allocations: 249.2 kB / 0.5959 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1527, allocations: 0 / 0.5959 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004763/0.1532, allocations: 342.9 kB / 0.5962 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.1532, allocations: 37.69 kB / 0.5963 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1532, allocations: 0 / 0.5963 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1532, allocations: 8.094 kB / 0.5963 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.1534, allocations: 31.92 kB / 0.5963 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1534, allocations: 0 / 0.5963 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1535, allocations: 31.77 kB / 0.5963 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.1535, allocations: 4 kB / 0.5963 GB, free: 9.699 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.0001578/0.1537, allocations: 195.5 kB / 0.5965 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.398e-05/0.1537, allocations: 23.72 kB / 0.5966 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.1538, allocations: 29.83 kB / 0.5966 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1538, allocations: 0 / 0.5966 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1538, allocations: 0 / 0.5966 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1538, allocations: 3.938 kB / 0.5966 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.154, allocations: 293.3 kB / 0.5969 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.154, allocations: 0 / 0.5969 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.77e-05/0.1541, allocations: 23.92 kB / 0.5969 GB, free: 9.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1542, allocations: 4 kB / 0.5969 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1542, allocations: 8.094 kB / 0.5969 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1542, allocations: 3.938 kB / 0.5969 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1542, allocations: 0 / 0.5969 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.1549, allocations: 482.3 kB / 0.5974 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.1549, allocations: 100.8 kB / 0.5975 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.155, allocations: 8 kB / 0.5975 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.1551, allocations: 19.98 kB / 0.5975 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.1552, allocations: 31.89 kB / 0.5975 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1552, allocations: 4 kB / 0.5975 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001713/0.1554, allocations: 210 kB / 0.5977 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1554, allocations: 0 / 0.5977 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002527/0.1556, allocations: 52.03 kB / 0.5978 GB, free: 8.125 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.0009585/0.1566, allocations: 1.039 MB / 0.5988 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004528/0.157, allocations: 306.4 kB / 0.5991 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1571, allocations: 0 / 0.5991 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.1573, allocations: 187.3 kB / 0.5993 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.1576, allocations: 36.48 kB / 0.5993 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/0.1608, allocations: 2.849 MB / 0.6021 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.1611, allocations: 0.7517 MB / 0.6028 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.03e-05/0.1612, allocations: 17.55 kB / 0.6028 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.1613, allocations: 75.41 kB / 0.6029 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1613, allocations: 0 / 0.6029 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.998/1.159, allocations: 4.841 MB / 0.6076 GB, free: 49.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/1.16, allocations: 188 kB / 0.6078 GB, free: 49.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.984/3.144, allocations: 0 / 0.6078 GB, free: 49.38 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)