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.001298/0.001298, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001542/0.001542, allocations: 193.7 kB / 16.14 MB, free: 6.66 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.787/1.787, allocations: 205.1 MB / 222 MB, free: 4.738 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.001279/0.001279, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4612/0.4625, allocations: 46.62 MB / 324.7 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0136/0.4762, allocations: 8.112 MB / 332.8 MB, free: 11.55 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009052/0.4853, allocations: 2.71 MB / 335.5 MB, free: 9.305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003663/0.4892, allocations: 31.19 kB / 335.5 MB, free: 9.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003389/0.4926, allocations: 473.4 kB / 336 MB, free: 8.816 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003989/0.4966, allocations: 377.3 kB / 336.4 MB, free: 8.445 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.4982, allocations: 311.7 kB / 336.7 MB, free: 8.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004107/0.5023, allocations: 1.421 MB / 338.1 MB, free: 6.711 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.5037, allocations: 0.5291 MB / 338.6 MB, free: 6.156 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001579/0.5053, allocations: 0.4938 MB / 339.1 MB, free: 5.66 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009572/0.5062, allocations: 0.5714 MB / 339.7 MB, free: 5.086 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001781/0.5064, allocations: 84 kB / 339.8 MB, free: 5.004 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005024/0.5069, allocations: 124 kB / 339.9 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002547/0.5072, allocations: 234.8 kB / 340.1 MB, free: 4.652 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009854/0.5082, allocations: 0.6178 MB / 340.7 MB, free: 4.031 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002295/0.5105, allocations: 1.651 MB / 342.4 MB, free: 2.375 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.335e-05/0.5105, allocations: 0 / 342.4 MB, free: 2.375 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5105, allocations: 0 / 342.4 MB, free: 2.375 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.5106, allocations: 0 / 342.4 MB, free: 2.375 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.003712/0.5143, allocations: 1.507 MB / 343.9 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.862e-05/0.5144, allocations: 8.031 kB / 343.9 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007857/0.5152, allocations: 191.2 kB / 344.1 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.517, allocations: 0.7822 MB / 344.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.489e-05/0.5171, allocations: 78.12 kB / 344.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001832/0.5173, allocations: 99.91 kB / 345 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001949/0.5193, allocations: 0.9536 MB / 346 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.303e-05/0.5193, allocations: 3.906 kB / 346 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.5194, allocations: 40 kB / 346 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.145e-05/0.5195, allocations: 24 kB / 346.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.5209, allocations: 0.6363 MB / 346.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007751/0.5286, allocations: 4.131 MB / 350.8 MB, free: 9.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.5299, allocations: 431.8 kB / 351.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.5302, allocations: 161.4 kB / 351.4 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.401e-05/0.5303, allocations: 15.69 kB / 351.4 MB, free: 8.961 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.5304, allocations: 34.56 kB / 351.5 MB, free: 8.918 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 4.057e-06/0.5304, allocations: 0 / 351.5 MB, free: 8.918 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.003492/0.5339, allocations: 1.321 MB / 352.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.534, allocations: 106.8 kB / 352.9 MB, free: 7.395 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.5356, allocations: 0.9017 MB / 353.8 MB, free: 6.469 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.5357, allocations: 33.7 kB / 353.8 MB, free: 6.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007532/0.5364, allocations: 0.5954 MB / 354.4 MB, free: 5.824 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.5366, allocations: 142 kB / 354.6 MB, free: 5.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/0.5369, allocations: 138.5 kB / 354.7 MB, free: 5.543 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002998/0.5372, allocations: 337.9 kB / 355 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.5376, allocations: 172.8 kB / 355.2 MB, free: 5.035 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007625/0.5384, allocations: 497.7 kB / 355.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.5396, allocations: 0.6714 MB / 356.3 MB, free: 3.586 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.5396, allocations: 8 kB / 356.4 MB, free: 3.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001646/0.5413, allocations: 0.7545 MB / 357.1 MB, free: 2.812 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.5413, allocations: 8 kB / 357.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.733e-05/0.5414, allocations: 12 kB / 357.1 MB, free: 2.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.5416, allocations: 28.84 kB / 357.2 MB, free: 2.762 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006896/0.5423, allocations: 175.7 kB / 357.3 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.5438, allocations: 1.292 MB / 358.6 MB, free: 1.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008254/0.5447, allocations: 40.05 kB / 358.7 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.5448, allocations: 36 kB / 358.7 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008662/0.5456, allocations: 350.1 kB / 359 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006352/0.5463, allocations: 485.7 kB / 359.5 MB, free: 128 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009555/0.5473, allocations: 0.6676 MB / 360.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.685e-06/0.5473, allocations: 4 kB / 360.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001327/0.5486, allocations: 0.7196 MB / 360.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.5486, allocations: 12 kB / 360.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.5487, allocations: 8 kB / 360.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001338/0.5488, allocations: 33.5 kB / 361 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005605/0.5494, allocations: 167.8 kB / 361.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.5507, allocations: 1.292 MB / 362.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007719/0.5515, allocations: 39.89 kB / 362.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.505e-05/0.5515, allocations: 32 kB / 362.5 MB, free: 12.86 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 (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.000357/0.5519, allocations: 232.5 kB / 362.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.5521, allocations: 90.88 kB / 362.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.5531, allocations: 443.2 kB / 363.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.5531, allocations: 4 kB / 363.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5531, allocations: 0 / 363.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.5532, allocations: 0 / 363.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002385/0.5555, allocations: 1.386 MB / 364.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/0.5556, allocations: 7.938 kB / 364.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.556, allocations: 72.12 kB / 364.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.5561, allocations: 28.84 kB / 364.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.684e-05/0.5562, allocations: 19.94 kB / 364.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001273/0.5575, allocations: 1.276 MB / 366 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.5575, allocations: 7.938 kB / 366 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.5588, allocations: 0.7131 MB / 366.7 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.5593, allocations: 204 kB / 366.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.5594, allocations: 12 kB / 366.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004227/0.5599, allocations: 19.98 kB / 367 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.56, allocations: 31.91 kB / 367 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.56, allocations: 12 kB / 367 MB, free: 8.035 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.5611, allocations: 0.6094 MB / 367.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5611, allocations: 0 / 367.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001801/0.5629, allocations: 352 kB / 368 MB, free: 7.07 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 (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.000348/0.5633, allocations: 115.2 kB / 368.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.5655, allocations: 0.974 MB / 369.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/0.5656, allocations: 0 / 369.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.5661, allocations: 283 kB / 369.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001544/0.5677, allocations: 231.5 kB / 369.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004861/0.5725, allocations: 2.26 MB / 371.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009639/0.5736, allocations: 1.025 MB / 372.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008243/0.5744, allocations: 135.4 kB / 373 MB, free: 1.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/0.5746, allocations: 55.44 kB / 373 MB, free: 1.875 MB / 302.1 MB Notification: Performance of SimCode: time 1.693e-06/0.5746, allocations: 0 / 373 MB, free: 1.875 MB / 302.1 MB Notification: Performance of Templates: time 0.03045/0.605, allocations: 10.15 MB / 383.2 MB, free: 7.723 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (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)