Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01173/0.01173, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.002337/0.002337, allocations: 191.5 kB / 16.68 MB, free: 5.523 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.664/1.664, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.00203/0.002031, allocations: 55.92 kB / 326.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1658, allocations: 46.62 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.3436/0.5094, allocations: 12.09 MB / 385.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008625/0.5181, allocations: 3.309 MB / 388.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003455/0.5217, allocations: 39.62 kB / 388.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002585/0.5243, allocations: 0.6898 MB / 389.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004235/0.5286, allocations: 0.7867 MB / 390.1 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001407/0.53, allocations: 401.6 kB / 390.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004848/0.5348, allocations: 2.414 MB / 392.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001798/0.5366, allocations: 1.006 MB / 393.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.5391, allocations: 0.9074 MB / 394.8 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001626/0.5408, allocations: 0.9843 MB / 395.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003619/0.5412, allocations: 230.4 kB / 396 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000773/0.5419, allocations: 265.4 kB / 396.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.5423, allocations: 455 kB / 396.7 MB, free: 308 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.5439, allocations: 1.081 MB / 397.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005433/0.5493, allocations: 2.831 MB / 400.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.24e-05/0.5494, allocations: 1.219 kB / 400.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.5494, allocations: 4 kB / 400.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001105/0.5495, allocations: 0.6094 kB / 400.6 MB, free: 14.53 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.005875/0.5554, allocations: 2.156 MB / 402.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/0.5554, allocations: 9 kB / 402.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001147/0.5566, allocations: 291 kB / 403.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002511/0.5591, allocations: 1.109 MB / 404.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.5593, allocations: 121.8 kB / 404.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003186/0.5596, allocations: 161.4 kB / 404.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003254/0.5629, allocations: 1.503 MB / 406 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.91e-05/0.5629, allocations: 12.36 kB / 406 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/0.5631, allocations: 61.09 kB / 406 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.698e-05/0.5631, allocations: 38.84 kB / 406.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00227/0.5654, allocations: 1.054 MB / 407.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01065/0.5761, allocations: 6.233 MB / 413.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.5778, allocations: 0.6141 MB / 414 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009244/0.5788, allocations: 465.4 kB / 414.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.207e-05/0.5789, allocations: 9.531 kB / 414.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.5789, allocations: 46.98 kB / 414.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 3.206e-06/0.5789, allocations: 4 kB / 414.5 MB, free: 4.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.006405/0.5853, allocations: 2.361 MB / 416.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.651e-05/0.5855, allocations: 111.9 kB / 417 MB, free: 2.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.5879, allocations: 1.312 MB / 418.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.675e-05/0.588, allocations: 37.7 kB / 418.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006617/0.5887, allocations: 0.8454 MB / 419.2 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.5889, allocations: 260.3 kB / 419.4 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/0.5892, allocations: 206.7 kB / 419.6 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.5894, allocations: 353.9 kB / 420 MB, free: 376 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005659/0.5899, allocations: 282.5 kB / 420.2 MB, free: 92 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009252/0.5909, allocations: 0.7342 MB / 421 MB, free: 15.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/0.5926, allocations: 1.088 MB / 422.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.5926, allocations: 4 kB / 422.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002854/0.5955, allocations: 1.267 MB / 423.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.5955, allocations: 12 kB / 423.3 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/0.5956, allocations: 12 kB / 423.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006215/0.5962, allocations: 139 kB / 423.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008844/0.5971, allocations: 259.5 kB / 423.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.6019, allocations: 4.638 MB / 428.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.6035, allocations: 55.91 kB / 428.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001395/0.6036, allocations: 59.94 kB / 428.5 MB, free: 6.961 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00109/0.6047, allocations: 357.4 kB / 428.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/0.6053, allocations: 142.2 kB / 429 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/0.6074, allocations: 0.8295 MB / 429.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.6074, allocations: 11.94 kB / 429.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.6074, allocations: 0 / 429.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.6075, allocations: 3.984 kB / 429.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005945/0.6134, allocations: 2.323 MB / 432.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.6135, allocations: 4 kB / 432.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006339/0.6141, allocations: 131.8 kB / 432.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006412/0.6147, allocations: 135 kB / 432.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.849e-05/0.6149, allocations: 23.97 kB / 432.4 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006217/0.6211, allocations: 4.791 MB / 437.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/0.6211, allocations: 7.938 kB / 437.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/0.6246, allocations: 1.296 MB / 438.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/0.6261, allocations: 287.3 kB / 438.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008814/0.627, allocations: 20 kB / 438.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001403/0.6284, allocations: 35.95 kB / 438.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.6286, allocations: 64.38 kB / 438.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-05/0.6287, allocations: 23.98 kB / 439 MB, free: 11.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002736/0.6314, allocations: 0.882 MB / 439.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6315, allocations: 0 / 439.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002507/0.634, allocations: 331.9 kB / 440.2 MB, free: 10.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * 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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004486/0.6344, allocations: 135.1 kB / 440.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002769/0.6372, allocations: 1.125 MB / 441.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.6372, allocations: 0 / 441.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.6386, allocations: 0.7112 MB / 442.1 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002681/0.6413, allocations: 364.6 kB / 442.5 MB, free: 8.219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007931/0.6492, allocations: 2.891 MB / 445.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002395/0.6517, allocations: 1.214 MB / 446.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001381/0.6531, allocations: 175.6 kB / 446.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004072/0.6535, allocations: 91.42 kB / 446.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of SimCode: time 1.573e-06/0.6535, allocations: 3.938 kB / 446.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of Templates: time 0.04394/0.6975, allocations: 17.94 MB / 464.8 MB, free: 1.758 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)