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.008441/0.008441, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001682/0.001682, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.811/1.811, allocations: 205.1 MB / 222.5 MB, free: 4.363 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.001388/0.001388, allocations: 45.48 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1504, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01982/0.1703, allocations: 14.55 MB / 387.7 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.1876, allocations: 5.373 MB / 393.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005569/0.1933, allocations: 67.69 kB / 393.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005316/0.1987, allocations: 0.9083 MB / 394.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004741/0.2035, allocations: 0.5811 MB / 394.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002075/0.2056, allocations: 0.6086 MB / 395.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003979/0.2096, allocations: 2.397 MB / 397.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.2115, allocations: 1.2 MB / 398.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.2134, allocations: 0.8637 MB / 399.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001153/0.2145, allocations: 0.9681 MB / 400.7 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003079/0.2149, allocations: 252 kB / 401 MB, free: 5.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005543/0.2154, allocations: 292 kB / 401.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004029/0.2158, allocations: 494.2 kB / 401.7 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.2169, allocations: 1.069 MB / 402.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00327/0.2202, allocations: 3.005 MB / 405.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.2202, allocations: 4 kB / 405.8 MB, free: 500 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2202, allocations: 0 / 405.8 MB, free: 500 kB / 334.1 MB Notification: Performance of Transformations before backend: time 3.961e-05/0.2203, allocations: 0 / 405.8 MB, free: 500 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.004502/0.2248, allocations: 2.242 MB / 408 MB, free: 14.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.354e-05/0.2248, allocations: 19.83 kB / 408.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008378/0.2257, allocations: 262.3 kB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.2278, allocations: 1.17 MB / 409.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.2279, allocations: 123.7 kB / 409.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002269/0.2282, allocations: 168.3 kB / 409.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.2309, allocations: 1.609 MB / 411.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/0.2309, allocations: 4 kB / 411.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.2311, allocations: 68 kB / 411.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.651e-05/0.2311, allocations: 40 kB / 411.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.2332, allocations: 1.089 MB / 412.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009095/0.2423, allocations: 6.596 MB / 419.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001894/0.2443, allocations: 0.9398 MB / 420.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006091/0.2449, allocations: 306.4 kB / 420.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.312e-05/0.245, allocations: 16.5 kB / 420.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.245, allocations: 39.12 kB / 420.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 4.088e-06/0.245, allocations: 4 kB / 420.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004517/0.2495, allocations: 2.027 MB / 422.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.2496, allocations: 89.61 kB / 422.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.2516, allocations: 1.273 MB / 423.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/0.2516, allocations: 41.64 kB / 423.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006857/0.2523, allocations: 0.8883 MB / 424.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.2526, allocations: 248.5 kB / 425 MB, free: 12.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002673/0.2528, allocations: 202.7 kB / 425.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.253, allocations: 345.9 kB / 425.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006171/0.2536, allocations: 305.9 kB / 425.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009117/0.2545, allocations: 0.7119 MB / 426.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.2561, allocations: 1.043 MB / 427.6 MB, free: 9.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.2561, allocations: 7.938 kB / 427.6 MB, free: 9.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002118/0.2582, allocations: 1.164 MB / 428.8 MB, free: 8.395 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.2583, allocations: 12 kB / 428.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.822e-05/0.2583, allocations: 15.94 kB / 428.8 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.2585, allocations: 45.34 kB / 428.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.2597, allocations: 259.6 kB / 429.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001507/0.2612, allocations: 1.394 MB / 430.5 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.2625, allocations: 59.88 kB / 430.6 MB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.954e-05/0.2626, allocations: 52 kB / 430.6 MB, free: 6.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001294/0.2639, allocations: 0.53 MB / 431.2 MB, free: 5.883 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008973/0.2648, allocations: 0.6659 MB / 431.8 MB, free: 5.023 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001511/0.2664, allocations: 0.9894 MB / 432.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.155e-05/0.2664, allocations: 4 kB / 432.8 MB, free: 3.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.002064/0.2685, allocations: 1.091 MB / 433.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.2685, allocations: 12 kB / 433.9 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.2685, allocations: 12 kB / 433.9 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001319/0.2686, allocations: 40.84 kB / 434 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008894/0.2695, allocations: 251.6 kB / 434.2 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.2706, allocations: 1.39 MB / 435.6 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009192/0.2716, allocations: 52.05 kB / 435.7 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/0.2716, allocations: 51.98 kB / 435.7 MB, free: 0.793 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.0003905/0.272, allocations: 267.7 kB / 436 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.2723, allocations: 134.3 kB / 436.1 MB, free: 400 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.2739, allocations: 0.6926 MB / 436.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/0.274, allocations: 8 kB / 436.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.274, allocations: 0 / 436.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.274, allocations: 3.984 kB / 436.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003618/0.2776, allocations: 2.138 MB / 438.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2776, allocations: 0 / 438.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000619/0.2783, allocations: 131.8 kB / 439.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001068/0.2784, allocations: 29.06 kB / 439.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.2784, allocations: 20 kB / 439.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.2795, allocations: 1.375 MB / 440.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2795, allocations: 0 / 440.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.2814, allocations: 1.109 MB / 441.6 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004748/0.2819, allocations: 275.2 kB / 441.9 MB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.2821, allocations: 20 kB / 441.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005843/0.2827, allocations: 51.89 kB / 441.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.2828, allocations: 48.44 kB / 442 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.2829, allocations: 16 kB / 442 MB, free: 10.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001308/0.2842, allocations: 0.8541 MB / 442.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2842, allocations: 0 / 442.9 MB, free: 9.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001856/0.286, allocations: 0.5 MB / 443.4 MB, free: 8.824 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.0002523/0.2863, allocations: 135.2 kB / 443.5 MB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.2891, allocations: 1.447 MB / 444.9 MB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.2891, allocations: 4 kB / 444.9 MB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006983/0.2898, allocations: 427.6 kB / 445.4 MB, free: 6.777 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.2915, allocations: 321 kB / 445.7 MB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005535/0.2971, allocations: 2.806 MB / 448.5 MB, free: 3.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009042/0.298, allocations: 1.241 MB / 449.7 MB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008039/0.2988, allocations: 174.4 kB / 449.9 MB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.2991, allocations: 87.42 kB / 450 MB, free: 2.074 MB / 382.1 MB Notification: Performance of SimCode: time 1.393e-06/0.2991, allocations: 0 / 450 MB, free: 2.074 MB / 382.1 MB Notification: Performance of Templates: time 0.3198/0.6189, allocations: 15.28 MB / 465.3 MB, free: 65.61 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)