Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001035/0.001035, allocations: 97.95 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.01111/0.01112, allocations: 168.7 kB / 16.26 MB, free: 6.652 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.234/2.234, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0005024/0.0005026, allocations: 8.469 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3889, allocations: 47.6 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01247/0.4015, allocations: 7.614 MB / 334.7 MB, free: 11.36 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008678/0.4103, allocations: 2.68 MB / 337.3 MB, free: 9.039 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00207/0.4124, allocations: 31.88 kB / 337.4 MB, free: 9.008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.4148, allocations: 477.4 kB / 337.8 MB, free: 8.539 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002554/0.4174, allocations: 373.3 kB / 338.2 MB, free: 8.172 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.4184, allocations: 327.6 kB / 338.5 MB, free: 7.852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002529/0.421, allocations: 1.413 MB / 339.9 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009668/0.4219, allocations: 0.5213 MB / 340.5 MB, free: 5.883 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009222/0.4229, allocations: 461.6 kB / 340.9 MB, free: 5.43 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006526/0.4235, allocations: 0.5128 MB / 341.4 MB, free: 4.914 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.4237, allocations: 64 kB / 341.5 MB, free: 4.852 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003336/0.424, allocations: 99.97 kB / 341.6 MB, free: 4.754 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.4242, allocations: 195 kB / 341.8 MB, free: 4.562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006254/0.4248, allocations: 0.5999 MB / 342.4 MB, free: 3.953 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00197/0.4268, allocations: 1.603 MB / 344 MB, free: 2.344 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.031e-05/0.4268, allocations: 0 / 344 MB, free: 2.344 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.117e-06/0.4269, allocations: 4 kB / 344 MB, free: 2.34 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.738e-05/0.4269, allocations: 4 kB / 344 MB, free: 2.336 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.002908/0.4298, allocations: 1.297 MB / 345.3 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.267e-05/0.4299, allocations: 8.031 kB / 345.3 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006546/0.4305, allocations: 187.2 kB / 345.5 MB, free: 0.793 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.4319, allocations: 0.7861 MB / 346.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.657e-05/0.432, allocations: 82.06 kB / 346.3 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001727/0.4322, allocations: 104 kB / 346.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/0.434, allocations: 0.9497 MB / 347.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.4341, allocations: 11.91 kB / 347.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.909e-05/0.4342, allocations: 36 kB / 347.4 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.637e-05/0.4342, allocations: 24 kB / 347.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.4355, allocations: 0.6558 MB / 348.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006071/0.4416, allocations: 4.142 MB / 352.2 MB, free: 9.699 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.4428, allocations: 467.8 kB / 352.7 MB, free: 9.234 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.4431, allocations: 173.4 kB / 352.9 MB, free: 9.062 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.518e-05/0.4432, allocations: 11.73 kB / 352.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.4432, allocations: 38.56 kB / 352.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.217e-06/0.4432, allocations: 0 / 352.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002937/0.4462, allocations: 1.357 MB / 354.3 MB, free: 7.574 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.891e-05/0.4463, allocations: 106.8 kB / 354.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.4477, allocations: 0.8979 MB / 355.3 MB, free: 6.523 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.4477, allocations: 33.7 kB / 355.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005518/0.4483, allocations: 0.6031 MB / 355.9 MB, free: 5.871 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.4484, allocations: 142 kB / 356.1 MB, free: 5.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.4486, allocations: 65.69 kB / 356.1 MB, free: 5.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4487, allocations: 330 kB / 356.4 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.4491, allocations: 173.9 kB / 356.6 MB, free: 5.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006999/0.4498, allocations: 0.4938 MB / 357.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4509, allocations: 0.687 MB / 357.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.451, allocations: 0 / 357.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001466/0.4524, allocations: 0.7699 MB / 358.6 MB, free: 2.91 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000426/0.4529, allocations: 392.9 kB / 358.9 MB, free: 2.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.4529, allocations: 12 kB / 359 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002404/0.4532, allocations: 40.78 kB / 359 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.4538, allocations: 175.7 kB / 359.2 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/0.4551, allocations: 1.288 MB / 360.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007095/0.4558, allocations: 47.83 kB / 360.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.4559, allocations: 32 kB / 360.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/0.4559, allocations: 4 kB / 360.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001079/0.457, allocations: 0.6137 MB / 361.2 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.457, allocations: 16.22 kB / 361.2 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001227/0.4571, allocations: 32.91 kB / 361.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/0.4577, allocations: 167.7 kB / 361.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.4589, allocations: 1.288 MB / 362.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008021/0.4598, allocations: 31.94 kB / 362.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.4598, allocations: 39.98 kB / 362.7 MB, free: 14.33 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.0008904/0.4607, allocations: 340.9 kB / 363.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001812/0.4609, allocations: 94.78 kB / 363.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009453/0.4619, allocations: 447.1 kB / 363.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.4619, allocations: 8 kB / 363.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4619, allocations: 0 / 363.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.4619, allocations: 7.984 kB / 363.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002426/0.4643, allocations: 1.39 MB / 365 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.4644, allocations: 4 kB / 365 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.4647, allocations: 88.11 kB / 365.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001074/0.4649, allocations: 16.84 kB / 365.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.142e-05/0.4649, allocations: 16 kB / 365.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.466, allocations: 1.272 MB / 366.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.466, allocations: 7.969 kB / 366.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4672, allocations: 0.7288 MB / 367.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003531/0.4676, allocations: 211.8 kB / 367.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.188e-05/0.4677, allocations: 8 kB / 367.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/0.4681, allocations: 39.91 kB / 367.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.4682, allocations: 23.97 kB / 367.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.4682, allocations: 12 kB / 367.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001164/0.4694, allocations: 0.6133 MB / 368 MB, free: 8.715 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4694, allocations: 0 / 368 MB, free: 8.715 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001501/0.4709, allocations: 348 kB / 368.4 MB, free: 8.375 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.0003479/0.4713, allocations: 123.2 kB / 368.5 MB, free: 8.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.4734, allocations: 0.9755 MB / 369.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.4734, allocations: 0 / 369.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.4739, allocations: 298.6 kB / 369.8 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.4755, allocations: 228 kB / 370 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.48, allocations: 2.361 MB / 372.3 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001057/0.4811, allocations: 1.025 MB / 373.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007953/0.4819, allocations: 119.4 kB / 373.5 MB, free: 3.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.4821, allocations: 59.44 kB / 373.5 MB, free: 3.074 MB / 302.1 MB Notification: Performance of SimCode: time 2.965e-06/0.4821, allocations: 3.938 kB / 373.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of Templates: time 0.02711/0.5092, allocations: 10.07 MB / 383.6 MB, free: 8.988 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)