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.001208/0.001208, allocations: 108.8 kB / 16.27 MB, free: 6.004 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.001153/0.001153, allocations: 187.4 kB / 17.2 MB, free: 5.617 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.319/1.319, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7979/0.7979, allocations: 135.2 MB / 426.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 63.91 kB / 0.506 GB, free: 8.383 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3568, allocations: 80.92 MB / 0.5851 GB, free: 25.2 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002855/0.3596, allocations: 1.943 MB / 0.587 GB, free: 23.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3607, allocations: 0.7059 MB / 0.5876 GB, free: 23.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001768/0.3609, allocations: 2.406 kB / 0.5876 GB, free: 23.13 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001996/0.3611, allocations: 87.48 kB / 0.5877 GB, free: 23.08 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001323/0.3613, allocations: 94.48 kB / 0.5878 GB, free: 23.02 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005251/0.3618, allocations: 183.9 kB / 0.588 GB, free: 22.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.3621, allocations: 260.2 kB / 0.5882 GB, free: 22.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.3623, allocations: 68.72 kB / 0.5883 GB, free: 22.71 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.3624, allocations: 115.3 kB / 0.5884 GB, free: 22.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001697/0.3626, allocations: 151.5 kB / 0.5886 GB, free: 22.56 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.3627, allocations: 21.81 kB / 0.5886 GB, free: 22.56 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.3628, allocations: 97.38 kB / 0.5887 GB, free: 22.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.866e-05/0.3629, allocations: 58.11 kB / 0.5887 GB, free: 22.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.611e-05/0.363, allocations: 106.1 kB / 0.5888 GB, free: 22.39 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002939/0.3633, allocations: 300.4 kB / 0.5891 GB, free: 22.18 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3633, allocations: 0.7188 kB / 0.5891 GB, free: 22.18 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3633, allocations: 0 / 0.5891 GB, free: 22.18 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3633, allocations: 0.75 kB / 0.5891 GB, free: 22.18 MB / 446.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.0006832/0.364, allocations: 0.5817 MB / 0.5897 GB, free: 21.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.364, allocations: 12.08 kB / 0.5897 GB, free: 21.63 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.184e-05/0.3641, allocations: 34.38 kB / 0.5897 GB, free: 21.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.3644, allocations: 309.3 kB / 0.59 GB, free: 21.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.3645, allocations: 16.06 kB / 0.59 GB, free: 21.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.3645, allocations: 17.47 kB / 0.5901 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.3648, allocations: 227.1 kB / 0.5903 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.3648, allocations: 3.375 kB / 0.5903 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3648, allocations: 4 kB / 0.5903 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3648, allocations: 4 kB / 0.5903 GB, free: 21.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.365, allocations: 132.3 kB / 0.5904 GB, free: 20.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005668/0.3656, allocations: 0.684 MB / 0.5911 GB, free: 20.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.3659, allocations: 168.7 kB / 0.5912 GB, free: 20.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.366, allocations: 93.47 kB / 0.5913 GB, free: 19.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.3661, allocations: 4 kB / 0.5913 GB, free: 19.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.3663, allocations: 172.3 kB / 0.5915 GB, free: 19.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.3663, allocations: 0 / 0.5915 GB, free: 19.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005268/0.3669, allocations: 374.8 kB / 0.5919 GB, free: 19.37 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.428e-05/0.3669, allocations: 137.3 kB / 0.592 GB, free: 19.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.3671, allocations: 270.7 kB / 0.5922 GB, free: 18.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.3671, allocations: 38.8 kB / 0.5923 GB, free: 18.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.107e-05/0.3672, allocations: 160.2 kB / 0.5924 GB, free: 18.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.3672, allocations: 42.92 kB / 0.5925 GB, free: 18.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.3673, allocations: 41.7 kB / 0.5925 GB, free: 18.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.237e-05/0.3674, allocations: 342.8 kB / 0.5928 GB, free: 18.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.3675, allocations: 83.91 kB / 0.5929 GB, free: 18.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.3676, allocations: 131.5 kB / 0.5931 GB, free: 18.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.3679, allocations: 238.4 kB / 0.5933 GB, free: 17.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3679, allocations: 0 / 0.5933 GB, free: 17.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003692/0.3683, allocations: 339.4 kB / 0.5936 GB, free: 17.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.3683, allocations: 37.7 kB / 0.5936 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3683, allocations: 0 / 0.5936 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3683, allocations: 0 / 0.5936 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3684, allocations: 27.92 kB / 0.5937 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3685, allocations: 0.5312 kB / 0.5937 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.3686, allocations: 36.67 kB / 0.5937 GB, free: 17.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.3686, allocations: 4 kB / 0.5937 GB, free: 17.37 MB / 446.1 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.0001152/0.3687, allocations: 200.4 kB / 0.5939 GB, free: 17.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.3687, allocations: 27.66 kB / 0.5939 GB, free: 17.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/0.3688, allocations: 35.08 kB / 0.594 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3688, allocations: 96 / 0.594 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3688, allocations: 3.938 kB / 0.594 GB, free: 17.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3688, allocations: 4.688 kB / 0.594 GB, free: 17.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.369, allocations: 281.5 kB / 0.5942 GB, free: 16.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.369, allocations: 1.219 kB / 0.5942 GB, free: 16.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.036e-05/0.3691, allocations: 15.98 kB / 0.5942 GB, free: 16.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.3691, allocations: 4 kB / 0.5943 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.3691, allocations: 4.812 kB / 0.5943 GB, free: 16.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3691, allocations: 8 kB / 0.5943 GB, free: 16.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3691, allocations: 5.078 kB / 0.5943 GB, free: 16.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000532/0.3697, allocations: 475 kB / 0.5947 GB, free: 16.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.776e-05/0.3697, allocations: 96.86 kB / 0.5948 GB, free: 16.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.3698, allocations: 9.531 kB / 0.5948 GB, free: 16.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.472e-05/0.3699, allocations: 11.98 kB / 0.5948 GB, free: 16.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.3699, allocations: 27.95 kB / 0.5949 GB, free: 16.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.37, allocations: 14.25 kB / 0.5949 GB, free: 16.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001448/0.3701, allocations: 205.9 kB / 0.5951 GB, free: 15.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3701, allocations: 0 / 0.5951 GB, free: 15.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.3704, allocations: 52.12 kB / 0.5951 GB, free: 15.83 MB / 446.1 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.0001543/0.3705, allocations: 136 kB / 0.5952 GB, free: 15.69 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003672/0.3709, allocations: 292.8 kB / 0.5955 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.3709, allocations: 2.062 kB / 0.5955 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.3711, allocations: 187.3 kB / 0.5957 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.3714, allocations: 42.11 kB / 0.5957 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007821/0.3722, allocations: 0.5037 MB / 0.5962 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001435/0.3723, allocations: 0.7466 MB / 0.597 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.3724, allocations: 23.44 kB / 0.597 GB, free: 13.84 MB / 446.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3724, allocations: 0 / 0.597 GB, free: 13.84 MB / 446.1 MB Notification: Performance of Templates: time 0.004104/0.3765, allocations: 2.992 MB / 0.5999 GB, free: 10.89 MB / 446.1 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)