Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.007342/0.007342, allocations: 101 kB / 15.73 MB, free: 6.055 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.001343/0.001344, allocations: 196.6 kB / 16.68 MB, free: 5.969 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.751/1.751, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001176/0.001176, allocations: 58.66 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, 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.01422/0.1188, allocations: 11.68 MB / 384.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008811/0.1277, allocations: 3.227 MB / 388.1 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003133/0.131, allocations: 35.94 kB / 388.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002556/0.1335, allocations: 0.6402 MB / 388.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004148/0.1377, allocations: 0.6704 MB / 389.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.1392, allocations: 403.5 kB / 389.8 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004151/0.1433, allocations: 2.242 MB / 392.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.1449, allocations: 1 MB / 393.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001846/0.1468, allocations: 0.8366 MB / 393.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001722/0.1485, allocations: 0.9138 MB / 394.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000374/0.1489, allocations: 216 kB / 395 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007276/0.1497, allocations: 256 kB / 395.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004589/0.1501, allocations: 430.5 kB / 395.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001326/0.1515, allocations: 1.015 MB / 396.7 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003461/0.1549, allocations: 2.682 MB / 399.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.155, allocations: 0 / 399.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.155, allocations: 0 / 399.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.107e-05/0.155, allocations: 0 / 399.4 MB, free: 6.918 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.004494/0.1595, allocations: 2.064 MB / 401.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.1596, allocations: 8.031 kB / 401.5 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008372/0.1604, allocations: 262.5 kB / 401.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.1624, allocations: 1.04 MB / 402.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.872e-05/0.1625, allocations: 111.5 kB / 402.9 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002438/0.1627, allocations: 163.8 kB / 403 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.1652, allocations: 1.483 MB / 404.5 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/0.1652, allocations: 7.938 kB / 404.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001371/0.1654, allocations: 68 kB / 404.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.425e-05/0.1654, allocations: 44 kB / 404.6 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001846/0.1673, allocations: 0.9668 MB / 405.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008875/0.1762, allocations: 6.519 MB / 412.1 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009337/0.1772, allocations: 412 kB / 412.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.1776, allocations: 221.9 kB / 412.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.1777, allocations: 4.438 kB / 412.8 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005693/0.1782, allocations: 268.8 kB / 413 MB, free: 8.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 5.881e-06/0.1783, allocations: 0 / 413 MB, free: 8.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003917/0.1822, allocations: 1.773 MB / 414.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1823, allocations: 162.8 kB / 414.9 MB, free: 6.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.1842, allocations: 1.273 MB / 416.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.844e-05/0.1843, allocations: 37.7 kB / 416.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007748/0.1851, allocations: 0.8596 MB / 417.1 MB, free: 4.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.1853, allocations: 213.1 kB / 417.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.1856, allocations: 226.6 kB / 417.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.1858, allocations: 349.9 kB / 417.9 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005076/0.1863, allocations: 230.5 kB / 418.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000976/0.1873, allocations: 0.7995 MB / 418.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.1889, allocations: 1.122 MB / 420 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.1889, allocations: 8 kB / 420 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002206/0.1911, allocations: 1.165 MB / 421.2 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.641e-05/0.1912, allocations: 41.7 kB / 421.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.1912, allocations: 20 kB / 421.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002542/0.1915, allocations: 69.58 kB / 421.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007802/0.1923, allocations: 263.9 kB / 421.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.1949, allocations: 2.788 MB / 424.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.1961, allocations: 63.78 kB / 424.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.1962, 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.0006804/0.1969, allocations: 357.4 kB / 424.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.1972, allocations: 130.4 kB / 425 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.1985, allocations: 0.5489 MB / 425.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.1986, allocations: 8 kB / 425.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.1986, allocations: 3.938 kB / 425.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.1986, allocations: 7.984 kB / 425.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004079/0.2027, allocations: 1.862 MB / 427.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.2027, allocations: 4.469 kB / 427.4 MB, free: 9.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.2032, allocations: 107.9 kB / 427.5 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002168/0.2034, allocations: 49.69 kB / 427.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.297e-05/0.2035, allocations: 16 kB / 427.6 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.2063, allocations: 2.745 MB / 430.3 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.2063, allocations: 7.938 kB / 430.3 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.208, allocations: 0.9162 MB / 431.3 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007729/0.2088, allocations: 255.4 kB / 431.5 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.2089, allocations: 16 kB / 431.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005863/0.2095, allocations: 35.91 kB / 431.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.2097, allocations: 59.66 kB / 431.6 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.2097, allocations: 16 kB / 431.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.2113, allocations: 0.85 MB / 432.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.655e-06/0.2113, allocations: 0 / 432.5 MB, free: 3.695 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001305/0.2126, allocations: 311.9 kB / 432.8 MB, free: 3.391 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.0002752/0.2129, allocations: 131.1 kB / 432.9 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001785/0.2147, allocations: 0.9294 MB / 433.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/0.2147, allocations: 4 kB / 433.8 MB, free: 2.285 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007642/0.2155, allocations: 462.5 kB / 434.3 MB, free: 1.809 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/0.2173, allocations: 328.7 kB / 434.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004815/0.2222, allocations: 2.515 MB / 437.1 MB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008796/0.2231, allocations: 1.174 MB / 438.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006976/0.2238, allocations: 175.3 kB / 438.5 MB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.224, allocations: 91.38 kB / 438.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.262e-06/0.224, allocations: 0 / 438.6 MB, free: 13.42 MB / 382.1 MB Notification: Performance of Templates: time 0.289/0.513, allocations: 15.21 MB / 453.8 MB, free: 70.31 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)