Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.007569/0.007569, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001891/0.001892, allocations: 195.5 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.834/1.834, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001957/0.001957, allocations: 49.88 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1322, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01618/0.1484, allocations: 13.98 MB / 387.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.1588, allocations: 5.15 MB / 392.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002837/0.1617, allocations: 55.81 kB / 392.4 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003021/0.1648, allocations: 0.8696 MB / 393.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.1668, allocations: 0.5502 MB / 393.8 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.1678, allocations: 0.5267 MB / 394.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003471/0.1713, allocations: 2.155 MB / 396.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001847/0.1732, allocations: 1.116 MB / 397.6 MB, free: 8.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.1742, allocations: 0.7938 MB / 398.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009374/0.1752, allocations: 0.8788 MB / 399.3 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002462/0.1754, allocations: 232 kB / 399.5 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004541/0.1759, allocations: 272 kB / 399.8 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.1762, allocations: 442.4 kB / 400.2 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008464/0.1771, allocations: 0.9875 MB / 401.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003368/0.1805, allocations: 2.771 MB / 404 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.1805, allocations: 4 kB / 404 MB, free: 2.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1805, allocations: 0 / 404 MB, free: 2.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.119e-05/0.1806, allocations: 0 / 404 MB, free: 2.359 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.003998/0.1846, allocations: 2.084 MB / 406 MB, free: 220 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.1847, allocations: 15.83 kB / 406.1 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007334/0.1854, allocations: 251.6 kB / 406.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/0.1871, allocations: 1.06 MB / 407.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.1873, allocations: 115.4 kB / 407.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.1875, allocations: 160.3 kB / 407.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.1898, allocations: 1.427 MB / 409.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.967e-05/0.1898, allocations: 0 / 409.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.19, allocations: 64 kB / 409.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.19, allocations: 36 kB / 409.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/0.1917, allocations: 0.9595 MB / 410.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007329/0.1991, allocations: 6.084 MB / 416.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.2002, allocations: 0.652 MB / 416.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004414/0.2007, allocations: 246 kB / 417.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.829e-05/0.2007, allocations: 8.422 kB / 417.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.2008, allocations: 39 kB / 417.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of pre-optimization done (n=51): time 2.204e-06/0.2008, allocations: 0 / 417.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.003394/0.2042, allocations: 1.733 MB / 418.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.82e-05/0.2043, allocations: 85.55 kB / 419 MB, free: 2.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.2058, allocations: 1.132 MB / 420.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.2058, allocations: 33.7 kB / 420.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005769/0.2064, allocations: 0.8311 MB / 421 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.2066, allocations: 214.2 kB / 421.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.2068, allocations: 178.5 kB / 421.3 MB, free: 332 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.207, allocations: 341.9 kB / 421.7 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.2075, allocations: 252.7 kB / 421.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007088/0.2082, allocations: 0.629 MB / 422.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.2093, allocations: 0.9184 MB / 423.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.2094, allocations: 4 kB / 423.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001599/0.211, allocations: 0.9991 MB / 424.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.211, allocations: 12 kB / 424.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.211, allocations: 16 kB / 424.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.2112, allocations: 41.28 kB / 424.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.2119, allocations: 223.7 kB / 424.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001201/0.2131, allocations: 1.394 MB / 426.1 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000652/0.2138, allocations: 51.92 kB / 426.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.506e-05/0.2139, allocations: 47.94 kB / 426.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007947/0.2147, allocations: 474 kB / 426.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000668/0.2154, allocations: 0.5979 MB / 427.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001032/0.2164, allocations: 0.8717 MB / 428.2 MB, free: 8.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.171e-06/0.2164, allocations: 7.938 kB / 428.2 MB, free: 8.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001385/0.2178, allocations: 0.9519 MB / 429.1 MB, free: 7.613 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.2178, allocations: 8 kB / 429.1 MB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.2179, allocations: 20.73 kB / 429.2 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.695e-05/0.218, allocations: 36.86 kB / 429.2 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006339/0.2186, allocations: 215.7 kB / 429.4 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.2197, allocations: 1.386 MB / 430.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005934/0.2203, allocations: 47.88 kB / 430.8 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.96e-05/0.2204, allocations: 44 kB / 430.9 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.0002167/0.2206, allocations: 251.8 kB / 431.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.2207, allocations: 123.3 kB / 431.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.2218, allocations: 0.5595 MB / 431.8 MB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2218, allocations: 8 kB / 431.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.2219, allocations: 4 kB / 431.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2219, allocations: 0 / 431.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.2247, allocations: 1.871 MB / 433.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2247, allocations: 0 / 433.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/0.2252, allocations: 107.8 kB / 433.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.166e-05/0.2253, allocations: 24.84 kB / 433.8 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.657e-05/0.2253, allocations: 16 kB / 433.8 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000998/0.2263, allocations: 1.371 MB / 435.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.2263, allocations: 4.156 kB / 435.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.2277, allocations: 0.9204 MB / 436.1 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.2281, allocations: 248.3 kB / 436.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.2282, allocations: 12 kB / 436.4 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.2287, allocations: 35.97 kB / 436.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.2287, allocations: 48.34 kB / 436.5 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.2288, allocations: 16 kB / 436.5 MB, free: 15.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001034/0.2298, allocations: 0.7596 MB / 437.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2298, allocations: 0 / 437.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001435/0.2313, allocations: 468 kB / 437.7 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.0002455/0.2315, allocations: 131.1 kB / 437.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002031/0.2336, allocations: 1.254 MB / 439.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.2336, allocations: 0 / 439.1 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.2341, allocations: 353 kB / 439.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.2354, allocations: 301.3 kB / 439.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/0.2394, allocations: 2.528 MB / 442.3 MB, free: 9.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/0.2402, allocations: 1.173 MB / 443.4 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005869/0.2408, allocations: 165.2 kB / 443.6 MB, free: 8.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.241, allocations: 71.44 kB / 443.7 MB, free: 8.504 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.241, allocations: 0 / 443.7 MB, free: 8.504 MB / 382.1 MB Notification: Performance of Templates: time 0.2908/0.5318, allocations: 13.32 MB / 457 MB, free: 66 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)