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.00139/0.00139, allocations: 109.6 kB / 17.06 MB, free: 6.023 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.001402/0.001402, allocations: 191 kB / 18 MB, free: 5.105 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.929/1.929, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.001919/0.001919, allocations: 51.92 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1847, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.376/0.5607, allocations: 8.129 MB / 382.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009339/0.5702, allocations: 2.743 MB / 385.4 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002923/0.5733, allocations: 26.5 kB / 385.4 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003403/0.5767, allocations: 0.5569 MB / 386 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004054/0.5808, allocations: 473.8 kB / 386.4 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.5826, allocations: 365.2 kB / 386.8 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004479/0.5871, allocations: 1.508 MB / 388.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.5885, allocations: 0.6071 MB / 388.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001756/0.5903, allocations: 0.5614 MB / 389.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00129/0.5916, allocations: 0.605 MB / 390.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003365/0.5919, allocations: 139.6 kB / 390.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000741/0.5927, allocations: 174.9 kB / 390.4 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004136/0.5931, allocations: 290.4 kB / 390.6 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.5943, allocations: 0.666 MB / 391.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004055/0.5984, allocations: 1.726 MB / 393 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.097e-05/0.5984, allocations: 1.438 kB / 393 MB, free: 3.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.519e-06/0.5984, allocations: 5.969 kB / 393 MB, free: 3.84 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.569e-05/0.5985, allocations: 0 / 393 MB, free: 3.84 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.004257/0.6028, allocations: 1.504 MB / 394.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/0.6029, allocations: 10.16 kB / 394.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008933/0.6038, allocations: 190 kB / 394.7 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.6058, allocations: 0.803 MB / 395.5 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.751e-05/0.6059, allocations: 77.72 kB / 395.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.6062, allocations: 105.6 kB / 395.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.6082, allocations: 0.9514 MB / 396.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.13e-05/0.6083, allocations: 3.109 kB / 396.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.96e-05/0.6084, allocations: 42 kB / 396.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.6084, allocations: 27.48 kB / 396.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/0.6099, allocations: 0.633 MB / 397.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006778/0.6167, allocations: 4.095 MB / 401.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.618, allocations: 426.7 kB / 401.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.6184, allocations: 160.8 kB / 402.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.081e-05/0.6184, allocations: 6.953 kB / 402.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.6185, allocations: 41.31 kB / 402.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 3.316e-06/0.6185, allocations: 4 kB / 402.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.003335/0.6218, allocations: 1.32 MB / 403.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.62e-05/0.622, allocations: 110.9 kB / 403.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.6237, allocations: 0.8982 MB / 404.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.6237, allocations: 30.77 kB / 404.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000634/0.6244, allocations: 0.5917 MB / 405.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.6245, allocations: 149.1 kB / 405.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002685/0.6248, allocations: 139.9 kB / 405.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.625, allocations: 331.8 kB / 405.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004201/0.6254, allocations: 180 kB / 405.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007203/0.6262, allocations: 493.4 kB / 406.3 MB, free: 11.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.6273, allocations: 0.6754 MB / 407 MB, free: 10.39 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.6273, allocations: 3.344 kB / 407 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001789/0.6291, allocations: 0.7532 MB / 407.7 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/0.6292, allocations: 9.719 kB / 407.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/0.6292, allocations: 14.09 kB / 407.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003083/0.6295, allocations: 35.84 kB / 407.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007176/0.6303, allocations: 170.4 kB / 408 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.632, allocations: 1.392 MB / 409.4 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.6331, allocations: 34.83 kB / 409.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.91e-05/0.6332, allocations: 41.59 kB / 409.4 MB, free: 8.469 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001109/0.6343, allocations: 352.8 kB / 409.8 MB, free: 8.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007394/0.6351, allocations: 486.5 kB / 410.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001063/0.6362, allocations: 0.663 MB / 410.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.748e-06/0.6362, allocations: 3.031 kB / 410.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001853/0.6381, allocations: 0.7206 MB / 411.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.6381, allocations: 10.16 kB / 411.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.479e-05/0.6381, allocations: 10.25 kB / 411.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001689/0.6383, allocations: 37.16 kB / 411.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006491/0.639, allocations: 166.6 kB / 411.9 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.6403, allocations: 1.385 MB / 413.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008681/0.6412, allocations: 33.61 kB / 413.3 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.89e-05/0.6412, allocations: 33.38 kB / 413.3 MB, free: 5.223 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.0004356/0.6417, allocations: 238 kB / 413.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.6419, allocations: 94.5 kB / 413.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.6431, allocations: 436.8 kB / 414.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.6431, allocations: 4.688 kB / 414.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6432, allocations: 0.875 kB / 414.1 MB, free: 4.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.6432, allocations: 11.95 kB / 414.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003143/0.6463, allocations: 1.38 MB / 415.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.6463, allocations: 0 / 415.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004241/0.6468, allocations: 76.41 kB / 415.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001566/0.647, allocations: 28.69 kB / 415.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.647, allocations: 12.97 kB / 415.6 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001432/0.6485, allocations: 1.373 MB / 417 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.6485, allocations: 1.312 kB / 417 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.6501, allocations: 0.7153 MB / 417.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005143/0.6506, allocations: 207.9 kB / 417.9 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.908e-05/0.6507, allocations: 12.75 kB / 417.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.6512, allocations: 26.36 kB / 417.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.337e-05/0.6513, allocations: 29.52 kB / 417.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/0.6513, allocations: 10.88 kB / 417.9 MB, free: 1.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.6524, allocations: 0.6079 MB / 418.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6524, allocations: 1.438 kB / 418.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002017/0.6545, allocations: 350.9 kB / 418.9 MB, free: 1.062 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.000369/0.6549, allocations: 135.5 kB / 419 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002462/0.6573, allocations: 0.9763 MB / 420 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.6574, allocations: 0 / 420 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005242/0.6579, allocations: 290.2 kB / 420.3 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/0.6592, allocations: 231 kB / 420.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004598/0.6638, allocations: 1.83 MB / 422.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008877/0.6648, allocations: 1.021 MB / 423.4 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008843/0.6657, allocations: 127.4 kB / 423.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.6658, allocations: 59.44 kB / 423.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of SimCode: time 2.585e-06/0.6658, allocations: 0 / 423.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of Templates: time 0.03145/0.6973, allocations: 10.79 MB / 434.3 MB, free: 2.02 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)