Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001305/0.001305, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005747/0.000575, allocations: 11.98 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.129, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01674/0.1458, allocations: 14.29 MB / 342.6 MB, free: 5.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01521/0.1611, allocations: 5.498 MB / 348.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004312/0.1654, allocations: 71.62 kB / 348.2 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003504/0.1689, allocations: 0.8429 MB / 349 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003184/0.1722, allocations: 0.5158 MB / 349.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.174, allocations: 0.6557 MB / 350.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004285/0.1783, allocations: 2.574 MB / 352.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002056/0.1804, allocations: 1.129 MB / 353.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002061/0.1825, allocations: 0.8278 MB / 354.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.1837, allocations: 0.8819 MB / 355.6 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.1839, allocations: 96 kB / 355.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002317/0.1842, allocations: 100 kB / 355.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003297/0.1845, allocations: 346.2 kB / 356.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.1856, allocations: 0.9842 MB / 357.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00273/0.1883, allocations: 2.903 MB / 360 MB, free: 3.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.1883, allocations: 3.938 kB / 360 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1883, allocations: 4 kB / 360 MB, free: 3.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.539e-05/0.1884, allocations: 0 / 360 MB, free: 3.863 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004307/0.1927, allocations: 2.116 MB / 362.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.1928, allocations: 8.031 kB / 362.2 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004114/0.1932, allocations: 253.9 kB / 362.4 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002108/0.1953, allocations: 1.222 MB / 363.6 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/0.1957, allocations: 273.3 kB / 363.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002981/0.196, allocations: 192 kB / 364.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004297/0.2003, allocations: 1.95 MB / 366 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.308e-05/0.2004, allocations: 4 kB / 366 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001614/0.2005, allocations: 76 kB / 366.1 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.546e-05/0.2006, allocations: 48 kB / 366.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003748/0.2043, allocations: 1.633 MB / 367.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/0.2159, allocations: 7.293 MB / 375.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.2188, allocations: 1.257 MB / 376.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.2199, allocations: 484.3 kB / 376.8 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.143e-05/0.22, allocations: 16.92 kB / 376.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.22, allocations: 47.56 kB / 376.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=83): time 4.308e-06/0.22, allocations: 0 / 376.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=110): time 0.3473/0.5673, allocations: 8.82 MB / 385.7 MB, free: 51.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.5675, allocations: 62.59 kB / 385.8 MB, free: 51.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.5717, allocations: 1.238 MB / 387 MB, free: 50.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002104/0.5719, allocations: 46.3 kB / 387 MB, free: 50.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.5731, allocations: 0.9955 MB / 388 MB, free: 50.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005917/0.5737, allocations: 398.7 kB / 388.4 MB, free: 49.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004229/0.5741, allocations: 126.6 kB / 388.5 MB, free: 49.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.351e-05/0.5742, allocations: 304.8 kB / 388.8 MB, free: 49.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003137/0.5774, allocations: 0.7722 MB / 389.6 MB, free: 49.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/0.5805, allocations: 1.242 MB / 390.9 MB, free: 48.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004568/0.5851, allocations: 1.904 MB / 392.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/0.5852, allocations: 8.25 kB / 392.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.006224/0.5914, allocations: 2.248 MB / 395 MB, free: 46.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003199/0.5917, allocations: 0.5219 MB / 395.5 MB, free: 45.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.5918, allocations: 11.78 kB / 395.5 MB, free: 45.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001813/0.5919, allocations: 40 kB / 395.6 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.5936, allocations: 451.8 kB / 396 MB, free: 45.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.5947, allocations: 1.275 MB / 397.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/0.5967, allocations: 173 kB / 397.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.5968, allocations: 65.09 kB / 397.5 MB, free: 44.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/0.5968, allocations: 3.969 kB / 397.5 MB, free: 44.1 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00407/0.6009, allocations: 1.974 MB / 399.5 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.827e-05/0.601, allocations: 19.78 kB / 399.5 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001036/0.6011, allocations: 37.25 kB / 399.6 MB, free: 43.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.6026, allocations: 414.9 kB / 400 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006981/0.6034, allocations: 1.291 MB / 401.3 MB, free: 41.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.605, allocations: 141.5 kB / 401.4 MB, free: 41.69 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.6051, allocations: 62.47 kB / 401.5 MB, free: 41.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001092/0.6062, allocations: 490 kB / 401.9 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004472/0.6067, allocations: 157.7 kB / 402.1 MB, free: 41.17 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003921/0.6106, allocations: 1.687 MB / 403.8 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.6106, allocations: 12 kB / 403.8 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.321e-06/0.6106, allocations: 0.875 kB / 403.8 MB, free: 39.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.6107, allocations: 7.969 kB / 403.8 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007752/0.6184, allocations: 3.911 MB / 407.7 MB, free: 35.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.358e-05/0.6185, allocations: 12 kB / 407.7 MB, free: 35.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.6196, allocations: 280.1 kB / 408 MB, free: 35.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.6197, allocations: 40.03 kB / 408 MB, free: 35.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.109e-05/0.6198, allocations: 32 kB / 408.1 MB, free: 34.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006808/0.6205, allocations: 1.284 MB / 409.4 MB, free: 33.56 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.6205, allocations: 19.92 kB / 409.4 MB, free: 33.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004355/0.6249, allocations: 2.373 MB / 411.7 MB, free: 31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006835/0.6256, allocations: 311 kB / 412 MB, free: 30.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003525/0.6259, allocations: 35.98 kB / 412.1 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.6271, allocations: 137.9 kB / 412.2 MB, free: 30.51 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.6274, allocations: 124.2 kB / 412.3 MB, free: 30.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.249e-05/0.6275, allocations: 40 kB / 412.4 MB, free: 30.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001347/0.6288, allocations: 0.8142 MB / 413.2 MB, free: 29.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6288, allocations: 0 / 413.2 MB, free: 29.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002762/0.6316, allocations: 0.6094 MB / 413.8 MB, free: 28.93 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002389/0.6318, allocations: 154.8 kB / 414 MB, free: 28.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006057/0.6379, allocations: 2.945 MB / 416.9 MB, free: 25.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.6379, allocations: 1.938 kB / 416.9 MB, free: 25.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.6395, allocations: 0.7575 MB / 417.7 MB, free: 25.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/0.6434, allocations: 348.2 kB / 418 MB, free: 24.7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006972/0.6504, allocations: 4.53 MB / 422.5 MB, free: 20.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.6516, allocations: 1.342 MB / 423.9 MB, free: 18.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.6534, allocations: 288.5 kB / 424.2 MB, free: 18.36 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.6538, allocations: 107.4 kB / 424.3 MB, free: 18.25 MB / 318.1 MB Notification: Performance of SimCode: time 1.793e-06/0.6539, allocations: 0 / 424.3 MB, free: 18.25 MB / 318.1 MB Notification: Performance of Templates: time 0.03199/0.6859, allocations: 16.86 MB / 441.1 MB, free: 1.398 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)