Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01326/0.01326, allocations: 99.39 kB / 15.73 MB, free: 6.496 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.001818/0.001818, allocations: 199 kB / 16.68 MB, free: 6.375 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.869/1.869, allocations: 205.1 MB / 222.5 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.001686/0.001686, allocations: 51.23 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1224, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01711/0.1395, allocations: 14.56 MB / 387.8 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01173/0.1513, allocations: 5.365 MB / 393.1 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003389/0.1548, allocations: 67.69 kB / 393.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.1582, allocations: 0.9513 MB / 394.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002856/0.161, allocations: 0.6241 MB / 394.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.1624, allocations: 0.6086 MB / 395.4 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003813/0.1662, allocations: 2.393 MB / 397.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001582/0.1678, allocations: 1.212 MB / 399 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.1691, allocations: 0.8715 MB / 399.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009569/0.17, allocations: 0.9642 MB / 400.8 MB, free: 5.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.1703, allocations: 256 kB / 401.1 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004955/0.1708, allocations: 288 kB / 401.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003797/0.1712, allocations: 490.2 kB / 401.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.1723, allocations: 1.073 MB / 402.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003272/0.1756, allocations: 3.013 MB / 405.9 MB, free: 412 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1756, allocations: 4 kB / 405.9 MB, free: 408 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1756, allocations: 4 kB / 405.9 MB, free: 404 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.808e-05/0.1756, allocations: 0 / 405.9 MB, free: 404 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.004054/0.1797, allocations: 2.231 MB / 408.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.622e-05/0.1798, allocations: 15.89 kB / 408.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007595/0.1805, allocations: 274.2 kB / 408.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.1825, allocations: 1.162 MB / 409.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.1826, allocations: 131.7 kB / 409.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002294/0.1828, allocations: 168.3 kB / 409.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00259/0.1854, allocations: 1.601 MB / 411.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.375e-05/0.1855, allocations: 4 kB / 411.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/0.1856, allocations: 64 kB / 411.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.339e-05/0.1857, allocations: 40 kB / 411.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.1877, allocations: 1.089 MB / 412.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008462/0.1962, allocations: 6.603 MB / 419.3 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.198, allocations: 0.9359 MB / 420.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005276/0.1985, allocations: 310.4 kB / 420.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.1986, allocations: 9.266 kB / 420.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.1986, allocations: 43.05 kB / 420.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.074e-06/0.1986, allocations: 0 / 420.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.00404/0.2027, allocations: 2.034 MB / 422.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.325e-05/0.2028, allocations: 93.61 kB / 422.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.2049, allocations: 1.266 MB / 424 MB, free: 13.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.2049, allocations: 41.7 kB / 424 MB, free: 13.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006456/0.2056, allocations: 0.8919 MB / 424.9 MB, free: 12.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.2058, allocations: 244.5 kB / 425.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.2061, allocations: 194.8 kB / 425.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2062, allocations: 345.9 kB / 425.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006455/0.2069, allocations: 310 kB / 426 MB, free: 11.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008916/0.2078, allocations: 0.708 MB / 426.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.2094, allocations: 1.039 MB / 427.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.2094, allocations: 4 kB / 427.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002303/0.2117, allocations: 1.18 MB / 428.9 MB, free: 8.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.2118, allocations: 12 kB / 428.9 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/0.2118, allocations: 15.94 kB / 428.9 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.2121, allocations: 40.78 kB / 429 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009356/0.213, allocations: 263.6 kB / 429.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001365/0.2144, allocations: 1.386 MB / 430.6 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/0.2155, allocations: 72.02 kB / 430.7 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.2156, allocations: 52 kB / 430.7 MB, free: 6.332 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001148/0.2168, allocations: 0.5182 MB / 431.2 MB, free: 5.809 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000765/0.2175, allocations: 0.6737 MB / 431.9 MB, free: 4.941 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001339/0.2189, allocations: 0.9777 MB / 432.9 MB, free: 3.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.16e-05/0.2189, allocations: 8 kB / 432.9 MB, free: 3.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001949/0.2209, allocations: 1.094 MB / 434 MB, free: 2.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.2209, allocations: 12 kB / 434 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.2209, allocations: 12 kB / 434 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001296/0.2211, allocations: 33.39 kB / 434.1 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000842/0.2219, allocations: 263.6 kB / 434.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.2232, allocations: 1.394 MB / 435.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/0.2243, allocations: 51.89 kB / 435.8 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.486e-05/0.2244, allocations: 48 kB / 435.8 MB, free: 0.7109 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,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 (139): * Single equations (assignments): 138 * 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.0003432/0.2248, allocations: 259.7 kB / 436.1 MB, free: 460 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/0.2251, allocations: 142.4 kB / 436.2 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.2267, allocations: 0.6887 MB / 436.9 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.2267, allocations: 8 kB / 436.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2267, allocations: 4 kB / 436.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2268, allocations: 3.984 kB / 436.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.2307, allocations: 2.134 MB / 439 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2307, allocations: 224 / 439 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005858/0.2313, allocations: 135.8 kB / 439.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.2314, allocations: 24.84 kB / 439.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.2315, allocations: 16 kB / 439.2 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.2325, allocations: 1.378 MB / 440.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2325, allocations: 0 / 440.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.2345, allocations: 1.105 MB / 441.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005414/0.235, allocations: 279.2 kB / 442 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002279/0.2353, allocations: 20 kB / 442 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.2359, allocations: 47.95 kB / 442 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.236, allocations: 48.44 kB / 442.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.2361, allocations: 19.98 kB / 442.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001424/0.2375, allocations: 0.858 MB / 443 MB, free: 9.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2375, allocations: 0 / 443 MB, free: 9.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002106/0.2396, allocations: 0.5 MB / 443.5 MB, free: 8.742 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.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 (63): * Single equations (assignments): 62 * 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.0003134/0.24, allocations: 131.2 kB / 443.6 MB, free: 8.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002901/0.2429, allocations: 1.448 MB / 445 MB, free: 7.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.2429, allocations: 4.25 kB / 445 MB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007246/0.2436, allocations: 429.5 kB / 445.5 MB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/0.2451, allocations: 329.3 kB / 445.8 MB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/0.2508, allocations: 2.81 MB / 448.6 MB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.2519, allocations: 1.233 MB / 449.8 MB, free: 2.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007685/0.2526, allocations: 178.5 kB / 450 MB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.2529, allocations: 83.44 kB / 450.1 MB, free: 1.988 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2529, allocations: 0 / 450.1 MB, free: 1.988 MB / 382.1 MB Notification: Performance of Templates: time 0.3811/0.634, allocations: 15.27 MB / 465.3 MB, free: 65.58 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)