Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001414/0.001414, allocations: 86.05 kB / 16.31 MB, free: 6.453 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.001767/0.001767, allocations: 175.6 kB / 17.2 MB, free: 6.328 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.844/1.844, allocations: 205.4 MB / 223.4 MB, free: 5.586 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.0004757/0.0004759, allocations: 11.98 kB / 280.2 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2668, allocations: 47.58 MB / 327.7 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009443/0.2763, allocations: 7.163 MB / 334.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007688/0.2841, allocations: 2.569 MB / 337.5 MB, free: 9.691 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001986/0.2861, allocations: 30.75 kB / 337.5 MB, free: 9.684 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00198/0.2881, allocations: 447.9 kB / 337.9 MB, free: 9.289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.2899, allocations: 345.4 kB / 338.3 MB, free: 8.949 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009785/0.2908, allocations: 247.7 kB / 338.5 MB, free: 8.707 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001909/0.2928, allocations: 1.339 MB / 339.9 MB, free: 7.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008379/0.2936, allocations: 452.4 kB / 340.3 MB, free: 6.902 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007411/0.2944, allocations: 449.9 kB / 340.7 MB, free: 6.461 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.295, allocations: 497.5 kB / 341.2 MB, free: 5.973 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.2951, allocations: 64 kB / 341.3 MB, free: 5.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002765/0.2954, allocations: 95.97 kB / 341.4 MB, free: 5.816 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2956, allocations: 195 kB / 341.6 MB, free: 5.625 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.2958, allocations: 257 kB / 341.8 MB, free: 5.367 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.2971, allocations: 1.32 MB / 343.1 MB, free: 4.043 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2971, allocations: 0 / 343.1 MB, free: 4.043 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2971, allocations: 0 / 343.1 MB, free: 4.043 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.2971, allocations: 4 kB / 343.1 MB, free: 4.039 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.002257/0.2994, allocations: 1.32 MB / 344.5 MB, free: 2.664 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.2995, allocations: 16.02 kB / 344.5 MB, free: 2.648 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006671/0.3001, allocations: 186.3 kB / 344.7 MB, free: 2.465 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.3014, allocations: 0.7542 MB / 345.4 MB, free: 1.668 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.617e-05/0.3015, allocations: 78 kB / 345.5 MB, free: 1.594 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/0.3017, allocations: 96 kB / 345.6 MB, free: 1.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.3032, allocations: 0.9536 MB / 346.5 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.3032, allocations: 7.906 kB / 346.5 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/0.3033, allocations: 40 kB / 346.6 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.3033, allocations: 24 kB / 346.6 MB, free: 444 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.3046, allocations: 0.6441 MB / 347.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005725/0.3104, allocations: 4.127 MB / 351.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.3115, allocations: 463.2 kB / 351.8 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.3118, allocations: 165.4 kB / 352 MB, free: 10.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.3118, allocations: 11.73 kB / 352 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.3119, allocations: 38.56 kB / 352 MB, free: 10.76 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.124e-06/0.3119, allocations: 0 / 352 MB, free: 10.76 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002642/0.3145, allocations: 1.357 MB / 353.4 MB, free: 9.328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.647e-05/0.3146, allocations: 110.8 kB / 353.5 MB, free: 9.195 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.3161, allocations: 0.8862 MB / 354.4 MB, free: 8.285 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.3162, allocations: 37.7 kB / 354.4 MB, free: 8.242 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/0.3166, allocations: 0.5914 MB / 355 MB, free: 7.641 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.3168, allocations: 153.8 kB / 355.2 MB, free: 7.488 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.452e-05/0.3168, allocations: 16 kB / 355.2 MB, free: 7.473 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3169, allocations: 334 kB / 355.5 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.3172, allocations: 165.9 kB / 355.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006267/0.3179, allocations: 0.4977 MB / 356.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005508/0.3184, allocations: 239.7 kB / 356.4 MB, free: 6.102 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3184, allocations: 8 kB / 356.4 MB, free: 6.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001408/0.3199, allocations: 0.7546 MB / 357.2 MB, free: 5.328 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003797/0.3202, allocations: 392.9 kB / 357.6 MB, free: 4.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.3203, allocations: 8 kB / 357.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002172/0.3205, allocations: 44.84 kB / 357.6 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/0.321, allocations: 171.7 kB / 357.8 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3223, allocations: 1.284 MB / 359.1 MB, free: 3.152 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005984/0.3229, allocations: 43.89 kB / 359.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.3229, allocations: 39.88 kB / 359.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/0.3229, allocations: 7.953 kB / 359.1 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009563/0.3239, allocations: 0.614 MB / 359.8 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.3239, allocations: 15.98 kB / 359.8 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-05/0.324, allocations: 32.86 kB / 359.8 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005037/0.3245, allocations: 163.7 kB / 360 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008635/0.3254, allocations: 1.296 MB / 361.3 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/0.3259, allocations: 35.91 kB / 361.3 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.3259, allocations: 32 kB / 361.3 MB, free: 0.7422 MB / 286.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.0004824/0.3264, allocations: 349 kB / 361.7 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3266, allocations: 90.88 kB / 361.8 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008498/0.3274, allocations: 447.1 kB / 362.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3274, allocations: 4 kB / 362.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.3274, allocations: 0 / 362.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.3275, allocations: 3.984 kB / 362.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.3294, allocations: 1.39 MB / 363.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3294, allocations: 4.172 kB / 363.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/0.3297, allocations: 87.89 kB / 363.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.338e-05/0.3298, allocations: 16.86 kB / 363.7 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.3298, allocations: 15.98 kB / 363.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008144/0.3307, allocations: 1.268 MB / 365 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3307, allocations: 0 / 365 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.3317, allocations: 0.7332 MB / 365.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.332, allocations: 204 kB / 365.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.079e-05/0.3321, allocations: 12.06 kB / 365.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.3324, allocations: 35.98 kB / 366 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.3325, allocations: 31.89 kB / 366 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.3325, allocations: 8 kB / 366 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007787/0.3333, allocations: 0.6094 MB / 366.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3333, allocations: 0 / 366.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001138/0.3345, allocations: 352 kB / 367 MB, free: 10.81 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.000226/0.3347, allocations: 123.2 kB / 367.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.3363, allocations: 0.9714 MB / 368 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3363, allocations: 12.31 kB / 368.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.3367, allocations: 286.5 kB / 368.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.3379, allocations: 227.8 kB / 368.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003181/0.3411, allocations: 2.228 MB / 370.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.3417, allocations: 1.025 MB / 371.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005388/0.3422, allocations: 123.4 kB / 371.9 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.3424, allocations: 67.38 kB / 372 MB, free: 5.629 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3424, allocations: 0 / 372 MB, free: 5.629 MB / 302.1 MB Notification: Performance of Templates: time 0.01985/0.3623, allocations: 9.765 MB / 381.8 MB, free: 11.85 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)