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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009307/0.009307, allocations: 102 kB / 15.73 MB, free: 6.477 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.001836/0.001836, allocations: 195.6 kB / 16.67 MB, free: 6.391 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.513/1.513, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.017/1.017, allocations: 135.1 MB / 425.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.91 kB / 0.5856 GB, free: 3.367 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4966/0.4978, allocations: 80.9 MB / 0.6646 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00301/0.5009, allocations: 1.954 MB / 0.6665 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.5021, allocations: 0.7029 MB / 0.6672 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.5022, allocations: 6.312 kB / 0.6672 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.5025, allocations: 83.06 kB / 0.6673 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.5026, allocations: 96.06 kB / 0.6674 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.5032, allocations: 183.3 kB / 0.6676 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.5036, allocations: 266.5 kB / 0.6678 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.5038, allocations: 74.61 kB / 0.6679 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.5039, allocations: 118.8 kB / 0.668 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.5042, allocations: 147.7 kB / 0.6681 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.744e-05/0.5042, allocations: 20.41 kB / 0.6682 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.5044, allocations: 93.08 kB / 0.6683 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.323e-05/0.5045, allocations: 58.48 kB / 0.6683 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.5046, allocations: 114 kB / 0.6684 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.505, allocations: 310.3 kB / 0.6687 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.505, allocations: 0 / 0.6687 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.684e-06/0.505, allocations: 3.938 kB / 0.6687 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.364e-05/0.505, allocations: 0 / 0.6687 GB, free: 4.773 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.0008337/0.5059, allocations: 0.5801 MB / 0.6693 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.5059, allocations: 9.906 kB / 0.6693 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/0.506, allocations: 27 kB / 0.6693 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004604/0.5065, allocations: 306.6 kB / 0.6696 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.5065, allocations: 14.22 kB / 0.6696 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/0.5066, allocations: 14.5 kB / 0.6696 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/0.507, allocations: 221.3 kB / 0.6698 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.507, allocations: 3.938 kB / 0.6699 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.384e-05/0.507, allocations: 10.58 kB / 0.6699 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.507, allocations: 6.812 kB / 0.6699 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.5073, allocations: 124.3 kB / 0.67 GB, free: 3.695 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007704/0.5081, allocations: 0.6849 MB / 0.6707 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.5084, allocations: 168.3 kB / 0.6708 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.5086, allocations: 91.14 kB / 0.6709 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.5086, allocations: 1.25 kB / 0.6709 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.5089, allocations: 178.4 kB / 0.6711 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.5089, allocations: 0 / 0.6711 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007277/0.5096, allocations: 381.3 kB / 0.6714 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.5097, allocations: 137.2 kB / 0.6716 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.51, allocations: 275.9 kB / 0.6718 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.51, allocations: 32.02 kB / 0.6719 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.672e-05/0.5101, allocations: 166 kB / 0.672 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.5101, allocations: 37.89 kB / 0.6721 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/0.5102, allocations: 37.91 kB / 0.6721 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.401e-05/0.5103, allocations: 350.5 kB / 0.6724 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.5104, allocations: 79.22 kB / 0.6725 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.5106, allocations: 136.4 kB / 0.6726 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003063/0.5109, allocations: 239.7 kB / 0.6729 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5109, allocations: 0 / 0.6729 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004992/0.5114, allocations: 338.2 kB / 0.6732 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.5115, allocations: 37.39 kB / 0.6732 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.5115, allocations: 5.188 kB / 0.6732 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.5115, allocations: 6.188 kB / 0.6732 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.5116, allocations: 21.3 kB / 0.6733 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.5117, allocations: 2.062 kB / 0.6733 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.5118, allocations: 30.48 kB / 0.6733 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.5118, allocations: 5.312 kB / 0.6733 GB, free: 1.16 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.0001617/0.512, allocations: 191.7 kB / 0.6735 GB, free: 0.9883 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.512, allocations: 28.94 kB / 0.6735 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.584e-05/0.5121, allocations: 30.92 kB / 0.6735 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.5121, allocations: 1.094 kB / 0.6735 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5121, allocations: 1.125 kB / 0.6735 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.5121, allocations: 3.938 kB / 0.6735 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.5124, allocations: 298 kB / 0.6738 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5124, allocations: 0 / 0.6738 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.5125, allocations: 15.83 kB / 0.6738 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.5125, allocations: 1.188 kB / 0.6738 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.5125, allocations: 7.812 kB / 0.6738 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.5125, allocations: 11.88 kB / 0.6739 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5125, allocations: 0 / 0.6739 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000681/0.5132, allocations: 469.5 kB / 0.6743 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.5133, allocations: 94.42 kB / 0.6744 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.595e-05/0.5133, allocations: 8.594 kB / 0.6744 GB, free: 288 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.5134, allocations: 11.77 kB / 0.6744 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.928e-05/0.5135, allocations: 37.36 kB / 0.6744 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.5136, allocations: 4.969 kB / 0.6745 GB, free: 256 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001656/0.5137, allocations: 202.2 kB / 0.6746 GB, free: 128 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5137, allocations: 0 / 0.6746 GB, free: 128 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002758/0.514, allocations: 59.39 kB / 0.6747 GB, free: 116 kB / 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.0001805/0.5142, allocations: 132.4 kB / 0.6748 GB, free: 12 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005503/0.5148, allocations: 296.1 kB / 0.6751 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5148, allocations: 0 / 0.6751 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.515, allocations: 181.2 kB / 0.6753 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.5153, allocations: 30.42 kB / 0.6753 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001018/0.5164, allocations: 488.3 kB / 0.6758 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.5167, allocations: 0.7527 MB / 0.6765 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.976e-05/0.5168, allocations: 22.27 kB / 0.6765 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.5169, allocations: 17.47 kB / 0.6765 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.5169, allocations: 4 kB / 0.6766 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.006609/0.5235, allocations: 2.834 MB / 0.6793 GB, free: 13.26 MB / 0.5137 GB 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)