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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 182.5 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7211/0.7211, allocations: 133.3 MB / 150.1 MB, free: 11.15 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 404.7 MB, free: 6.051 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 103.7 kB / 485.9 MB, free: 7.137 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 55.91 kB / 0.5636 GB, free: 69.9 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1222, allocations: 80.43 MB / 0.6421 GB, free: 5.402 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003246/0.1255, allocations: 2 MB / 0.6441 GB, free: 3.379 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1267, allocations: 0.7208 MB / 0.6448 GB, free: 2.656 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.1268, allocations: 0 / 0.6448 GB, free: 2.656 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.1271, allocations: 79.7 kB / 0.6449 GB, free: 2.578 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1272, allocations: 79.7 kB / 0.645 GB, free: 2.5 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.1277, allocations: 158.1 kB / 0.6451 GB, free: 2.348 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.000262/0.128, allocations: 243.5 kB / 0.6453 GB, free: 2.109 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.1282, allocations: 74.09 kB / 0.6454 GB, free: 2.035 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.1283, allocations: 99.59 kB / 0.6455 GB, free: 1.938 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.1285, allocations: 135.5 kB / 0.6456 GB, free: 1.805 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.1285, allocations: 8 kB / 0.6456 GB, free: 1.797 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1287, allocations: 83.92 kB / 0.6457 GB, free: 1.715 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.1287, allocations: 51.77 kB / 0.6458 GB, free: 1.664 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 8.646e-05/0.1288, allocations: 103.3 kB / 0.6459 GB, free: 1.562 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.1291, allocations: 275.2 kB / 0.6461 GB, free: 1.293 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1291, allocations: 4 kB / 0.6461 GB, free: 1.289 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1291, allocations: 0 / 0.6461 GB, free: 1.289 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1291, allocations: 0 / 0.6461 GB, free: 1.289 MB / 442.7 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.0007595/0.1299, allocations: 0.5819 MB / 0.6467 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.13, allocations: 8.031 kB / 0.6467 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.13, allocations: 32.66 kB / 0.6467 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.1304, allocations: 306.7 kB / 0.647 GB, free: 280 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.1305, allocations: 12.38 kB / 0.647 GB, free: 268 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.1305, allocations: 15.94 kB / 0.6471 GB, free: 252 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.1309, allocations: 227.1 kB / 0.6473 GB, free: 0 / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1309, allocations: 0 / 0.6473 GB, free: 0 / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.737e-05/0.131, allocations: 4.078 kB / 0.6473 GB, free: 15.99 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.131, allocations: 7.984 kB / 0.6473 GB, free: 15.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002598/0.1312, allocations: 125.8 kB / 0.6474 GB, free: 15.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008533/0.1321, allocations: 0.6845 MB / 0.6481 GB, free: 15.12 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003517/0.1325, allocations: 170.6 kB / 0.6482 GB, free: 14.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1326, allocations: 96.81 kB / 0.6483 GB, free: 14.85 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.1327, allocations: 4 kB / 0.6483 GB, free: 14.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003418/0.133, allocations: 169 kB / 0.6485 GB, free: 14.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=15): time 1.734e-06/0.133, allocations: 0 / 0.6485 GB, free: 14.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006891/0.1337, allocations: 377 kB / 0.6489 GB, free: 14.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/0.1338, allocations: 136.5 kB / 0.649 GB, free: 14.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/0.1341, allocations: 274.7 kB / 0.6492 GB, free: 13.84 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.1341, allocations: 33.7 kB / 0.6493 GB, free: 13.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1343, allocations: 160.1 kB / 0.6494 GB, free: 13.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.1343, allocations: 43.44 kB / 0.6495 GB, free: 13.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.1344, allocations: 41.7 kB / 0.6495 GB, free: 13.55 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1345, allocations: 346.8 kB / 0.6498 GB, free: 13.21 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001697/0.1347, allocations: 83.95 kB / 0.6499 GB, free: 13.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.1349, allocations: 129.1 kB / 0.65 GB, free: 12.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003259/0.1353, allocations: 245.2 kB / 0.6503 GB, free: 12.72 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1353, allocations: 0 / 0.6503 GB, free: 12.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005184/0.1358, allocations: 334.9 kB / 0.6506 GB, free: 12.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.222e-05/0.1358, allocations: 47.34 kB / 0.6506 GB, free: 12.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1359, allocations: 96 / 0.6506 GB, free: 12.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1359, allocations: 12 kB / 0.6507 GB, free: 12.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.136, allocations: 19.98 kB / 0.6507 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.136, allocations: 0 / 0.6507 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.1362, allocations: 31.77 kB / 0.6507 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.1362, allocations: 8 kB / 0.6507 GB, free: 12.26 MB / 458.7 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.0001734/0.1364, allocations: 187.5 kB / 0.6509 GB, free: 12.06 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.093e-05/0.1364, allocations: 31.81 kB / 0.6509 GB, free: 12.03 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.712e-05/0.1365, allocations: 33.77 kB / 0.651 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1365, allocations: 0 / 0.651 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1365, allocations: 0 / 0.651 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1365, allocations: 3.938 kB / 0.651 GB, free: 11.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.1368, allocations: 293.5 kB / 0.6512 GB, free: 11.66 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1369, allocations: 0 / 0.6512 GB, free: 11.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.137, allocations: 15.98 kB / 0.6513 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.137, allocations: 0 / 0.6513 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.069e-05/0.137, allocations: 4 kB / 0.6513 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.137, allocations: 0 / 0.6513 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.137, allocations: 4 kB / 0.6513 GB, free: 11.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004092/0.1411, allocations: 2.969 MB / 0.6542 GB, free: 8.488 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/0.1412, allocations: 100.8 kB / 0.6543 GB, free: 8.371 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.569e-05/0.1413, allocations: 11.94 kB / 0.6543 GB, free: 8.359 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.1414, allocations: 16.05 kB / 0.6543 GB, free: 8.344 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.106e-05/0.1415, allocations: 27.95 kB / 0.6543 GB, free: 8.316 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.1415, allocations: 4.188 kB / 0.6543 GB, free: 8.312 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001934/0.1417, allocations: 202 kB / 0.6545 GB, free: 8.113 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.192e-06/0.1417, allocations: 3.938 kB / 0.6545 GB, free: 8.109 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003967/0.1421, allocations: 87.83 kB / 0.6546 GB, free: 8.023 MB / 458.7 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.0002286/0.1424, allocations: 131.2 kB / 0.6547 GB, free: 7.887 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0004756/0.1428, allocations: 287.2 kB / 0.655 GB, free: 7.594 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1429, allocations: 0 / 0.655 GB, free: 7.594 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.1431, allocations: 187.3 kB / 0.6552 GB, free: 7.398 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.1434, allocations: 32.61 kB / 0.6552 GB, free: 7.367 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.1446, allocations: 0.76 MB / 0.6559 GB, free: 6.559 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.145, allocations: 0.753 MB / 0.6567 GB, free: 5.781 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.1451, allocations: 25.53 kB / 0.6567 GB, free: 5.754 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.646e-05/0.1452, allocations: 15.44 kB / 0.6567 GB, free: 5.742 MB / 458.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1452, allocations: 0 / 0.6567 GB, free: 5.742 MB / 458.7 MB Notification: Performance of Templates: time 0.006929/0.1521, allocations: 3.032 MB / 0.6597 GB, free: 2.73 MB / 458.7 MB make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)