Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.009445/0.009445, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001453/0.001454, allocations: 201.4 kB / 16.68 MB, free: 5.969 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.894/1.894, allocations: 205.1 MB / 222.6 MB, free: 4.551 MB / 174.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.001289/0.001289, allocations: 45.95 kB / 326.6 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1472, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01911/0.1664, allocations: 15.18 MB / 388.4 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01486/0.1813, allocations: 5.665 MB / 394 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005322/0.1867, allocations: 75.62 kB / 394.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004963/0.1918, allocations: 1.013 MB / 395.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004018/0.1959, allocations: 0.6706 MB / 395.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.1982, allocations: 0.7374 MB / 396.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004964/0.2031, allocations: 2.745 MB / 399.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00218/0.2053, allocations: 1.288 MB / 400.6 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002362/0.2077, allocations: 1.078 MB / 401.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001474/0.2092, allocations: 1.069 MB / 402.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003243/0.2096, allocations: 260 kB / 403 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003393/0.2099, allocations: 267.9 kB / 403.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004698/0.2104, allocations: 0.5294 MB / 403.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.2116, allocations: 1.154 MB / 404.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003823/0.2154, allocations: 3.175 MB / 408.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.2154, allocations: 3.984 kB / 408.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.2154, allocations: 0 / 408.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.335e-05/0.2155, allocations: 4 kB / 408.1 MB, free: 14.21 MB / 350.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.005375/0.2209, allocations: 2.526 MB / 410.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.515e-05/0.221, allocations: 15.89 kB / 410.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004936/0.2215, allocations: 263.3 kB / 410.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002581/0.2241, allocations: 1.27 MB / 412.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000321/0.2244, allocations: 253.4 kB / 412.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.2247, allocations: 196.1 kB / 412.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/0.2284, allocations: 1.919 MB / 414.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.543e-05/0.2285, allocations: 11.95 kB / 414.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.2287, allocations: 79.98 kB / 414.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.2287, allocations: 44 kB / 414.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004017/0.2327, allocations: 1.571 MB / 416.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01219/0.2449, allocations: 7.183 MB / 423.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003011/0.248, allocations: 1.206 MB / 424.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001101/0.2491, allocations: 460.3 kB / 425.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.2493, allocations: 16.97 kB / 425.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.2493, allocations: 43.5 kB / 425.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 4.509e-06/0.2493, allocations: 3.938 kB / 425.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.03325/0.2826, allocations: 7.903 MB / 433 MB, free: 4.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.706e-05/0.2828, allocations: 72.33 kB / 433.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002213/0.285, allocations: 1.244 MB / 434.3 MB, free: 3.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.2851, allocations: 41.7 kB / 434.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009012/0.286, allocations: 1.02 MB / 435.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004199/0.2864, allocations: 404.5 kB / 435.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/0.287, allocations: 275.5 kB / 436.1 MB, free: 1.457 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2871, allocations: 305.1 kB / 436.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001986/0.2891, allocations: 0.7309 MB / 437.1 MB, free: 432 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002367/0.2915, allocations: 1.191 MB / 438.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004041/0.2956, allocations: 1.812 MB / 440.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.2956, allocations: 8 kB / 440.1 MB, free: 13 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005387/0.301, allocations: 2.138 MB / 442.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.299e-05/0.301, allocations: 12 kB / 442.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.399e-05/0.3011, allocations: 23.94 kB / 442.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002613/0.3014, allocations: 41.34 kB / 442.3 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/0.3032, allocations: 415.4 kB / 442.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001193/0.3044, allocations: 1.382 MB / 444.1 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.3061, allocations: 139.9 kB / 444.2 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.3063, allocations: 68 kB / 444.3 MB, free: 8.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002571/0.3088, allocations: 0.9802 MB / 445.3 MB, free: 7.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002064/0.3109, allocations: 1.154 MB / 446.4 MB, free: 6.281 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003578/0.3145, allocations: 1.732 MB / 448.2 MB, free: 4.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.077e-06/0.3145, allocations: 8 kB / 448.2 MB, free: 4.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004721/0.3193, allocations: 2.068 MB / 450.3 MB, free: 2.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.3193, allocations: 12.5 kB / 450.3 MB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.3193, allocations: 20 kB / 450.3 MB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001197/0.3195, allocations: 36.86 kB / 450.3 MB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.3211, allocations: 403.3 kB / 450.7 MB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009646/0.3221, allocations: 1.371 MB / 452.1 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.3236, allocations: 124 kB / 452.2 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3238, allocations: 68 kB / 452.3 MB, free: 72 kB / 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.2594/0.5832, allocations: 274.6 kB / 452.5 MB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006517/0.5838, allocations: 165.5 kB / 452.7 MB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005743/0.5896, allocations: 1.585 MB / 454.3 MB, free: 70.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.403e-05/0.5896, allocations: 11.72 kB / 454.3 MB, free: 70.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.5896, allocations: 1.266 kB / 454.3 MB, free: 70.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.5897, allocations: 6.203 kB / 454.3 MB, free: 70.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008628/0.5983, allocations: 3.767 MB / 458.1 MB, free: 68.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.5984, allocations: 8.875 kB / 458.1 MB, free: 68.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.5996, allocations: 258.8 kB / 458.3 MB, free: 68.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001148/0.5998, allocations: 29.89 kB / 458.4 MB, free: 68.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.027e-05/0.5999, allocations: 38.52 kB / 458.4 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007757/0.6006, allocations: 1.374 MB / 459.8 MB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-05/0.6007, allocations: 14.53 kB / 459.8 MB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005089/0.6058, allocations: 2.236 MB / 462 MB, free: 66.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006799/0.6065, allocations: 309.7 kB / 462.3 MB, free: 66.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.6066, allocations: 36.22 kB / 462.4 MB, free: 66.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009541/0.6076, allocations: 105.5 kB / 462.5 MB, free: 66.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/0.6079, allocations: 132.8 kB / 462.6 MB, free: 66.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.749e-05/0.6079, allocations: 41 kB / 462.6 MB, free: 66.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001259/0.6092, allocations: 0.8094 MB / 463.4 MB, free: 65.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6092, allocations: 0 / 463.4 MB, free: 65.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00229/0.6115, allocations: 0.6089 MB / 464.1 MB, free: 65.82 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.0002217/0.6118, allocations: 158.7 kB / 464.2 MB, free: 65.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006948/0.6187, allocations: 2.822 MB / 467 MB, free: 64.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.767e-05/0.6188, allocations: 1.938 kB / 467 MB, free: 64.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.6206, allocations: 0.7035 MB / 467.7 MB, free: 64.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.6228, allocations: 357 kB / 468.1 MB, free: 64.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006229/0.629, allocations: 3.607 MB / 471.7 MB, free: 62.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007795/0.6298, allocations: 1.357 MB / 473 MB, free: 61.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001244/0.6311, allocations: 298 kB / 473.3 MB, free: 61.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003529/0.6315, allocations: 101.2 kB / 473.4 MB, free: 61.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.6315, allocations: 3.938 kB / 473.4 MB, free: 61.25 MB / 382.1 MB Notification: Performance of Templates: time 0.02961/0.6611, allocations: 18.33 MB / 491.8 MB, free: 44.69 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)