Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.001432/0.001432, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0006053/0.0006054, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.321, allocations: 47.59 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008584/0.3296, allocations: 6.603 MB / 333.1 MB, free: 12.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005936/0.3356, allocations: 2.606 MB / 335.7 MB, free: 10.2 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.337, allocations: 33.22 kB / 335.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.3387, allocations: 435 kB / 336.1 MB, free: 9.828 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001732/0.3405, allocations: 466.6 kB / 336.6 MB, free: 9.371 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008431/0.3413, allocations: 259.6 kB / 336.8 MB, free: 9.117 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001994/0.3433, allocations: 1.035 MB / 337.9 MB, free: 8.078 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00072/0.3441, allocations: 452.4 kB / 338.3 MB, free: 7.621 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006586/0.3447, allocations: 430.2 kB / 338.7 MB, free: 7.199 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006051/0.3454, allocations: 473.6 kB / 339.2 MB, free: 6.734 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.981e-05/0.3455, allocations: 59.98 kB / 339.2 MB, free: 6.676 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003003/0.3458, allocations: 103.9 kB / 339.3 MB, free: 6.574 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.3459, allocations: 175.2 kB / 339.5 MB, free: 6.402 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.3462, allocations: 257.1 kB / 339.8 MB, free: 6.145 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.3474, allocations: 1.278 MB / 341 MB, free: 4.863 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.736e-06/0.3474, allocations: 4 kB / 341.1 MB, free: 4.859 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3474, allocations: 0 / 341.1 MB, free: 4.859 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.3474, allocations: 0 / 341.1 MB, free: 4.859 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002351/0.3498, allocations: 1.297 MB / 342.3 MB, free: 3.508 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.3498, allocations: 8.031 kB / 342.4 MB, free: 3.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005447/0.3504, allocations: 174.3 kB / 342.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.3517, allocations: 0.7657 MB / 343.3 MB, free: 2.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.432e-05/0.3518, allocations: 74 kB / 343.4 MB, free: 2.449 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.352, allocations: 99.91 kB / 343.5 MB, free: 2.352 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.3538, allocations: 0.9419 MB / 344.4 MB, free: 1.367 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.726e-05/0.3539, allocations: 4 kB / 344.4 MB, free: 1.363 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.134e-05/0.354, allocations: 40 kB / 344.4 MB, free: 1.324 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.501e-05/0.354, allocations: 24 kB / 344.5 MB, free: 1.301 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.3552, allocations: 0.6402 MB / 345.1 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005764/0.361, allocations: 4.088 MB / 349.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.362, allocations: 455.2 kB / 349.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.3621, allocations: 8.562 kB / 349.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.3621, allocations: 46.5 kB / 349.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.3621, allocations: 0 / 349.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002549/0.3647, allocations: 1.341 MB / 351 MB, free: 10.42 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.598e-05/0.3648, allocations: 110.8 kB / 351.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.3658, allocations: 0.8354 MB / 352 MB, free: 9.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.3659, allocations: 37.64 kB / 352 MB, free: 9.387 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004567/0.3664, allocations: 0.5954 MB / 352.6 MB, free: 8.781 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.3665, allocations: 145.8 kB / 352.8 MB, free: 8.637 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.3665, allocations: 16 kB / 352.8 MB, free: 8.621 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3667, allocations: 334 kB / 353.1 MB, free: 8.289 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.367, allocations: 173.9 kB / 353.3 MB, free: 8.121 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006204/0.3676, allocations: 493.7 kB / 353.7 MB, free: 7.492 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.3681, allocations: 251.6 kB / 354 MB, free: 7.246 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3681, allocations: 4 kB / 354 MB, free: 7.242 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001241/0.3694, allocations: 0.747 MB / 354.7 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002038/0.3714, allocations: 4.089 MB / 358.8 MB, free: 2.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.3715, allocations: 8 kB / 358.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002139/0.3717, allocations: 48.78 kB / 358.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/0.3723, allocations: 167.7 kB / 359.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.3734, allocations: 1.292 MB / 360.3 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.374, allocations: 39.91 kB / 360.4 MB, free: 392 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.374, allocations: 35.98 kB / 360.4 MB, free: 356 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.374, allocations: 4 kB / 360.4 MB, free: 352 kB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009542/0.375, allocations: 0.6142 MB / 361 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.375, allocations: 16.03 kB / 361.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.794e-05/0.3751, allocations: 36.84 kB / 361.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.3756, allocations: 163.7 kB / 361.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009786/0.3766, allocations: 1.296 MB / 362.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004531/0.3771, allocations: 39.89 kB / 362.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.3772, allocations: 35.98 kB / 362.6 MB, free: 14.01 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005633/0.3777, allocations: 348.9 kB / 363 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/0.3779, allocations: 98.86 kB / 363.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008658/0.3787, allocations: 431.2 kB / 363.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3788, allocations: 8 kB / 363.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.3788, allocations: 0 / 363.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.3788, allocations: 3.984 kB / 363.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.3809, allocations: 1.351 MB / 364.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3809, allocations: 4 kB / 364.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003558/0.3813, allocations: 88.06 kB / 364.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.602e-05/0.3814, allocations: 20.86 kB / 364.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.3814, allocations: 11.98 kB / 365 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00111/0.3825, allocations: 1.28 MB / 366.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3825, allocations: 11.88 kB / 366.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001424/0.384, allocations: 0.8161 MB / 367.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.3842, allocations: 192 kB / 367.3 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.086e-05/0.3843, allocations: 12 kB / 367.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003533/0.3847, allocations: 23.98 kB / 367.3 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.3848, allocations: 31.92 kB / 367.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.3848, allocations: 15.98 kB / 367.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007468/0.3856, allocations: 0.5587 MB / 367.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3856, allocations: 0 / 367.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00124/0.3868, allocations: 348 kB / 368.2 MB, free: 8.043 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002678/0.3871, allocations: 119.1 kB / 368.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.3888, allocations: 0.9814 MB / 369.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.3888, allocations: 5.938 kB / 369.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004219/0.3892, allocations: 290.9 kB / 369.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.3903, allocations: 215.3 kB / 369.8 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.3936, allocations: 2.232 MB / 372.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008577/0.3944, allocations: 1.044 MB / 373.1 MB, free: 3.039 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000503/0.3949, allocations: 123.2 kB / 373.2 MB, free: 2.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.3952, allocations: 59.44 kB / 373.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3952, allocations: 0 / 373.3 MB, free: 2.855 MB / 302.1 MB Notification: Performance of Templates: time 0.019/0.4142, allocations: 9.195 MB / 382.5 MB, free: 9.648 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) Environment - environmentSimulation: