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.001252/0.001252, allocations: 112.8 kB / 17.07 MB, free: 5.973 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.001301/0.001301, allocations: 200 kB / 18 MB, free: 5.059 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.735/1.735, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.002178/0.002178, allocations: 51.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1698, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.3514/0.5213, allocations: 15.19 MB / 389.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.5357, allocations: 5.67 MB / 395.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006161/0.5419, allocations: 75.97 kB / 395.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004891/0.547, allocations: 1.008 MB / 396.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.5516, allocations: 0.6648 MB / 397.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.5542, allocations: 0.748 MB / 397.8 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006218/0.5604, allocations: 2.745 MB / 400.6 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.5631, allocations: 1.289 MB / 401.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002858/0.566, allocations: 1.074 MB / 403 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001946/0.568, allocations: 1.061 MB / 404 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003923/0.5684, allocations: 265.5 kB / 404.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005855/0.569, allocations: 262.2 kB / 404.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006558/0.5696, allocations: 0.5279 MB / 405.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00181/0.5714, allocations: 1.161 MB / 406.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005034/0.5765, allocations: 3.165 MB / 409.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.5765, allocations: 1.125 kB / 409.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.5765, allocations: 0 / 409.4 MB, free: 8.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.942e-05/0.5766, allocations: 0 / 409.4 MB, free: 8.27 MB / 334.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.006317/0.583, allocations: 2.467 MB / 411.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.822e-05/0.5831, allocations: 17.86 kB / 411.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006063/0.5837, allocations: 253.7 kB / 412.1 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0027/0.5864, allocations: 1.252 MB / 413.4 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004361/0.5868, allocations: 254.6 kB / 413.6 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000376/0.5872, allocations: 200.9 kB / 413.8 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004472/0.5917, allocations: 1.917 MB / 415.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.991e-05/0.5918, allocations: 6 kB / 415.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/0.592, allocations: 77.62 kB / 415.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.315e-05/0.592, allocations: 53.98 kB / 415.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003863/0.5959, allocations: 1.574 MB / 417.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01257/0.6085, allocations: 7.156 MB / 424.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.6113, allocations: 1.214 MB / 425.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009957/0.6123, allocations: 460.3 kB / 426.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-05/0.6124, allocations: 12.94 kB / 426.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.6125, allocations: 47.55 kB / 426.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 2.544e-06/0.6125, allocations: 0 / 426.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.03106/0.6435, allocations: 7.868 MB / 434.2 MB, free: 3.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.6437, allocations: 64.41 kB / 434.3 MB, free: 3.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/0.6462, allocations: 1.244 MB / 435.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.6463, allocations: 49.7 kB / 435.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008117/0.6471, allocations: 0.9939 MB / 436.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.6475, allocations: 390.4 kB / 436.9 MB, free: 424 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005096/0.648, allocations: 263.4 kB / 437.2 MB, free: 156 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.6482, allocations: 305.1 kB / 437.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/0.6501, allocations: 0.7396 MB / 438.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002248/0.6523, allocations: 1.187 MB / 439.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003709/0.6561, allocations: 1.805 MB / 441.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.6561, allocations: 4 kB / 441.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005373/0.6615, allocations: 2.145 MB / 443.4 MB, free: 9.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.6615, allocations: 12 kB / 443.4 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/0.6616, allocations: 16 kB / 443.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002017/0.6618, allocations: 40.84 kB / 443.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001779/0.6636, allocations: 415.7 kB / 443.8 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.6648, allocations: 1.375 MB / 445.2 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.6665, allocations: 147.8 kB / 445.3 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.6667, allocations: 64 kB / 445.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002626/0.6694, allocations: 0.9763 MB / 446.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001968/0.6713, allocations: 1.158 MB / 447.5 MB, free: 4.988 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003336/0.6747, allocations: 1.74 MB / 449.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-05/0.6747, allocations: 4 kB / 449.3 MB, free: 3.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004617/0.6793, allocations: 2.059 MB / 451.3 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.6794, allocations: 12 kB / 451.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.6794, allocations: 16 kB / 451.4 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001226/0.6795, allocations: 41.36 kB / 451.4 MB, free: 0.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001706/0.6813, allocations: 399.4 kB / 451.8 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.6824, allocations: 1.386 MB / 453.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.684, allocations: 123.9 kB / 453.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.6842, allocations: 64 kB / 453.4 MB, free: 14.77 MB / 382.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.000464/0.6847, allocations: 291.6 kB / 453.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/0.6851, allocations: 154 kB / 453.8 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00387/0.6889, allocations: 1.585 MB / 455.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/0.689, allocations: 12 kB / 455.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.689, allocations: 3.938 kB / 455.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.689, allocations: 3.984 kB / 455.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00812/0.6971, allocations: 3.75 MB / 459.2 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.342e-05/0.6972, allocations: 8 kB / 459.2 MB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.6983, allocations: 259.7 kB / 459.4 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001155/0.6984, allocations: 36.84 kB / 459.5 MB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.666e-05/0.6985, allocations: 35.94 kB / 459.5 MB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009549/0.6995, allocations: 1.371 MB / 460.9 MB, free: 6.879 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.6995, allocations: 11.94 kB / 460.9 MB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.7042, allocations: 2.227 MB / 463.1 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008577/0.7051, allocations: 307 kB / 463.4 MB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003582/0.7055, allocations: 32 kB / 463.4 MB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.7067, allocations: 107.9 kB / 463.5 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.7069, allocations: 124.2 kB / 463.7 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.221e-05/0.707, allocations: 36 kB / 463.7 MB, free: 3.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001471/0.7085, allocations: 0.8181 MB / 464.5 MB, free: 3.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7085, allocations: 0 / 464.5 MB, free: 3.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002635/0.7111, allocations: 0.6094 MB / 465.1 MB, free: 2.43 MB / 382.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.0002683/0.7114, allocations: 154.9 kB / 465.3 MB, free: 2.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006199/0.7176, allocations: 2.82 MB / 468.1 MB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.7176, allocations: 7.938 kB / 468.1 MB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001561/0.7192, allocations: 0.7084 MB / 468.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.7211, allocations: 369 kB / 469.2 MB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006692/0.7278, allocations: 3.534 MB / 472.7 MB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.729, allocations: 1.345 MB / 474.1 MB, free: 9.285 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001456/0.7305, allocations: 296.4 kB / 474.3 MB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.731, allocations: 111.5 kB / 474.5 MB, free: 8.883 MB / 398.1 MB Notification: Performance of SimCode: time 1.212e-06/0.731, allocations: 3.938 kB / 474.5 MB, free: 8.879 MB / 398.1 MB Notification: Performance of Templates: time 0.03789/0.7689, allocations: 18.34 MB / 492.8 MB, free: 6.508 MB / 414.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)