Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0008528/0.0008526, allocations: 89.23 kB / 16.65 MB, free: 6.258 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.00105/0.00105, allocations: 179.1 kB / 17.56 MB, free: 5.875 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.728/1.728, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0005074/0.0005074, allocations: 16 kB / 280.7 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1409, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01347/0.1544, allocations: 11.02 MB / 339.3 MB, free: 8.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008843/0.1633, allocations: 3.169 MB / 342.5 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002149/0.1655, allocations: 39.88 kB / 342.6 MB, free: 5.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.1678, allocations: 0.5554 MB / 343.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00329/0.1711, allocations: 0.5818 MB / 343.7 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.1722, allocations: 351.7 kB / 344 MB, free: 3.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00391/0.1762, allocations: 2.117 MB / 346.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.1776, allocations: 0.8462 MB / 347 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001735/0.1794, allocations: 0.6881 MB / 347.7 MB, free: 264 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009907/0.1804, allocations: 0.7773 MB / 348.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000173/0.1806, allocations: 104 kB / 348.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004242/0.181, allocations: 140 kB / 348.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.1813, allocations: 306.4 kB / 349 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.1824, allocations: 0.9071 MB / 349.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002669/0.1851, allocations: 2.502 MB / 352.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.1851, allocations: 0 / 352.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1852, allocations: 0 / 352.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.925e-05/0.1852, allocations: 0 / 352.4 MB, free: 11.51 MB / 302.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.003936/0.1892, allocations: 1.756 MB / 354.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.1892, allocations: 8.031 kB / 354.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000837/0.1901, allocations: 254.5 kB / 354.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/0.1918, allocations: 1.032 MB / 355.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.192, allocations: 115.5 kB / 355.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002523/0.1922, allocations: 159.8 kB / 355.7 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/0.195, allocations: 1.487 MB / 357.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.232e-05/0.1951, allocations: 15.92 kB / 357.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.1952, allocations: 64 kB / 357.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.419e-05/0.1953, allocations: 36 kB / 357.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002/0.1973, allocations: 0.9825 MB / 358.3 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00947/0.2068, allocations: 6.613 MB / 364.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009078/0.2077, allocations: 408.2 kB / 365.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004723/0.2082, allocations: 218.1 kB / 365.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.915e-05/0.2083, allocations: 12.42 kB / 365.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006908/0.209, allocations: 276.8 kB / 365.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.838e-06/0.209, allocations: 0 / 365.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004248/0.2133, allocations: 1.785 MB / 367.6 MB, free: 11.64 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.2134, allocations: 170.8 kB / 367.8 MB, free: 11.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.2153, allocations: 1.265 MB / 369 MB, free: 10.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.2153, allocations: 41.64 kB / 369.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007691/0.2161, allocations: 0.879 MB / 369.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002729/0.2164, allocations: 213.2 kB / 370.2 MB, free: 9.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.2165, allocations: 89.67 kB / 370.2 MB, free: 8.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002339/0.2168, allocations: 357.9 kB / 370.6 MB, free: 8.562 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004801/0.2173, allocations: 234.5 kB / 370.8 MB, free: 8.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008466/0.2181, allocations: 0.8073 MB / 371.6 MB, free: 7.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00152/0.2196, allocations: 1.13 MB / 372.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.2197, allocations: 4 kB / 372.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002194/0.2219, allocations: 1.181 MB / 373.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.361e-05/0.2219, allocations: 49.69 kB / 374 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/0.222, allocations: 16 kB / 374 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003123/0.2223, allocations: 69.64 kB / 374.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007879/0.2231, allocations: 268 kB / 374.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.2256, allocations: 2.579 MB / 376.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.2267, allocations: 80.03 kB / 377 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.473e-05/0.2268, allocations: 60 kB / 377.1 MB, free: 1.258 MB / 318.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.0007603/0.2276, allocations: 357.3 kB / 377.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.2277, allocations: 134.4 kB / 377.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00106/0.2288, allocations: 0.5529 MB / 378.1 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2288, allocations: 19.92 kB / 378.1 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2288, allocations: 0 / 378.1 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.2289, allocations: 0 / 378.1 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2812/0.5101, allocations: 1.879 MB / 380 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.5101, allocations: 6.531 kB / 380 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.5106, allocations: 109.6 kB / 380.1 MB, free: 50.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002033/0.5108, allocations: 44.53 kB / 380.1 MB, free: 50.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.5109, allocations: 15.52 kB / 380.2 MB, free: 50.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.5126, allocations: 2.556 MB / 382.7 MB, free: 47.79 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.5126, allocations: 4.562 kB / 382.7 MB, free: 47.79 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.5142, allocations: 0.9395 MB / 383.7 MB, free: 47.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004596/0.5147, allocations: 257 kB / 383.9 MB, free: 47.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.5148, allocations: 20.55 kB / 383.9 MB, free: 47.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.5154, allocations: 32.06 kB / 384 MB, free: 47.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.5155, allocations: 56.66 kB / 384 MB, free: 47.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.5156, allocations: 22.81 kB / 384 MB, free: 47.4 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001371/0.5169, allocations: 0.8432 MB / 384.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5169, allocations: 0 / 384.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001295/0.5183, allocations: 304.3 kB / 385.2 MB, free: 47.07 MB / 318.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.0002176/0.5185, allocations: 134.8 kB / 385.3 MB, free: 46.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.52, allocations: 0.922 MB / 386.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5201, allocations: 5.25 kB / 386.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006469/0.5207, allocations: 488.2 kB / 386.7 MB, free: 46.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.5229, allocations: 315.5 kB / 387 MB, free: 46.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004675/0.5276, allocations: 3.258 MB / 390.3 MB, free: 43.95 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009394/0.5285, allocations: 1.181 MB / 391.5 MB, free: 43.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008561/0.5294, allocations: 174.3 kB / 391.6 MB, free: 43.17 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.5296, allocations: 87.11 kB / 391.7 MB, free: 43.16 MB / 318.1 MB Notification: Performance of SimCode: time 1.302e-06/0.5296, allocations: 0.9375 kB / 391.7 MB, free: 43.16 MB / 318.1 MB Notification: Performance of Templates: time 0.03016/0.5598, allocations: 14.16 MB / 405.9 MB, free: 35.33 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)