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.001314/0.001314, allocations: 111 kB / 17.06 MB, free: 5.965 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.001418/0.001418, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.765/1.765, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001732/0.001732, allocations: 43.94 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1703, allocations: 46.61 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.3794/0.5498, allocations: 14.56 MB / 389.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.5657, allocations: 5.371 MB / 394.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005938/0.5717, allocations: 68.03 kB / 394.5 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004921/0.5767, allocations: 0.9097 MB / 395.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00498/0.5817, allocations: 0.5839 MB / 396 MB, free: 60 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.5843, allocations: 0.6057 MB / 396.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005972/0.5903, allocations: 2.39 MB / 399 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002303/0.5926, allocations: 1.205 MB / 400.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002279/0.5949, allocations: 0.8759 MB / 401.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00198/0.5969, allocations: 0.9587 MB / 402 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005224/0.5975, allocations: 251.8 kB / 402.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009429/0.5984, allocations: 292.6 kB / 402.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006118/0.599, allocations: 492.3 kB / 403 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001543/0.6006, allocations: 1.078 MB / 404.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005532/0.6061, allocations: 3.006 MB / 407.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/0.6062, allocations: 0 / 407.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.6062, allocations: 3.938 kB / 407.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.893e-05/0.6063, allocations: 0 / 407.1 MB, free: 9.949 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.006098/0.6124, allocations: 2.243 MB / 409.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/0.6125, allocations: 13.23 kB / 409.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.6136, allocations: 267.6 kB / 409.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.6163, allocations: 1.169 MB / 410.8 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.6164, allocations: 125.1 kB / 410.9 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003137/0.6167, allocations: 173.4 kB / 411.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003875/0.6206, allocations: 1.597 MB / 412.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.854e-05/0.6207, allocations: 6.594 kB / 412.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001536/0.6208, allocations: 71.22 kB / 412.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-05/0.6209, allocations: 43.78 kB / 412.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002798/0.6237, allocations: 1.083 MB / 413.9 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.635, allocations: 6.608 MB / 420.5 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002236/0.6373, allocations: 0.9403 MB / 421.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007359/0.638, allocations: 302.2 kB / 421.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.986e-05/0.6381, allocations: 7.688 kB / 421.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/0.6382, allocations: 39 kB / 421.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 3.176e-06/0.6382, allocations: 7.938 kB / 421.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.005238/0.6434, allocations: 2.03 MB / 423.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.6435, allocations: 93.59 kB / 423.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002226/0.6457, allocations: 1.27 MB / 425.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.6458, allocations: 37.7 kB / 425.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007765/0.6466, allocations: 0.8927 MB / 426.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/0.6469, allocations: 248.5 kB / 426.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002944/0.6472, allocations: 195.8 kB / 426.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.6473, allocations: 353.9 kB / 426.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006199/0.6479, allocations: 305.9 kB / 427.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008636/0.6488, allocations: 0.7041 MB / 427.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001607/0.6504, allocations: 1.043 MB / 428.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.914e-06/0.6505, allocations: 4 kB / 429 MB, free: 8.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002357/0.6528, allocations: 1.168 MB / 430.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.6529, allocations: 12 kB / 430.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.6529, allocations: 15.94 kB / 430.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/0.6532, allocations: 44.78 kB / 430.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009159/0.6541, allocations: 259.9 kB / 430.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.6556, allocations: 1.398 MB / 431.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.6567, allocations: 59.88 kB / 431.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.664e-05/0.6568, allocations: 55.98 kB / 432 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001225/0.658, allocations: 0.5221 MB / 432.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008135/0.6589, allocations: 0.6738 MB / 433.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001283/0.6602, allocations: 0.9816 MB / 434.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.093e-06/0.6602, allocations: 8 kB / 434.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001896/0.6621, allocations: 1.09 MB / 435.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.6621, allocations: 12.72 kB / 435.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.6621, allocations: 16 kB / 435.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/0.6622, allocations: 40.86 kB / 435.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.663, allocations: 255.6 kB / 435.5 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001056/0.6641, allocations: 1.39 MB / 436.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009125/0.665, allocations: 47.89 kB / 437 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.529e-05/0.6651, allocations: 48 kB / 437 MB, free: 15.3 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.0003532/0.6655, allocations: 260.9 kB / 437.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001915/0.6657, allocations: 134.3 kB / 437.4 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.6672, allocations: 0.6964 MB / 438.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.6672, allocations: 8 kB / 438.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.6672, allocations: 0 / 438.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.6672, allocations: 3.984 kB / 438.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.6708, allocations: 2.138 MB / 440.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.6709, allocations: 0 / 440.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005985/0.6715, allocations: 131.8 kB / 440.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.6716, allocations: 24.84 kB / 440.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.6716, allocations: 16 kB / 440.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.6727, allocations: 1.379 MB / 441.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.6727, allocations: 0 / 441.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.6747, allocations: 1.113 MB / 442.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005363/0.6753, allocations: 275.2 kB / 443.2 MB, free: 8.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.6754, allocations: 20 kB / 443.2 MB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005696/0.676, allocations: 43.95 kB / 443.3 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.6761, allocations: 44.39 kB / 443.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.6762, allocations: 27.98 kB / 443.3 MB, free: 8.688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001252/0.6774, allocations: 0.8541 MB / 444.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6774, allocations: 0 / 444.2 MB, free: 7.832 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001856/0.6793, allocations: 0.504 MB / 444.7 MB, free: 7.328 MB / 366.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.0002999/0.6796, allocations: 123.2 kB / 444.8 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002745/0.6823, allocations: 1.457 MB / 446.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.6824, allocations: 4 kB / 446.3 MB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006885/0.6831, allocations: 421.6 kB / 446.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.6846, allocations: 343.7 kB / 447 MB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005243/0.6898, allocations: 2.802 MB / 449.8 MB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.6907, allocations: 1.233 MB / 451 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008178/0.6916, allocations: 186.5 kB / 451.2 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.6918, allocations: 79.44 kB / 451.3 MB, free: 0.582 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6918, allocations: 0 / 451.3 MB, free: 0.582 MB / 366.1 MB Notification: Performance of Templates: time 0.04016/0.732, allocations: 15.61 MB / 466.9 MB, free: 0.9375 MB / 382.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)