Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008489/0.008489, allocations: 97.27 kB / 15.73 MB, free: 6.043 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.001632/0.001632, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.899/1.899, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.002496/0.002496, allocations: 42.41 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1666, allocations: 46.64 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.02302/0.1897, allocations: 15.17 MB / 388.4 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.2058, allocations: 5.669 MB / 394 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005372/0.2112, allocations: 75.62 kB / 394.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004806/0.2161, allocations: 0.9664 MB / 395.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004472/0.2206, allocations: 0.6276 MB / 395.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003581/0.2242, allocations: 0.7451 MB / 396.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006607/0.2309, allocations: 2.745 MB / 399.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003923/0.2348, allocations: 1.28 MB / 400.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.2383, allocations: 1.039 MB / 401.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002731/0.2411, allocations: 1.073 MB / 402.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00117/0.2422, allocations: 260 kB / 402.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.2435, allocations: 264 kB / 403.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000973/0.2445, allocations: 0.5255 MB / 403.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002802/0.2473, allocations: 1.158 MB / 404.8 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005949/0.2533, allocations: 3.183 MB / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.423e-06/0.2533, allocations: 0 / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2533, allocations: 0 / 408 MB, free: 14.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001716/0.2535, allocations: 4 kB / 408 MB, free: 14.34 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.005867/0.2594, allocations: 2.522 MB / 410.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.2595, allocations: 11.89 kB / 410.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000443/0.2599, allocations: 263.3 kB / 410.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/0.2623, allocations: 1.274 MB / 412 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.2626, allocations: 257.3 kB / 412.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000268/0.2629, allocations: 192.1 kB / 412.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003705/0.2666, allocations: 1.926 MB / 414.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/0.2667, allocations: 3.953 kB / 414.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001551/0.2668, allocations: 80 kB / 414.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.103e-05/0.2669, allocations: 44 kB / 414.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.2703, allocations: 1.579 MB / 416.1 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/0.2819, allocations: 7.179 MB / 423.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/0.2849, allocations: 1.21 MB / 424.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.2859, allocations: 460.3 kB / 424.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.638e-05/0.286, allocations: 16.84 kB / 425 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.2861, allocations: 43.56 kB / 425 MB, free: 12.69 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 4.028e-06/0.2861, allocations: 3.938 kB / 425 MB, free: 12.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.03302/0.3191, allocations: 7.903 MB / 432.9 MB, free: 4.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/0.3193, allocations: 64.41 kB / 433 MB, free: 4.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002348/0.3216, allocations: 1.248 MB / 434.2 MB, free: 3.328 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.3218, allocations: 45.7 kB / 434.3 MB, free: 3.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.3228, allocations: 1.012 MB / 435.3 MB, free: 2.254 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000569/0.3234, allocations: 408.5 kB / 435.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005602/0.3239, allocations: 275.4 kB / 435.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3241, allocations: 305.1 kB / 436.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002022/0.3261, allocations: 0.7309 MB / 437 MB, free: 0.543 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/0.3287, allocations: 1.195 MB / 438.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004378/0.3331, allocations: 1.805 MB / 440 MB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.3331, allocations: 8 kB / 440 MB, free: 13.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005564/0.3387, allocations: 2.15 MB / 442.1 MB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.3387, allocations: 12 kB / 442.1 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/0.3388, allocations: 12 kB / 442.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002324/0.339, allocations: 41.34 kB / 442.2 MB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001773/0.3408, allocations: 415.4 kB / 442.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/0.3421, allocations: 1.375 MB / 444 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/0.3438, allocations: 139.9 kB / 444.1 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002182/0.344, allocations: 67.98 kB / 444.2 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002553/0.3466, allocations: 0.9879 MB / 445.2 MB, free: 7.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002272/0.3489, allocations: 1.154 MB / 446.3 MB, free: 6.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003867/0.3528, allocations: 1.729 MB / 448 MB, free: 4.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.181e-05/0.3528, allocations: 4 kB / 448 MB, free: 4.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.004972/0.3578, allocations: 2.072 MB / 450.1 MB, free: 2.363 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.3578, allocations: 12 kB / 450.1 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.3578, allocations: 20.03 kB / 450.2 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.358, allocations: 40.84 kB / 450.2 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001708/0.3597, allocations: 399.3 kB / 450.6 MB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.3608, allocations: 1.378 MB / 452 MB, free: 388 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.3624, allocations: 124 kB / 452.1 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.3626, allocations: 64 kB / 452.1 MB, free: 200 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.3269/0.6894, allocations: 281.7 kB / 452.4 MB, free: 70.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/0.6903, allocations: 164.9 kB / 452.6 MB, free: 70.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006674/0.697, allocations: 1.58 MB / 454.2 MB, free: 70.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-05/0.697, allocations: 11.2 kB / 454.2 MB, free: 70.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.697, allocations: 4.094 kB / 454.2 MB, free: 70.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-05/0.6971, allocations: 5.625 kB / 454.2 MB, free: 70.25 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.7082, allocations: 3.763 MB / 457.9 MB, free: 69.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.753e-05/0.7083, allocations: 10.66 kB / 458 MB, free: 69.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00142/0.7097, allocations: 262.4 kB / 458.2 MB, free: 69.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001526/0.7099, allocations: 33.05 kB / 458.2 MB, free: 69.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.7101, allocations: 37.67 kB / 458.3 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.7111, allocations: 1.372 MB / 459.7 MB, free: 67.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.9e-05/0.7112, allocations: 14.28 kB / 459.7 MB, free: 67.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/0.7175, allocations: 2.236 MB / 461.9 MB, free: 66.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/0.7188, allocations: 312.6 kB / 462.2 MB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006406/0.7194, allocations: 35.94 kB / 462.2 MB, free: 66.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.7211, allocations: 101.9 kB / 462.3 MB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004002/0.7215, allocations: 131.7 kB / 462.5 MB, free: 66.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.7216, allocations: 36.16 kB / 462.5 MB, free: 66.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002889/0.7245, allocations: 0.8222 MB / 463.3 MB, free: 65.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7245, allocations: 0 / 463.3 MB, free: 65.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004227/0.7288, allocations: 0.6085 MB / 463.9 MB, free: 65.91 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.0003918/0.7292, allocations: 150.2 kB / 464.1 MB, free: 65.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007476/0.7367, allocations: 2.825 MB / 466.9 MB, free: 64.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.199e-05/0.7367, allocations: 1.594 kB / 466.9 MB, free: 64.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.7386, allocations: 0.7036 MB / 467.6 MB, free: 64.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/0.7411, allocations: 354.9 kB / 468 MB, free: 64.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007333/0.7485, allocations: 3.616 MB / 471.6 MB, free: 62.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.7497, allocations: 1.351 MB / 472.9 MB, free: 61.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001596/0.7513, allocations: 299.4 kB / 473.2 MB, free: 61.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004272/0.7517, allocations: 104.7 kB / 473.3 MB, free: 61.37 MB / 382.1 MB Notification: Performance of SimCode: time 2.254e-06/0.7518, allocations: 0 / 473.3 MB, free: 61.37 MB / 382.1 MB Notification: Performance of Templates: time 0.02681/0.7786, allocations: 18.33 MB / 491.7 MB, free: 44.78 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)