Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001235/0.001235, allocations: 110.9 kB / 16.62 MB, free: 6.961 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.001115/0.001115, allocations: 190 kB / 17.54 MB, free: 6.066 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.77/1.77, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.002355/0.002355, allocations: 43.92 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1735/0.1758, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.02649/0.2024, allocations: 14.41 MB / 340.5 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.219, allocations: 5.229 MB / 345.8 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004587/0.2236, allocations: 63.75 kB / 345.8 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005114/0.2288, allocations: 0.812 MB / 346.7 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002985/0.2319, allocations: 0.4925 MB / 347.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.2336, allocations: 0.5347 MB / 347.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004397/0.2381, allocations: 2.393 MB / 350.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002549/0.2406, allocations: 1.2 MB / 351.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.2425, allocations: 0.8676 MB / 352.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.2442, allocations: 0.9642 MB / 353.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003594/0.2446, allocations: 248 kB / 353.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005565/0.2452, allocations: 300 kB / 353.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.2455, allocations: 490.3 kB / 354.1 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.2467, allocations: 1.073 MB / 355.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003034/0.2497, allocations: 2.951 MB / 358.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.2497, allocations: 0 / 358.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.2497, allocations: 0 / 358.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.2498, allocations: 0 / 358.1 MB, free: 4.609 MB / 302.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.003968/0.2537, allocations: 2.246 MB / 360.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.2538, allocations: 11.89 kB / 360.4 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000779/0.2546, allocations: 266.3 kB / 360.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.2563, allocations: 1.127 MB / 361.8 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.2564, allocations: 131.7 kB / 361.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.2567, allocations: 172.2 kB / 362.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002772/0.2594, allocations: 1.597 MB / 363.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.985e-05/0.2595, allocations: 7.906 kB / 363.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/0.2596, allocations: 68 kB / 363.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.495e-05/0.2597, allocations: 44 kB / 363.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.2617, allocations: 1.082 MB / 364.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009525/0.2712, allocations: 6.674 MB / 371.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.2732, allocations: 0.9321 MB / 372.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005811/0.2738, allocations: 306.4 kB / 372.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.351e-05/0.2738, allocations: 8.547 kB / 372.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.2739, allocations: 47.12 kB / 372.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 4.288e-06/0.2739, allocations: 0 / 372.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004723/0.2786, allocations: 2.031 MB / 374.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.2787, allocations: 85.61 kB / 375 MB, free: 3.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.2806, allocations: 1.277 MB / 376.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.2807, allocations: 37.7 kB / 376.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006994/0.2814, allocations: 0.8958 MB / 377.2 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.2816, allocations: 236.6 kB / 377.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002911/0.2819, allocations: 206.6 kB / 377.6 MB, free: 464 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.2821, allocations: 345.9 kB / 377.9 MB, free: 112 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2799/0.5621, allocations: 307.5 kB / 378.2 MB, free: 52.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.5632, allocations: 0.7046 MB / 378.9 MB, free: 52.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001657/0.5649, allocations: 1.041 MB / 380 MB, free: 51.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.5649, allocations: 4.125 kB / 380 MB, free: 51.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003315/0.5682, allocations: 1.163 MB / 381.1 MB, free: 51.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.5683, allocations: 13.72 kB / 381.2 MB, free: 51.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.5683, allocations: 17 kB / 381.2 MB, free: 51.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002641/0.5686, allocations: 39.64 kB / 381.2 MB, free: 51.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.5696, allocations: 264.7 kB / 381.5 MB, free: 51.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0011/0.5707, allocations: 1.393 MB / 382.9 MB, free: 50.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.572, allocations: 63.5 kB / 382.9 MB, free: 50.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-05/0.5721, allocations: 57.03 kB / 383 MB, free: 50.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001267/0.5733, allocations: 0.5193 MB / 383.5 MB, free: 49.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008233/0.5742, allocations: 0.672 MB / 384.2 MB, free: 49.08 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001363/0.5755, allocations: 0.9862 MB / 385.2 MB, free: 48.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.826e-06/0.5756, allocations: 3.312 kB / 385.2 MB, free: 48.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.002345/0.5779, allocations: 1.097 MB / 386.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.578, allocations: 10.53 kB / 386.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.413e-05/0.578, allocations: 15.09 kB / 386.3 MB, free: 47.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/0.5781, allocations: 38.72 kB / 386.3 MB, free: 47.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009207/0.5791, allocations: 255.2 kB / 386.6 MB, free: 47.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009082/0.58, allocations: 1.393 MB / 388 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009907/0.581, allocations: 49.53 kB / 388 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.449e-05/0.5811, allocations: 48.75 kB / 388.1 MB, free: 46.37 MB / 318.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.0004593/0.5815, allocations: 252.1 kB / 388.3 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/0.5818, allocations: 135 kB / 388.4 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00188/0.5837, allocations: 0.7035 MB / 389.1 MB, free: 45.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.5837, allocations: 6.438 kB / 389.2 MB, free: 45.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.5837, allocations: 5.375 kB / 389.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.5837, allocations: 4.109 kB / 389.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004419/0.5882, allocations: 2.133 MB / 391.3 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5882, allocations: 4.875 kB / 391.3 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000675/0.5889, allocations: 144.3 kB / 391.4 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.589, allocations: 19.67 kB / 391.5 MB, free: 44.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.5891, allocations: 22.86 kB / 391.5 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000891/0.59, allocations: 1.377 MB / 392.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.59, allocations: 2.219 kB / 392.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002161/0.5922, allocations: 1.101 MB / 394 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006185/0.5928, allocations: 277 kB / 394.2 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.5929, allocations: 16.5 kB / 394.2 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.5936, allocations: 47.17 kB / 394.3 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/0.5937, allocations: 50.92 kB / 394.3 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.5938, allocations: 20.66 kB / 394.4 MB, free: 42.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001761/0.5956, allocations: 0.8526 MB / 395.2 MB, free: 42.22 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5956, allocations: 0 / 395.2 MB, free: 42.22 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002541/0.5981, allocations: 0.5024 MB / 395.7 MB, free: 42.18 MB / 318.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.0004205/0.5986, allocations: 132.1 kB / 395.8 MB, free: 42.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.6019, allocations: 1.473 MB / 397.3 MB, free: 41.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.6019, allocations: 0 / 397.3 MB, free: 41.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000655/0.6026, allocations: 422.8 kB / 397.7 MB, free: 41.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.6041, allocations: 344.5 kB / 398.1 MB, free: 41.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00483/0.6089, allocations: 3.542 MB / 401.6 MB, free: 38.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007688/0.6097, allocations: 1.241 MB / 402.9 MB, free: 38.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007772/0.6105, allocations: 177.6 kB / 403 MB, free: 38.07 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.6108, allocations: 84.94 kB / 403.1 MB, free: 38.07 MB / 318.1 MB Notification: Performance of SimCode: time 2.515e-06/0.6108, allocations: 0 / 403.1 MB, free: 38.07 MB / 318.1 MB Notification: Performance of Templates: time 0.02875/0.6395, allocations: 14.88 MB / 418 MB, free: 23.91 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)