Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 112.8 kB / 17.06 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.001449/0.001449, allocations: 196 kB / 18 MB, free: 5.051 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.82/1.82, 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.001463/0.001463, allocations: 43.94 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1629, allocations: 46.62 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.3757/0.5387, allocations: 8.132 MB / 382.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0081/0.5468, allocations: 2.744 MB / 385.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.5493, allocations: 32.19 kB / 385.4 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.552, allocations: 0.528 MB / 385.9 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002547/0.5546, allocations: 436.2 kB / 386.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.5558, allocations: 358.6 kB / 386.7 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002857/0.5586, allocations: 1.513 MB / 388.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.5598, allocations: 0.6093 MB / 388.8 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001294/0.5611, allocations: 0.5534 MB / 389.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008352/0.5619, allocations: 0.6008 MB / 390 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002427/0.5622, allocations: 138.6 kB / 390.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005526/0.5628, allocations: 180.8 kB / 390.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002816/0.563, allocations: 289.5 kB / 390.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007426/0.5638, allocations: 0.6704 MB / 391.3 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003076/0.5669, allocations: 1.726 MB / 393 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.5669, allocations: 0 / 393 MB, free: 3.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5669, allocations: 0 / 393 MB, free: 3.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.136e-05/0.567, allocations: 5.25 kB / 393 MB, free: 3.883 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003263/0.5702, allocations: 1.548 MB / 394.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.653e-05/0.5703, allocations: 11.05 kB / 394.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000886/0.5712, allocations: 196.3 kB / 394.7 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/0.5729, allocations: 0.8036 MB / 395.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.177e-05/0.573, allocations: 77.16 kB / 395.6 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001762/0.5732, allocations: 101.7 kB / 395.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.5754, allocations: 0.9518 MB / 396.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.087e-05/0.5754, allocations: 15.67 kB / 396.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.048e-05/0.5755, allocations: 40.28 kB / 396.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.151e-05/0.5756, allocations: 24.56 kB / 396.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.5773, allocations: 0.6348 MB / 397.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007876/0.5852, allocations: 4.105 MB / 401.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.5865, allocations: 419 kB / 401.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003753/0.5868, allocations: 164.6 kB / 402.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.647e-05/0.5869, allocations: 4.125 kB / 402.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/0.587, allocations: 34.44 kB / 402.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 3.667e-06/0.587, allocations: 0 / 402.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003614/0.5906, allocations: 1.349 MB / 403.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001799/0.5908, allocations: 106.9 kB / 403.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/0.5924, allocations: 0.9057 MB / 404.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/0.5925, allocations: 33.64 kB / 404.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007513/0.5933, allocations: 0.603 MB / 405.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.5934, allocations: 158.3 kB / 405.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00043/0.5939, allocations: 138.6 kB / 405.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.5941, allocations: 332.8 kB / 405.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004176/0.5945, allocations: 180.2 kB / 405.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.5953, allocations: 489.1 kB / 406.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.5966, allocations: 0.6868 MB / 407 MB, free: 10.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.5966, allocations: 3.094 kB / 407 MB, free: 10.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001749/0.5983, allocations: 0.7536 MB / 407.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.5984, allocations: 10.16 kB / 407.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.5984, allocations: 14.41 kB / 407.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002518/0.5987, allocations: 36.52 kB / 407.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007174/0.5994, allocations: 170.1 kB / 408 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.6009, allocations: 1.397 MB / 409.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007951/0.6017, allocations: 38.69 kB / 409.5 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.264e-05/0.6017, allocations: 33.91 kB / 409.5 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000826/0.6026, allocations: 355.9 kB / 409.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006643/0.6033, allocations: 478.8 kB / 410.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00106/0.6043, allocations: 0.6667 MB / 411 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.266e-06/0.6043, allocations: 3.719 kB / 411 MB, free: 7.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001557/0.6059, allocations: 0.7181 MB / 411.7 MB, free: 6.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.6059, allocations: 12.8 kB / 411.7 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.606, allocations: 11.19 kB / 411.7 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001153/0.6061, allocations: 35.58 kB / 411.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005896/0.6067, allocations: 171.7 kB / 411.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.6085, allocations: 1.389 MB / 413.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007009/0.6092, allocations: 32.73 kB / 413.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.285e-05/0.6093, allocations: 37.88 kB / 413.4 MB, free: 5.141 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0003037/0.6096, allocations: 234.2 kB / 413.6 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.6098, allocations: 98.62 kB / 413.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001089/0.6109, allocations: 440.4 kB / 414.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.6109, allocations: 4.375 kB / 414.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.6109, allocations: 1.156 kB / 414.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.113e-05/0.611, allocations: 3.938 kB / 414.1 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.614, allocations: 1.38 MB / 415.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.614, allocations: 3.984 kB / 415.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.6144, allocations: 77.75 kB / 415.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.824e-05/0.6145, allocations: 28 kB / 415.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.6145, allocations: 11.72 kB / 415.6 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.6159, allocations: 1.369 MB / 417 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.6159, allocations: 6.078 kB / 417 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.6173, allocations: 0.7231 MB / 417.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004023/0.6177, allocations: 207.9 kB / 417.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.6179, allocations: 12.81 kB / 418 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.6183, allocations: 23.17 kB / 418 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.6184, allocations: 25.19 kB / 418 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.756e-05/0.6185, allocations: 21.58 kB / 418 MB, free: 1.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.6197, allocations: 0.6057 MB / 418.6 MB, free: 1 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.6198, allocations: 0.7188 kB / 418.6 MB, free: 1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002324/0.6221, allocations: 351.5 kB / 419 MB, free: 0.9688 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.0003297/0.6224, allocations: 130.3 kB / 419.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00255/0.625, allocations: 0.9808 MB / 420.1 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.625, allocations: 0 / 420.1 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005739/0.6256, allocations: 286.3 kB / 420.4 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.6271, allocations: 246.6 kB / 420.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004455/0.6316, allocations: 1.844 MB / 422.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008762/0.6325, allocations: 1.021 MB / 423.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006392/0.6331, allocations: 131.4 kB / 423.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.6333, allocations: 59.44 kB / 423.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6333, allocations: 0 / 423.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of Templates: time 0.02512/0.6584, allocations: 10.8 MB / 434.5 MB, free: 1.875 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)