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.01171/0.01171, allocations: 99.66 kB / 15.73 MB, free: 6.441 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.001836/0.001836, allocations: 199.3 kB / 16.67 MB, free: 6.352 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.9/1.9, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001281/0.001281, allocations: 49.73 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1352, allocations: 46.62 MB / 373.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01792/0.1532, allocations: 13.98 MB / 387.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01389/0.1671, allocations: 5.15 MB / 392.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004136/0.1713, allocations: 59.75 kB / 392.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003888/0.1753, allocations: 0.9203 MB / 393.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002627/0.178, allocations: 0.5892 MB / 393.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.1792, allocations: 0.5072 MB / 394.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002984/0.1822, allocations: 2.167 MB / 396.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.1839, allocations: 1.123 MB / 397.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001306/0.1852, allocations: 0.7977 MB / 398.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009554/0.1862, allocations: 0.8671 MB / 399.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002659/0.1864, allocations: 232 kB / 399.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.1869, allocations: 279.9 kB / 399.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.1873, allocations: 446.4 kB / 400.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008811/0.1882, allocations: 0.9875 MB / 401.3 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002973/0.1911, allocations: 2.767 MB / 404 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1912, allocations: 0 / 404 MB, free: 2.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1912, allocations: 0 / 404 MB, free: 2.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.64e-05/0.1912, allocations: 0 / 404 MB, free: 2.375 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.00396/0.1952, allocations: 2.088 MB / 406.1 MB, free: 232 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.1952, allocations: 15.89 kB / 406.1 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000803/0.1961, allocations: 255.7 kB / 406.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/0.1979, allocations: 1.053 MB / 407.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.341e-05/0.198, allocations: 111.4 kB / 407.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002156/0.1982, allocations: 160.3 kB / 407.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.2006, allocations: 1.431 MB / 409.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.621e-05/0.2007, allocations: 4 kB / 409.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.2008, allocations: 60 kB / 409.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/0.2009, allocations: 40 kB / 409.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.2027, allocations: 0.9556 MB / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008404/0.2111, allocations: 6.107 MB / 416.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.2123, allocations: 0.648 MB / 417 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.2127, allocations: 238 kB / 417.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.057e-05/0.2128, allocations: 12.42 kB / 417.2 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.826e-05/0.2128, allocations: 35 kB / 417.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 3.016e-06/0.2128, allocations: 4 kB / 417.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.003475/0.2163, allocations: 1.737 MB / 419 MB, free: 2.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/0.2164, allocations: 81.55 kB / 419.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.218, allocations: 1.132 MB / 420.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.218, allocations: 37.7 kB / 420.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006664/0.2187, allocations: 0.8271 MB / 421.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002103/0.2189, allocations: 218.2 kB / 421.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002616/0.2192, allocations: 174.5 kB / 421.4 MB, free: 332 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.2194, allocations: 345.9 kB / 421.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.2199, allocations: 248.7 kB / 422 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/0.2207, allocations: 0.629 MB / 422.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.2219, allocations: 0.9185 MB / 423.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.222, allocations: 4 kB / 423.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001717/0.2237, allocations: 0.9917 MB / 424.6 MB, free: 12.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.2237, allocations: 16.03 kB / 424.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.753e-05/0.2237, allocations: 12 kB / 424.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001895/0.2239, allocations: 36.86 kB / 424.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/0.2247, allocations: 227.6 kB / 424.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.2259, allocations: 1.394 MB / 426.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008103/0.2267, allocations: 56.08 kB / 426.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.2268, allocations: 47.94 kB / 426.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009378/0.2277, allocations: 470 kB / 426.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008556/0.2286, allocations: 0.6055 MB / 427.4 MB, free: 9.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001345/0.2299, allocations: 0.8679 MB / 428.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.524e-06/0.23, allocations: 4 kB / 428.3 MB, free: 8.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001663/0.2316, allocations: 0.9525 MB / 429.2 MB, free: 7.621 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2317, allocations: 12 kB / 429.2 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.2317, allocations: 12 kB / 429.3 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.2318, allocations: 40.84 kB / 429.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006546/0.2325, allocations: 219.6 kB / 429.5 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.2337, allocations: 1.383 MB / 430.9 MB, free: 5.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007802/0.2345, allocations: 48.03 kB / 430.9 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.825e-05/0.2345, allocations: 52 kB / 431 MB, free: 5.723 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.0003869/0.2349, allocations: 243.9 kB / 431.2 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.2351, allocations: 119.2 kB / 431.3 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.2365, allocations: 0.5712 MB / 431.9 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2365, allocations: 4 kB / 431.9 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.2365, allocations: 0 / 431.9 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.2365, allocations: 0 / 431.9 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003346/0.2399, allocations: 1.863 MB / 433.8 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.2399, allocations: 0 / 433.8 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004722/0.2404, allocations: 111.8 kB / 433.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.492e-05/0.2405, allocations: 29.06 kB / 433.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.603e-05/0.2405, allocations: 12 kB / 433.9 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001056/0.2416, allocations: 1.375 MB / 435.3 MB, free: 1.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2416, allocations: 4.031 kB / 435.3 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.243, allocations: 0.9244 MB / 436.2 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000431/0.2435, allocations: 244.5 kB / 436.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.2436, allocations: 12 kB / 436.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.2441, allocations: 35.97 kB / 436.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.2442, allocations: 40.17 kB / 436.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6e-05/0.2443, allocations: 24 kB / 436.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001207/0.2455, allocations: 0.7557 MB / 437.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.765e-06/0.2455, allocations: 4 kB / 437.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002024/0.2476, allocations: 475.9 kB / 437.8 MB, free: 14.59 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.0003374/0.2479, allocations: 119.1 kB / 437.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002489/0.2504, allocations: 1.252 MB / 439.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.2504, allocations: 1.938 kB / 439.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006075/0.251, allocations: 357.5 kB / 439.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.2525, allocations: 292.7 kB / 439.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005109/0.2576, allocations: 2.543 MB / 442.4 MB, free: 9.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.2586, allocations: 1.173 MB / 443.5 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006254/0.2593, allocations: 157.2 kB / 443.7 MB, free: 8.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.2595, allocations: 71.44 kB / 443.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of SimCode: time 7.02e-07/0.2595, allocations: 0 / 443.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of Templates: time 0.3254/0.5849, allocations: 13.32 MB / 457.1 MB, free: 66.09 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)