Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 93.05 kB / 16.3 MB, free: 5.996 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.001479/0.001479, allocations: 184.6 kB / 17.2 MB, free: 5.914 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.875/1.875, allocations: 205.4 MB / 223.4 MB, free: 5.531 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.0005104/0.0005103, allocations: 12 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3364, allocations: 47.58 MB / 327.7 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01473/0.3512, allocations: 11.34 MB / 339 MB, free: 8.156 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01257/0.3638, allocations: 4.995 MB / 344 MB, free: 3.152 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004133/0.368, allocations: 51.81 kB / 344.1 MB, free: 3.102 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003948/0.372, allocations: 0.8238 MB / 344.9 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005301/0.3774, allocations: 0.8529 MB / 345.8 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.38, allocations: 0.5149 MB / 346.3 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005232/0.3853, allocations: 1.453 MB / 347.7 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.387, allocations: 0.7601 MB / 348.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.3883, allocations: 0.5795 MB / 349.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008918/0.3892, allocations: 0.6686 MB / 349.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.3894, allocations: 91.94 kB / 349.8 MB, free: 13.31 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003693/0.3897, allocations: 136 kB / 350 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002442/0.39, allocations: 274.8 kB / 350.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003992/0.3904, allocations: 356.8 kB / 350.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002477/0.3929, allocations: 2.154 MB / 352.7 MB, free: 10.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3929, allocations: 8 kB / 352.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.03e-06/0.3929, allocations: 0 / 352.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.811e-05/0.393, allocations: 0 / 352.7 MB, free: 10.38 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004424/0.3974, allocations: 1.751 MB / 354.5 MB, free: 8.574 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.3975, allocations: 8.031 kB / 354.5 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008166/0.3983, allocations: 253.5 kB / 354.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.4003, allocations: 1.008 MB / 355.8 MB, free: 7.266 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.4005, allocations: 111 kB / 355.9 MB, free: 7.156 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00022/0.4007, allocations: 151.9 kB / 356 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002865/0.4036, allocations: 1.415 MB / 357.4 MB, free: 5.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.376e-05/0.4036, allocations: 3.984 kB / 357.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.4038, allocations: 64 kB / 357.5 MB, free: 5.469 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.77e-05/0.4038, allocations: 36 kB / 357.5 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/0.4062, allocations: 0.9634 MB / 358.5 MB, free: 4.465 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.4162, allocations: 6.168 MB / 364.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.4175, allocations: 0.6598 MB / 365.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.4176, allocations: 4.438 kB / 365.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.4176, allocations: 39 kB / 365.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 3.236e-06/0.4176, allocations: 0 / 365.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003547/0.4212, allocations: 1.762 MB / 367.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.4213, allocations: 85.5 kB / 367.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.4229, allocations: 1.1 MB / 368.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.423, allocations: 37.7 kB / 368.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006418/0.4236, allocations: 0.8169 MB / 369.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.4238, allocations: 197.2 kB / 369.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.4239, allocations: 20 kB / 369.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.424, allocations: 345.9 kB / 369.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004968/0.4246, allocations: 241.9 kB / 369.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009085/0.4255, allocations: 0.6251 MB / 370.6 MB, free: 7.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.4262, allocations: 354 kB / 370.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.4262, allocations: 4 kB / 370.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002209/0.4284, allocations: 1.006 MB / 371.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002791/0.4312, allocations: 5.145 MB / 377.1 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.4313, allocations: 12 kB / 377.1 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002304/0.4315, allocations: 44.84 kB / 377.1 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/0.4323, allocations: 235.6 kB / 377.4 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.4336, allocations: 1.299 MB / 378.7 MB, free: 15.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.4346, allocations: 55.83 kB / 378.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.4e-05/0.4347, allocations: 44 kB / 378.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4347, allocations: 4 kB / 378.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001484/0.4362, allocations: 0.8109 MB / 379.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.4362, allocations: 15.95 kB / 379.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.4363, allocations: 48.72 kB / 379.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006953/0.4371, allocations: 220.1 kB / 379.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.4382, allocations: 1.292 MB / 381.1 MB, free: 12.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009951/0.4392, allocations: 40.25 kB / 381.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.4393, allocations: 48 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (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 (122): * Single equations (assignments): 121 * 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.0009668/0.4403, allocations: 412.8 kB / 381.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/0.4405, allocations: 122.4 kB / 381.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.4417, allocations: 0.5791 MB / 382.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.4417, allocations: 4 kB / 382.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.4417, allocations: 0 / 382.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.4417, allocations: 7.984 kB / 382.3 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003316/0.445, allocations: 1.867 MB / 384.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.802e-06/0.4451, allocations: 4 kB / 384.2 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.4456, allocations: 111.8 kB / 384.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001279/0.4457, allocations: 28.8 kB / 384.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.4458, allocations: 20.22 kB / 384.4 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.4468, allocations: 1.276 MB / 385.6 MB, free: 7.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.4468, allocations: 4.281 kB / 385.6 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.4484, allocations: 1.029 MB / 386.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004298/0.4488, allocations: 243.6 kB / 386.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.4489, allocations: 12 kB / 386.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.4494, allocations: 39.97 kB / 387 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.951e-05/0.4495, allocations: 44.38 kB / 387 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/0.4496, allocations: 19.98 kB / 387 MB, free: 6.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.4508, allocations: 0.7401 MB / 387.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4508, allocations: 0 / 387.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001981/0.4528, allocations: 468 kB / 388.2 MB, free: 5.035 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,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,loadTorque.phi) * 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 (53): * Single equations (assignments): 52 * 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.0003041/0.4531, allocations: 131 kB / 388.4 MB, free: 4.895 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.4555, allocations: 1.254 MB / 389.6 MB, free: 3.617 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.4555, allocations: 3.938 kB / 389.6 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005451/0.456, allocations: 361.7 kB / 390 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001392/0.4574, allocations: 253 kB / 390.2 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004941/0.4624, allocations: 3.075 MB / 393.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009386/0.4634, allocations: 1.204 MB / 394.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008401/0.4642, allocations: 165.2 kB / 394.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.4645, allocations: 75.44 kB / 394.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4645, allocations: 0 / 394.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Templates: time 0.02808/0.4926, allocations: 11.88 MB / 406.6 MB, free: 2.496 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) Environment - environmentSimulation: