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.0008819/0.0008818, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007143/0.007143, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.943/1.943, allocations: 205.4 MB / 222.5 MB, free: 5.793 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.0005097/0.0005102, allocations: 8 kB / 279.5 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3711, allocations: 47.59 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01056/0.3817, allocations: 7.614 MB / 334.7 MB, free: 11.34 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007477/0.3893, allocations: 2.686 MB / 337.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.3909, allocations: 35.88 kB / 337.4 MB, free: 9.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.3928, allocations: 469.4 kB / 337.8 MB, free: 8.562 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001875/0.3947, allocations: 377.3 kB / 338.2 MB, free: 8.191 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009941/0.3957, allocations: 323.7 kB / 338.5 MB, free: 7.875 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.3978, allocations: 1.409 MB / 339.9 MB, free: 6.457 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009697/0.3988, allocations: 0.5252 MB / 340.5 MB, free: 5.906 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008696/0.3996, allocations: 461.6 kB / 340.9 MB, free: 5.453 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006537/0.4003, allocations: 0.5167 MB / 341.4 MB, free: 4.934 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.4004, allocations: 60 kB / 341.5 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003547/0.4008, allocations: 95.98 kB / 341.6 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.401, allocations: 203 kB / 341.8 MB, free: 4.582 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006392/0.4017, allocations: 0.5999 MB / 342.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001717/0.4034, allocations: 1.603 MB / 344 MB, free: 2.363 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4034, allocations: 0 / 344 MB, free: 2.363 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4034, allocations: 0 / 344 MB, free: 2.363 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.4035, allocations: 0 / 344 MB, free: 2.363 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.002488/0.4059, allocations: 1.297 MB / 345.3 MB, free: 1.012 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.406, allocations: 12.03 kB / 345.3 MB, free: 1 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006581/0.4067, allocations: 195.2 kB / 345.5 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.4081, allocations: 0.786 MB / 346.3 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.067e-05/0.4081, allocations: 78.12 kB / 346.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.4083, allocations: 96 kB / 346.4 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001816/0.4101, allocations: 0.9536 MB / 347.4 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.958e-05/0.4102, allocations: 11.91 kB / 347.4 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.643e-05/0.4103, allocations: 39.98 kB / 347.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.4103, allocations: 24 kB / 347.5 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.4116, allocations: 0.648 MB / 348.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005922/0.4175, allocations: 4.142 MB / 352.2 MB, free: 9.727 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.4186, allocations: 467.9 kB / 352.7 MB, free: 9.262 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.4189, allocations: 169.4 kB / 352.9 MB, free: 9.094 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.474e-05/0.419, allocations: 11.73 kB / 352.9 MB, free: 9.082 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.419, allocations: 38.56 kB / 352.9 MB, free: 9.035 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.125e-06/0.419, allocations: 0 / 352.9 MB, free: 9.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002853/0.4219, allocations: 1.357 MB / 354.3 MB, free: 7.605 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.422, allocations: 106.8 kB / 354.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.4234, allocations: 0.8979 MB / 355.3 MB, free: 6.555 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.4234, allocations: 37.64 kB / 355.3 MB, free: 6.512 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004933/0.4239, allocations: 0.5954 MB / 355.9 MB, free: 5.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.4241, allocations: 142 kB / 356 MB, free: 5.766 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.4242, allocations: 65.67 kB / 356.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4243, allocations: 334 kB / 356.4 MB, free: 5.363 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.4247, allocations: 173.9 kB / 356.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005878/0.4253, allocations: 0.4899 MB / 357.1 MB, free: 4.559 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000977/0.4262, allocations: 0.6909 MB / 357.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.4263, allocations: 4 kB / 357.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001259/0.4275, allocations: 0.766 MB / 358.6 MB, free: 2.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000351/0.4279, allocations: 400.8 kB / 358.9 MB, free: 2.402 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/0.4279, allocations: 8 kB / 359 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001946/0.4281, allocations: 40.8 kB / 359 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/0.4287, allocations: 171.7 kB / 359.2 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.4301, allocations: 1.292 MB / 360.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006078/0.4307, allocations: 43.83 kB / 360.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.4308, allocations: 36 kB / 360.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.735e-06/0.4308, allocations: 8.094 kB / 360.5 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001076/0.4319, allocations: 0.6137 MB / 361.2 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4319, allocations: 8 kB / 361.2 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.223e-05/0.432, allocations: 36.84 kB / 361.2 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005443/0.4326, allocations: 167.7 kB / 361.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.4337, allocations: 1.292 MB / 362.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.4343, allocations: 35.92 kB / 362.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.646e-05/0.4343, allocations: 32 kB / 362.7 MB, free: 14.36 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.0006864/0.435, allocations: 345 kB / 363.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.4352, allocations: 94.78 kB / 363.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009148/0.4361, allocations: 451.1 kB / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.4361, allocations: 4 kB / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4361, allocations: 0 / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4362, allocations: 0 / 363.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.4383, allocations: 1.398 MB / 365 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4383, allocations: 8.219 kB / 365 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.4387, allocations: 75.91 kB / 365.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.277e-05/0.4387, allocations: 20.84 kB / 365.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.4388, allocations: 12 kB / 365.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.4398, allocations: 1.288 MB / 366.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4398, allocations: 0 / 366.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.441, allocations: 0.7328 MB / 367.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/0.4414, allocations: 207.9 kB / 367.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.4415, allocations: 8 kB / 367.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000377/0.4418, allocations: 31.92 kB / 367.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/0.442, allocations: 27.97 kB / 367.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.442, allocations: 8 kB / 367.4 MB, free: 9.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009557/0.443, allocations: 0.6172 MB / 368 MB, free: 8.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.443, allocations: 0 / 368 MB, free: 8.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001285/0.4443, allocations: 348 kB / 368.4 MB, free: 8.402 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.0002629/0.4446, allocations: 127.1 kB / 368.5 MB, free: 8.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.4464, allocations: 0.9794 MB / 369.5 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.4464, allocations: 4 kB / 369.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004281/0.4469, allocations: 286.5 kB / 369.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.4484, allocations: 228 kB / 370 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003822/0.4522, allocations: 2.357 MB / 372.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007239/0.4529, allocations: 1.025 MB / 373.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005878/0.4535, allocations: 127.4 kB / 373.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.4537, allocations: 59.44 kB / 373.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4537, allocations: 0 / 373.5 MB, free: 3.098 MB / 302.1 MB Notification: Performance of Templates: time 0.02281/0.4765, allocations: 10.08 MB / 383.6 MB, free: 9.004 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)