Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009607/0.009608, allocations: 103 kB / 15.73 MB, free: 6.035 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.001635/0.001635, allocations: 190.7 kB / 16.67 MB, free: 5.957 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.932/1.932, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.0014/0.0014, allocations: 50.42 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1548, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.0195/0.1744, allocations: 13.98 MB / 387.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01562/0.1901, allocations: 5.158 MB / 392.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005335/0.1956, allocations: 63.75 kB / 392.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00411/0.1998, allocations: 0.897 MB / 393.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003247/0.203, allocations: 0.5971 MB / 393.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.2044, allocations: 0.5149 MB / 394.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003363/0.2078, allocations: 2.17 MB / 396.6 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001629/0.2094, allocations: 1.123 MB / 397.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00135/0.2108, allocations: 0.7977 MB / 398.5 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.212, allocations: 0.8749 MB / 399.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002825/0.2123, allocations: 232 kB / 399.6 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005736/0.2128, allocations: 264 kB / 399.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004241/0.2133, allocations: 446.5 kB / 400.3 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.2146, allocations: 0.9875 MB / 401.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004022/0.2187, allocations: 2.76 MB / 404 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.2187, allocations: 0 / 404 MB, free: 2.277 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.2187, allocations: 4 kB / 404 MB, free: 2.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.219e-05/0.2188, allocations: 0 / 404 MB, free: 2.273 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003949/0.2227, allocations: 2.023 MB / 406.1 MB, free: 196 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.2228, allocations: 11.89 kB / 406.1 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007262/0.2235, allocations: 254.5 kB / 406.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.2253, allocations: 1.055 MB / 407.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.87e-05/0.2254, allocations: 111.4 kB / 407.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.2256, allocations: 156.3 kB / 407.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002361/0.228, allocations: 1.423 MB / 409.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.2281, allocations: 7.984 kB / 409.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.2282, allocations: 60 kB / 409.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.53e-05/0.2282, allocations: 36 kB / 409.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.2299, allocations: 0.9634 MB / 410.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008017/0.238, allocations: 6.081 MB / 416.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.2392, allocations: 0.6482 MB / 416.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004032/0.2396, allocations: 241.9 kB / 417.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.573e-05/0.2397, allocations: 8.438 kB / 417.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.2397, allocations: 42.94 kB / 417.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.945e-06/0.2398, allocations: 0 / 417.1 MB, free: 4.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.003559/0.2433, allocations: 1.715 MB / 418.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.2434, allocations: 81.55 kB / 418.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.2453, allocations: 1.128 MB / 420.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.2454, allocations: 33.7 kB / 420.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.246, allocations: 0.8091 MB / 420.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.2463, allocations: 197.2 kB / 421.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/0.2466, allocations: 190.3 kB / 421.3 MB, free: 368 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2467, allocations: 341.9 kB / 421.6 MB, free: 20 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004859/0.2472, allocations: 244.8 kB / 421.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007588/0.248, allocations: 0.629 MB / 422.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.2493, allocations: 0.9145 MB / 423.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.986e-06/0.2493, allocations: 4 kB / 423.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.0019/0.2512, allocations: 0.9989 MB / 424.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.2512, allocations: 12 kB / 424.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.2513, allocations: 16.03 kB / 424.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00021/0.2515, allocations: 36.84 kB / 424.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007681/0.2523, allocations: 223.6 kB / 424.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.2537, allocations: 1.402 MB / 426.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009484/0.2547, allocations: 43.98 kB / 426.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.593e-05/0.2548, allocations: 44.09 kB / 426.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009082/0.2557, allocations: 474 kB / 426.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007074/0.2564, allocations: 0.5939 MB / 427.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001149/0.2576, allocations: 0.8678 MB / 428.1 MB, free: 8.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.361e-05/0.2576, allocations: 4 kB / 428.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001747/0.2594, allocations: 0.9557 MB / 429.1 MB, free: 7.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2594, allocations: 16.06 kB / 429.1 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.2594, allocations: 12 kB / 429.1 MB, free: 7.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001153/0.2596, allocations: 36.86 kB / 429.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006775/0.2602, allocations: 211.7 kB / 429.3 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.2613, allocations: 1.39 MB / 430.7 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008338/0.2622, allocations: 43.84 kB / 430.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.678e-05/0.2623, allocations: 44 kB / 430.8 MB, free: 5.785 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (122): * Single equations (assignments): 121 * 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.0003675/0.2627, allocations: 255.9 kB / 431.1 MB, free: 5.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.263, allocations: 118.6 kB / 431.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.2643, allocations: 0.5634 MB / 431.7 MB, free: 4.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.2644, allocations: 8 kB / 431.7 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.2644, allocations: 4 kB / 431.7 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.2644, allocations: 3.984 kB / 431.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003809/0.2682, allocations: 1.859 MB / 433.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2682, allocations: 0 / 433.6 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004948/0.2687, allocations: 99.89 kB / 433.7 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001204/0.2689, allocations: 29.06 kB / 433.7 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.707e-05/0.2689, allocations: 16 kB / 433.8 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001148/0.2701, allocations: 1.378 MB / 435.1 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.2701, allocations: 0 / 435.1 MB, free: 1.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.2716, allocations: 0.912 MB / 436 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004857/0.2721, allocations: 251.8 kB / 436.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.2723, allocations: 15.94 kB / 436.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005637/0.2729, allocations: 31.92 kB / 436.3 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.273, allocations: 40.33 kB / 436.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.503e-05/0.2731, allocations: 19.98 kB / 436.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001298/0.2744, allocations: 0.7596 MB / 437.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2744, allocations: 0 / 437.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001929/0.2763, allocations: 464 kB / 437.6 MB, free: 14.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * 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 (53): * Single equations (assignments): 52 * 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.0003247/0.2766, allocations: 135.1 kB / 437.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.2792, allocations: 1.253 MB / 439 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.2792, allocations: 3.938 kB / 439 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006091/0.2799, allocations: 354.9 kB / 439.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.2813, allocations: 288.7 kB / 439.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005634/0.2869, allocations: 2.484 MB / 442.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001307/0.2882, allocations: 1.173 MB / 443.3 MB, free: 8.867 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007131/0.2889, allocations: 153.2 kB / 443.4 MB, free: 8.715 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002195/0.2892, allocations: 75.44 kB / 443.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.2892, allocations: 3.938 kB / 443.5 MB, free: 8.641 MB / 382.1 MB Notification: Performance of Templates: time 0.2931/0.5823, allocations: 13.33 MB / 456.8 MB, free: 65.88 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)