Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001126/0.001127, allocations: 99.47 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.001077/0.001077, allocations: 177.3 kB / 15.94 MB, free: 228 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.887/1.887, allocations: 205.4 MB / 222.1 MB, free: 5.539 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.0005912/0.0005913, allocations: 12 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3768, allocations: 47.58 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01025/0.3871, allocations: 6.603 MB / 333.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007397/0.3945, allocations: 2.598 MB / 335.7 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.3961, allocations: 29.59 kB / 335.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.3977, allocations: 444.5 kB / 336.1 MB, free: 9.812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.3995, allocations: 466.6 kB / 336.6 MB, free: 9.355 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009116/0.4005, allocations: 255.6 kB / 336.8 MB, free: 9.105 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002422/0.4029, allocations: 1.046 MB / 337.9 MB, free: 8.055 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007853/0.4037, allocations: 444.4 kB / 338.3 MB, free: 7.605 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000747/0.4045, allocations: 422.2 kB / 338.7 MB, free: 7.191 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000595/0.4051, allocations: 477.6 kB / 339.2 MB, free: 6.723 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.4052, allocations: 60 kB / 339.2 MB, free: 6.664 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003381/0.4055, allocations: 99.91 kB / 339.3 MB, free: 6.566 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001611/0.4057, allocations: 183.1 kB / 339.5 MB, free: 6.387 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.4059, allocations: 257.1 kB / 339.8 MB, free: 6.129 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.4073, allocations: 1.274 MB / 341 MB, free: 4.852 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4073, allocations: 0 / 341 MB, free: 4.852 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4073, allocations: 4 kB / 341 MB, free: 4.848 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.962e-05/0.4073, allocations: 0 / 341 MB, free: 4.848 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.002362/0.4097, allocations: 1.3 MB / 342.3 MB, free: 3.492 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.4097, allocations: 12.03 kB / 342.4 MB, free: 3.48 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005262/0.4103, allocations: 174.3 kB / 342.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/0.4115, allocations: 0.7541 MB / 343.3 MB, free: 2.512 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.118e-05/0.4116, allocations: 74 kB / 343.4 MB, free: 2.441 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.4117, allocations: 103.9 kB / 343.5 MB, free: 2.34 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.4134, allocations: 0.9419 MB / 344.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.4134, allocations: 8 kB / 344.4 MB, free: 1.348 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.4135, allocations: 36 kB / 344.4 MB, free: 1.312 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.4135, allocations: 24 kB / 344.5 MB, free: 1.289 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.4148, allocations: 0.6441 MB / 345.1 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005488/0.4203, allocations: 4.088 MB / 349.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.4213, allocations: 463.2 kB / 349.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.4214, allocations: 8.562 kB / 349.7 MB, free: 11.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.4214, allocations: 42.55 kB / 349.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.4214, allocations: 0 / 349.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002607/0.424, allocations: 1.341 MB / 351 MB, free: 10.4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.704e-05/0.4241, allocations: 106.8 kB / 351.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.4253, allocations: 0.8393 MB / 352 MB, free: 9.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.4254, allocations: 37.64 kB / 352 MB, free: 9.367 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.426, allocations: 0.5914 MB / 352.6 MB, free: 8.766 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4261, allocations: 149.8 kB / 352.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.507e-05/0.4262, allocations: 16 kB / 352.8 MB, free: 8.602 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.4264, allocations: 333.9 kB / 353.1 MB, free: 8.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.4267, allocations: 173.9 kB / 353.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006208/0.4273, allocations: 485.7 kB / 353.7 MB, free: 7.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004337/0.4278, allocations: 255.7 kB / 354 MB, free: 7.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4278, allocations: 0 / 354 MB, free: 7.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001301/0.4291, allocations: 0.751 MB / 354.7 MB, free: 6.469 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00236/0.4315, allocations: 4.092 MB / 358.8 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.4315, allocations: 8 kB / 358.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.4317, allocations: 40.78 kB / 358.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005884/0.4323, allocations: 175.7 kB / 359.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/0.4336, allocations: 1.3 MB / 360.4 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006229/0.4342, allocations: 43.89 kB / 360.4 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.4343, allocations: 36 kB / 360.4 MB, free: 324 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/0.4343, allocations: 4 kB / 360.4 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000947/0.4353, allocations: 0.6094 MB / 361 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.4353, allocations: 12.81 kB / 361.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.425e-05/0.4354, allocations: 40.84 kB / 361.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004957/0.4359, allocations: 163.7 kB / 361.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00097/0.4369, allocations: 1.296 MB / 362.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005537/0.4374, allocations: 35.91 kB / 362.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.686e-05/0.4375, allocations: 32 kB / 362.6 MB, free: 13.99 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.0005781/0.4381, allocations: 348.7 kB / 363 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.4382, allocations: 90.88 kB / 363.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009348/0.4392, allocations: 439.4 kB / 363.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4392, allocations: 4 kB / 363.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.4392, allocations: 0 / 363.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4392, allocations: 7.984 kB / 363.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.4414, allocations: 1.347 MB / 364.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4414, allocations: 48 / 364.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/0.4417, allocations: 91.83 kB / 364.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.884e-05/0.4418, allocations: 29.06 kB / 365 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.4419, allocations: 11.94 kB / 365 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000853/0.4427, allocations: 1.28 MB / 366.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.4427, allocations: 7.969 kB / 366.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.4439, allocations: 0.8161 MB / 367.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.4442, allocations: 196 kB / 367.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.334e-05/0.4443, allocations: 12 kB / 367.3 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003486/0.4446, allocations: 19.98 kB / 367.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.974e-05/0.4447, allocations: 31.92 kB / 367.3 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.4447, allocations: 15.98 kB / 367.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000832/0.4456, allocations: 0.5587 MB / 367.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4456, allocations: 0 / 367.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00136/0.447, allocations: 344 kB / 368.2 MB, free: 8.027 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.0003086/0.4473, allocations: 119.1 kB / 368.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.449, allocations: 0.9861 MB / 369.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.449, allocations: 0 / 369.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.4495, allocations: 291.9 kB / 369.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.4505, allocations: 223.4 kB / 369.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003586/0.4541, allocations: 2.232 MB / 372.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006722/0.4548, allocations: 1.04 MB / 373.1 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005619/0.4554, allocations: 123.2 kB / 373.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.4555, allocations: 55.44 kB / 373.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4556, allocations: 0 / 373.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of Templates: time 0.0208/0.4764, allocations: 9.203 MB / 382.5 MB, free: 9.625 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) Environment - environmentSimulation: