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.001502/0.001502, allocations: 105.6 kB / 17.06 MB, free: 6.023 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.001653/0.001653, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.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.001717/0.001717, allocations: 59.91 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1496, allocations: 46.6 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.3487/0.4984, allocations: 8.142 MB / 382.6 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007463/0.5059, allocations: 2.743 MB / 385.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002259/0.5083, allocations: 31.47 kB / 385.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.5107, allocations: 0.5318 MB / 385.9 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002302/0.513, allocations: 437.4 kB / 386.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.5141, allocations: 360.1 kB / 386.7 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002512/0.5166, allocations: 1.501 MB / 388.2 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.5177, allocations: 0.6185 MB / 388.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.5188, allocations: 0.5578 MB / 389.4 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007733/0.5196, allocations: 0.6037 MB / 390 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.5198, allocations: 139.8 kB / 390.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004505/0.5202, allocations: 179.7 kB / 390.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002575/0.5205, allocations: 289.8 kB / 390.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006579/0.5212, allocations: 0.6665 MB / 391.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002529/0.5237, allocations: 1.727 MB / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.5237, allocations: 1.281 kB / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5237, allocations: 0 / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.549e-05/0.5238, allocations: 0 / 393 MB, free: 3.906 MB / 318.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.002887/0.5267, allocations: 1.512 MB / 394.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.5267, allocations: 13.91 kB / 394.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007362/0.5275, allocations: 186.2 kB / 394.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.5289, allocations: 0.7973 MB / 395.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.672e-05/0.529, allocations: 76.12 kB / 395.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.5292, allocations: 104.8 kB / 395.7 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.5311, allocations: 0.9492 MB / 396.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.928e-05/0.5312, allocations: 2.984 kB / 396.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.5312, allocations: 41 kB / 396.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.178e-05/0.5313, allocations: 24.16 kB / 396.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.5326, allocations: 0.6396 MB / 397.3 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005847/0.5385, allocations: 4.092 MB / 401.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.5396, allocations: 419 kB / 401.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.5399, allocations: 164 kB / 402 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.5399, allocations: 12.11 kB / 402 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.54, allocations: 41.05 kB / 402 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.354e-06/0.54, allocations: 1.375 kB / 402 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002868/0.5429, allocations: 1.325 MB / 403.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000101/0.543, allocations: 106.9 kB / 403.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/0.5444, allocations: 0.9023 MB / 404.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.5444, allocations: 32.39 kB / 404.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005319/0.545, allocations: 0.5861 MB / 405 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.5451, allocations: 145.8 kB / 405.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002364/0.5454, allocations: 139.7 kB / 405.3 MB, free: 12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.5455, allocations: 332 kB / 405.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.5459, allocations: 175.6 kB / 405.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.5466, allocations: 493.2 kB / 406.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.5476, allocations: 0.6835 MB / 406.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.5476, allocations: 7.156 kB / 406.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001378/0.549, allocations: 0.7508 MB / 407.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.549, allocations: 9.062 kB / 407.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.5491, allocations: 10.44 kB / 407.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.5493, allocations: 39.53 kB / 407.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.5499, allocations: 167 kB / 407.9 MB, free: 9.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/0.5513, allocations: 1.393 MB / 409.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007088/0.552, allocations: 39.23 kB / 409.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.5521, allocations: 32.91 kB / 409.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007321/0.5528, allocations: 348.3 kB / 409.7 MB, free: 8.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006056/0.5535, allocations: 482.1 kB / 410.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009215/0.5544, allocations: 0.6758 MB / 410.9 MB, free: 7.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.207e-06/0.5544, allocations: 7.547 kB / 410.9 MB, free: 7.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001219/0.5556, allocations: 0.7215 MB / 411.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.5557, allocations: 9.531 kB / 411.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5557, allocations: 10.75 kB / 411.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.88e-05/0.5558, allocations: 30.83 kB / 411.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.5564, allocations: 176 kB / 411.8 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.5575, allocations: 1.381 MB / 413.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007173/0.5583, allocations: 33.11 kB / 413.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/0.5583, allocations: 41.19 kB / 413.3 MB, free: 5.27 MB / 334.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.5586, allocations: 241.9 kB / 413.5 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.5588, allocations: 94.69 kB / 413.6 MB, free: 4.988 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009752/0.5598, allocations: 436.1 kB / 414 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.473e-06/0.5598, allocations: 5.188 kB / 414 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5598, allocations: 0 / 414 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5598, allocations: 3.938 kB / 414 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.5621, allocations: 1.375 MB / 415.4 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5622, allocations: 6.312 kB / 415.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.5625, allocations: 77.41 kB / 415.5 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.5626, allocations: 23.5 kB / 415.5 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.949e-05/0.5627, allocations: 13.69 kB / 415.5 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001053/0.5637, allocations: 1.376 MB / 416.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5637, allocations: 1.812 kB / 416.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.5649, allocations: 0.7185 MB / 417.6 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003176/0.5652, allocations: 208.1 kB / 417.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.5653, allocations: 12.81 kB / 417.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.5657, allocations: 19.17 kB / 417.8 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.5658, allocations: 28.77 kB / 417.9 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.5658, allocations: 17 kB / 417.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008919/0.5667, allocations: 0.6064 MB / 418.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5667, allocations: 3.938 kB / 418.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001458/0.5682, allocations: 347.5 kB / 418.8 MB, free: 1.113 MB / 334.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002665/0.5685, allocations: 130.8 kB / 419 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001934/0.5704, allocations: 0.9771 MB / 419.9 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.5704, allocations: 1.312 kB / 419.9 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.5709, allocations: 286.2 kB / 420.2 MB, free: 232 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/0.5721, allocations: 246.1 kB / 420.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.5754, allocations: 1.815 MB / 422.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008184/0.5762, allocations: 1.025 MB / 423.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004997/0.5767, allocations: 123.4 kB / 423.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.5769, allocations: 55.44 kB / 423.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5769, allocations: 0 / 423.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of Templates: time 0.02528/0.6022, allocations: 11.04 MB / 434.5 MB, free: 1.832 MB / 350.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)