Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00091/0.00091, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001037/0.001037, allocations: 172.7 kB / 15.95 MB, free: 208 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.669/1.669, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005421/0.0005424, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2871, allocations: 47.58 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01499/0.3021, allocations: 12.82 MB / 339.3 MB, free: 6.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.3133, allocations: 5.017 MB / 344.3 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.3165, allocations: 63.75 kB / 344.4 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002326/0.3189, allocations: 0.7534 MB / 345.1 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001667/0.3206, allocations: 464.5 kB / 345.6 MB, free: 364 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009827/0.3216, allocations: 371.6 kB / 345.9 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002533/0.3241, allocations: 2.132 MB / 348.1 MB, free: 13.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.3253, allocations: 0.8329 MB / 348.9 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001021/0.3264, allocations: 0.6375 MB / 349.5 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008703/0.3272, allocations: 0.7383 MB / 350.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001641/0.3274, allocations: 96 kB / 350.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003737/0.3278, allocations: 140 kB / 350.5 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.3281, allocations: 310.5 kB / 350.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003706/0.3284, allocations: 388.6 kB / 351.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002102/0.3306, allocations: 2.357 MB / 353.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3306, allocations: 0 / 353.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.3306, allocations: 0 / 353.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.209e-05/0.3306, allocations: 3.938 kB / 353.5 MB, free: 8.316 MB / 286.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.003258/0.3339, allocations: 1.943 MB / 355.5 MB, free: 6.316 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3339, allocations: 8.031 kB / 355.5 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006883/0.3346, allocations: 277.3 kB / 355.8 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.3363, allocations: 1.095 MB / 356.9 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.3365, allocations: 127.3 kB / 357 MB, free: 4.758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.3367, allocations: 167.9 kB / 357.2 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/0.3396, allocations: 1.598 MB / 358.8 MB, free: 2.934 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/0.3396, allocations: 7.938 kB / 358.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.3397, allocations: 68 kB / 358.8 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.321e-05/0.3398, allocations: 40 kB / 358.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002081/0.3419, allocations: 1.109 MB / 360 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008419/0.3503, allocations: 6.709 MB / 366.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.3521, allocations: 1.003 MB / 367.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005956/0.3527, allocations: 330.3 kB / 368 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.3528, allocations: 4.562 kB / 368 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.428e-05/0.3528, allocations: 43.12 kB / 368.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 4.669e-06/0.3528, allocations: 0 / 368.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004411/0.3572, allocations: 2.147 MB / 370.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.3573, allocations: 85.61 kB / 370.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00171/0.359, allocations: 1.262 MB / 371.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.3591, allocations: 37.7 kB / 371.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006216/0.3597, allocations: 0.8922 MB / 372.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/0.3599, allocations: 244.5 kB / 372.7 MB, free: 4.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.924e-05/0.36, allocations: 20 kB / 372.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.3601, allocations: 349.9 kB / 373.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.3607, allocations: 314.4 kB / 373.4 MB, free: 3.785 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008755/0.3616, allocations: 0.7197 MB / 374.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008194/0.3624, allocations: 423 kB / 374.5 MB, free: 2.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3625, allocations: 4 kB / 374.5 MB, free: 2.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002019/0.3645, allocations: 1.188 MB / 375.7 MB, free: 1.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003683/0.3649, allocations: 0.4928 MB / 376.2 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.3649, allocations: 12 kB / 376.2 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001814/0.3651, allocations: 44.84 kB / 376.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008691/0.366, allocations: 271.6 kB / 376.5 MB, free: 256 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.3673, allocations: 1.296 MB / 377.8 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007361/0.368, allocations: 67.97 kB / 377.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/0.3681, allocations: 56 kB / 377.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.3681, allocations: 4 kB / 377.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00159/0.3697, allocations: 0.9495 MB / 378.9 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.3697, allocations: 15.95 kB / 378.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-05/0.3698, allocations: 44.78 kB / 379 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.3706, allocations: 256.1 kB / 379.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009212/0.3715, allocations: 1.296 MB / 380.5 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.3722, allocations: 60.08 kB / 380.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.687e-05/0.3722, allocations: 48 kB / 380.6 MB, free: 11.9 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 (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.0007566/0.373, allocations: 428.8 kB / 381 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.3732, allocations: 138.3 kB / 381.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001381/0.3746, allocations: 0.7316 MB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3746, allocations: 12 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.3746, allocations: 0 / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.3746, allocations: 3.984 kB / 381.9 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.378, allocations: 2.182 MB / 384.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.3781, allocations: 3.938 kB / 384.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006834/0.3787, allocations: 144 kB / 384.2 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-05/0.3788, allocations: 24.84 kB / 384.3 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.917e-05/0.3789, allocations: 16 kB / 384.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.3799, allocations: 1.284 MB / 385.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3799, allocations: 4 kB / 385.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.3818, allocations: 1.17 MB / 386.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004175/0.3822, allocations: 271.3 kB / 387 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.3824, allocations: 16 kB / 387 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005617/0.383, allocations: 63.95 kB / 387.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3831, allocations: 52.39 kB / 387.1 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.736e-05/0.3831, allocations: 20 kB / 387.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001378/0.3845, allocations: 0.8424 MB / 388 MB, free: 4.199 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3845, allocations: 0 / 388 MB, free: 4.199 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001661/0.3862, allocations: 0.5039 MB / 388.5 MB, free: 3.695 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 (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.0002864/0.3865, allocations: 131.1 kB / 388.6 MB, free: 3.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.3891, allocations: 1.478 MB / 390.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.3891, allocations: 0 / 390.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007154/0.3898, allocations: 431.6 kB / 390.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.3913, allocations: 304.9 kB / 390.8 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005486/0.3968, allocations: 3.486 MB / 394.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009561/0.3978, allocations: 1.237 MB / 395.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007791/0.3986, allocations: 178.5 kB / 395.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.3988, allocations: 83.44 kB / 395.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3988, allocations: 0 / 395.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of Templates: time 0.02707/0.4259, allocations: 13.73 MB / 409.5 MB, free: 14.5 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)