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.004709/0.004709, allocations: 107.9 kB / 15.74 MB, free: 6.449 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.002024/0.002025, allocations: 196 kB / 16.67 MB, free: 6.355 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9598/0.9598, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.89 kB / 0.5851 GB, free: 3.871 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.489/0.4904, allocations: 80.91 MB / 0.6641 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002622/0.4931, allocations: 1.952 MB / 0.666 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009796/0.4941, allocations: 0.7061 MB / 0.6667 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.742e-05/0.4942, allocations: 2.625 kB / 0.6667 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.4944, allocations: 82.27 kB / 0.6668 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.4946, allocations: 93.64 kB / 0.6669 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005103/0.4951, allocations: 191 kB / 0.6671 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.4953, allocations: 261.8 kB / 0.6673 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.4955, allocations: 75.52 kB / 0.6674 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001151/0.4956, allocations: 118.4 kB / 0.6675 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.4957, allocations: 147.4 kB / 0.6677 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.4958, allocations: 21.03 kB / 0.6677 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.4959, allocations: 97.34 kB / 0.6678 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.777e-05/0.496, allocations: 54.31 kB / 0.6678 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.961e-05/0.4961, allocations: 105.2 kB / 0.6679 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.4964, allocations: 314.1 kB / 0.6682 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4965, allocations: 8.938 kB / 0.6682 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4965, allocations: 0 / 0.6682 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.792e-06/0.4965, allocations: 0 / 0.6682 GB, free: 4.191 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.0007158/0.4972, allocations: 0.577 MB / 0.6688 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4972, allocations: 13.5 kB / 0.6688 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.93e-05/0.4973, allocations: 47.7 kB / 0.6689 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.653e-05/0.4973, allocations: 35.66 kB / 0.6689 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.4978, allocations: 305.5 kB / 0.6692 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.4978, allocations: 18.59 kB / 0.6692 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.942e-05/0.4978, allocations: 17.33 kB / 0.6692 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003477/0.4982, allocations: 222.6 kB / 0.6694 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4982, allocations: 0 / 0.6694 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.4982, allocations: 6.203 kB / 0.6694 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.4983, allocations: 7.281 kB / 0.6694 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.4985, allocations: 127.3 kB / 0.6696 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.4992, allocations: 0.685 MB / 0.6702 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.4996, allocations: 159.4 kB / 0.6704 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.4997, allocations: 103.3 kB / 0.6705 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.4998, allocations: 1.312 kB / 0.6705 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.5, allocations: 174.3 kB / 0.6706 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.5, allocations: 1.469 kB / 0.6706 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006163/0.5007, allocations: 376.9 kB / 0.671 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.5007, allocations: 141 kB / 0.6711 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.5009, allocations: 279.9 kB / 0.6714 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.501, allocations: 32.08 kB / 0.6714 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.048e-05/0.501, allocations: 150.3 kB / 0.6716 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.5011, allocations: 42.17 kB / 0.6716 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.37e-05/0.5012, allocations: 46.17 kB / 0.6717 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.951e-05/0.5012, allocations: 337 kB / 0.672 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.5014, allocations: 91.23 kB / 0.6721 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.5015, allocations: 129 kB / 0.6722 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.5018, allocations: 245.2 kB / 0.6724 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.5018, allocations: 0 / 0.6724 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000437/0.5023, allocations: 330.6 kB / 0.6727 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/0.5023, allocations: 41.53 kB / 0.6728 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.5023, allocations: 1.25 kB / 0.6728 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.5023, allocations: 1.25 kB / 0.6728 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.5025, allocations: 30.23 kB / 0.6728 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.5025, allocations: 6.281 kB / 0.6728 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.5026, allocations: 21.42 kB / 0.6728 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.5026, allocations: 10.69 kB / 0.6729 GB, free: 0.5234 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.0001467/0.5028, allocations: 193 kB / 0.673 GB, free: 356 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.038e-05/0.5028, allocations: 25.66 kB / 0.6731 GB, free: 344 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/0.5029, allocations: 30.86 kB / 0.6731 GB, free: 324 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.5029, allocations: 5.062 kB / 0.6731 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.5029, allocations: 5.062 kB / 0.6731 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.5029, allocations: 0 / 0.6731 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.5031, allocations: 289.5 kB / 0.6734 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5032, allocations: 5.219 kB / 0.6734 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.5033, allocations: 19.3 kB / 0.6734 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.5033, allocations: 1.219 kB / 0.6734 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.5033, allocations: 7.469 kB / 0.6734 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.5033, allocations: 0 / 0.6734 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.5033, allocations: 5.062 kB / 0.6734 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007966/0.5041, allocations: 472.8 kB / 0.6739 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/0.5042, allocations: 93.83 kB / 0.674 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.5042, allocations: 12.39 kB / 0.674 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.78e-05/0.5043, allocations: 12.52 kB / 0.674 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.5044, allocations: 26.03 kB / 0.674 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.5045, allocations: 16.14 kB / 0.674 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001866/0.5046, allocations: 197.6 kB / 0.6742 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5047, allocations: 0 / 0.6742 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002792/0.5049, allocations: 60.09 kB / 0.6743 GB, free: 15.48 MB / 0.5137 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.001043/0.506, allocations: 1.032 MB / 0.6753 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004551/0.5065, allocations: 285.8 kB / 0.6755 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5065, allocations: 0 / 0.6755 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002312/0.5067, allocations: 189.6 kB / 0.6757 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.507, allocations: 46.47 kB / 0.6758 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.5104, allocations: 2.774 MB / 0.6785 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.5108, allocations: 0.7482 MB / 0.6792 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.947e-05/0.5109, allocations: 18.73 kB / 0.6792 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.511, allocations: 76.81 kB / 0.6793 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of SimCode: time 6.22e-07/0.511, allocations: 0 / 0.6793 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.5369, allocations: 5.383 MB / 0.6846 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.531, allocations: 12 kB / 0.6846 GB, free: 8.98 MB / 0.5137 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)