Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008716/0.008717, allocations: 102.6 kB / 15.73 MB, free: 6.047 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.001545/0.001545, allocations: 198.2 kB / 16.68 MB, free: 5.965 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.712/1.712, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001408/0.001408, allocations: 54.92 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1673, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01589/0.1833, allocations: 11.69 MB / 384.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.1937, allocations: 3.227 MB / 388.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003875/0.1978, allocations: 39.88 kB / 388.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003899/0.2017, allocations: 0.6362 MB / 388.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005317/0.2071, allocations: 0.6704 MB / 389.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.2098, allocations: 395.5 kB / 389.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006779/0.2166, allocations: 2.25 MB / 392.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.2199, allocations: 1 MB / 393.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003165/0.2231, allocations: 0.8366 MB / 393.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002669/0.2258, allocations: 0.91 MB / 394.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005554/0.2264, allocations: 216 kB / 395 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009121/0.2273, allocations: 256 kB / 395.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004938/0.2278, allocations: 430.5 kB / 395.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.2294, allocations: 1.019 MB / 396.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00399/0.2335, allocations: 2.682 MB / 399.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.04e-05/0.2335, allocations: 0 / 399.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.2335, allocations: 0 / 399.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.598e-05/0.2335, allocations: 4 kB / 399.4 MB, free: 6.906 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004448/0.238, allocations: 2.06 MB / 401.5 MB, free: 4.781 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.108e-05/0.2381, allocations: 8.031 kB / 401.5 MB, free: 4.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009747/0.2391, allocations: 254.5 kB / 401.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002296/0.2414, allocations: 1.048 MB / 402.8 MB, free: 3.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.2415, allocations: 111.5 kB / 402.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.2418, allocations: 159.8 kB / 403 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002613/0.2444, allocations: 1.487 MB / 404.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.887e-05/0.2445, allocations: 7.984 kB / 404.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2446, allocations: 68 kB / 404.6 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.759e-05/0.2447, allocations: 36 kB / 404.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.2466, allocations: 0.9746 MB / 405.6 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.2572, allocations: 6.523 MB / 412.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.2582, allocations: 408.1 kB / 412.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000468/0.2587, allocations: 221.9 kB / 412.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.859e-05/0.2588, allocations: 8.438 kB / 412.8 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000598/0.2594, allocations: 264.8 kB / 413 MB, free: 8.723 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.445e-06/0.2594, allocations: 0 / 413 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004105/0.2635, allocations: 1.773 MB / 414.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.2637, allocations: 158.8 kB / 414.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.2657, allocations: 1.281 MB / 416.2 MB, free: 5.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.814e-05/0.2658, allocations: 33.7 kB / 416.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008773/0.2667, allocations: 0.8635 MB / 417.1 MB, free: 4.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.2669, allocations: 213.1 kB / 417.3 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000332/0.2672, allocations: 222.6 kB / 417.5 MB, free: 4.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.2675, allocations: 349.9 kB / 417.9 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.2679, allocations: 230.5 kB / 418.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009522/0.2689, allocations: 0.7995 MB / 418.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.2705, allocations: 1.122 MB / 420 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.2705, allocations: 4 kB / 420 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001948/0.2724, allocations: 1.169 MB / 421.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.463e-05/0.2725, allocations: 37.7 kB / 421.2 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.2726, allocations: 24.03 kB / 421.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.2729, allocations: 69.64 kB / 421.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007753/0.2737, allocations: 267.5 kB / 421.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002494/0.2762, allocations: 2.773 MB / 424.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2774, allocations: 71.91 kB / 424.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.2775, allocations: 64 kB / 424.5 MB, free: 12.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000905/0.2784, allocations: 361.3 kB / 424.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000236/0.2787, allocations: 126.4 kB / 425 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.28, allocations: 0.5567 MB / 425.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.28, allocations: 4 kB / 425.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.28, allocations: 7.938 kB / 425.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.2801, allocations: 3.984 kB / 425.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/0.2839, allocations: 1.862 MB / 427.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.2839, allocations: 4 kB / 427.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.2844, allocations: 107.8 kB / 427.5 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001718/0.2845, allocations: 42.17 kB / 427.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.2846, allocations: 20 kB / 427.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002215/0.2868, allocations: 2.749 MB / 430.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.2868, allocations: 7.938 kB / 430.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001579/0.2884, allocations: 0.9122 MB / 431.3 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000643/0.2891, allocations: 255.4 kB / 431.5 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003009/0.2894, allocations: 16 kB / 431.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006775/0.2901, allocations: 36.09 kB / 431.6 MB, free: 4.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.2903, allocations: 59.59 kB / 431.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.2903, allocations: 23.94 kB / 431.6 MB, free: 4.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001491/0.2918, allocations: 0.8461 MB / 432.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2918, allocations: 0 / 432.5 MB, free: 3.688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001624/0.2935, allocations: 312 kB / 432.8 MB, free: 3.383 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (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.0004112/0.2939, allocations: 127 kB / 432.9 MB, free: 3.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002047/0.2959, allocations: 0.9215 MB / 433.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.296, allocations: 0 / 433.8 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008258/0.2968, allocations: 474.1 kB / 434.3 MB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.2986, allocations: 337 kB / 434.6 MB, free: 1.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005426/0.304, allocations: 2.511 MB / 437.1 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.3052, allocations: 1.174 MB / 438.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007483/0.306, allocations: 179.2 kB / 438.5 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.3062, allocations: 83.44 kB / 438.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3063, allocations: 4 kB / 438.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of Templates: time 0.357/0.6632, allocations: 15.22 MB / 453.8 MB, free: 70.27 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)