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.001168/0.001168, allocations: 101.1 kB / 16.5 MB, free: 6.688 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.001332/0.001332, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.709/1.709, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001255/0.001255, allocations: 47.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1424, allocations: 46.64 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01292/0.1554, allocations: 11.6 MB / 337.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007271/0.1627, allocations: 3.185 MB / 340.8 MB, free: 6.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002112/0.1649, allocations: 39.88 kB / 340.8 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002605/0.1675, allocations: 0.5554 MB / 341.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003386/0.1709, allocations: 0.5818 MB / 341.9 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.172, allocations: 351.7 kB / 342.3 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003703/0.1757, allocations: 2.129 MB / 344.4 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.1772, allocations: 0.8502 MB / 345.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.1785, allocations: 0.7505 MB / 346 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001027/0.1795, allocations: 0.8593 MB / 346.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.1798, allocations: 132 kB / 347 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004849/0.1803, allocations: 176 kB / 347.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.1806, allocations: 354.4 kB / 347.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.1817, allocations: 0.9328 MB / 348.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.1843, allocations: 2.577 MB / 351 MB, free: 11.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.1843, allocations: 8 kB / 351 MB, free: 11.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1844, allocations: 0 / 351 MB, free: 11.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.567e-05/0.1844, allocations: 0 / 351 MB, free: 11.67 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.004439/0.1889, allocations: 2.064 MB / 353.1 MB, free: 9.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.1889, allocations: 8.031 kB / 353.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008577/0.1898, allocations: 254.5 kB / 353.3 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.1914, allocations: 1.02 MB / 354.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.179e-05/0.1916, allocations: 115.5 kB / 354.5 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002278/0.1918, allocations: 163.8 kB / 354.6 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.1945, allocations: 1.487 MB / 356.1 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.998e-05/0.1946, allocations: 11.84 kB / 356.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.1948, allocations: 64 kB / 356.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-05/0.1948, allocations: 36 kB / 356.2 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.1969, allocations: 0.9786 MB / 357.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01055/0.2075, allocations: 6.578 MB / 363.8 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008934/0.2084, allocations: 392.2 kB / 364.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004506/0.2089, allocations: 226.1 kB / 364.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.721e-05/0.2089, allocations: 4.438 kB / 364.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000712/0.2097, allocations: 272.7 kB / 364.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.605e-06/0.2097, allocations: 0 / 364.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003675/0.2134, allocations: 1.754 MB / 366.4 MB, free: 11.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.2135, allocations: 166.8 kB / 366.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/0.2152, allocations: 1.273 MB / 367.9 MB, free: 10.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.2152, allocations: 41.64 kB / 367.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006627/0.2159, allocations: 0.8751 MB / 368.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.2161, allocations: 205.1 kB / 369 MB, free: 8.977 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.2164, allocations: 218.6 kB / 369.2 MB, free: 8.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.2165, allocations: 361.9 kB / 369.5 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004411/0.217, allocations: 226.5 kB / 369.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008158/0.2178, allocations: 0.8073 MB / 370.6 MB, free: 7.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.2191, allocations: 1.114 MB / 371.7 MB, free: 5.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.2192, allocations: 4 kB / 371.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001887/0.2211, allocations: 1.177 MB / 372.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.153e-05/0.2211, allocations: 41.81 kB / 372.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.2211, allocations: 24 kB / 372.9 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.2214, allocations: 65.64 kB / 373 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007272/0.2221, allocations: 267.5 kB / 373.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.2241, allocations: 2.579 MB / 375.8 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009489/0.2251, allocations: 67.88 kB / 375.9 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.358e-05/0.2251, allocations: 60 kB / 376 MB, free: 1.133 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.0005383/0.2257, allocations: 365.4 kB / 376.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.2259, allocations: 130.5 kB / 376.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009742/0.2268, allocations: 0.545 MB / 377 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.2269, allocations: 15.94 kB / 377 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2269, allocations: 0 / 377 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2269, allocations: 3.984 kB / 377 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2297/0.4566, allocations: 1.869 MB / 378.9 MB, free: 51.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.4567, allocations: 4.125 kB / 378.9 MB, free: 51.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.4571, allocations: 104.1 kB / 379 MB, free: 51.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001769/0.4573, allocations: 47.48 kB / 379 MB, free: 51.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.4574, allocations: 16.12 kB / 379 MB, free: 51.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.4588, allocations: 2.557 MB / 381.6 MB, free: 48.8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/0.4588, allocations: 4.125 kB / 381.6 MB, free: 48.8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.4606, allocations: 0.9231 MB / 382.5 MB, free: 48.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005011/0.4611, allocations: 257.3 kB / 382.8 MB, free: 48.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.4613, allocations: 19.25 kB / 382.8 MB, free: 48.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/0.4618, allocations: 32.48 kB / 382.8 MB, free: 48.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.462, allocations: 57.06 kB / 382.9 MB, free: 48.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-05/0.462, allocations: 18.72 kB / 382.9 MB, free: 48.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001672/0.4637, allocations: 0.8473 MB / 383.8 MB, free: 47.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4637, allocations: 0 / 383.8 MB, free: 47.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001502/0.4652, allocations: 304.8 kB / 384 MB, free: 47.76 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.0002811/0.4655, allocations: 124.4 kB / 384.2 MB, free: 47.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.4674, allocations: 0.9169 MB / 385.1 MB, free: 47.17 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4674, allocations: 1.125 kB / 385.1 MB, free: 47.17 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007167/0.4681, allocations: 484.3 kB / 385.6 MB, free: 46.86 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.4697, allocations: 314 kB / 385.9 MB, free: 46.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/0.475, allocations: 3.157 MB / 389 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009097/0.4759, allocations: 1.184 MB / 390.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008138/0.4767, allocations: 168.4 kB / 390.4 MB, free: 43.92 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.477, allocations: 84.38 kB / 390.5 MB, free: 43.91 MB / 318.1 MB Notification: Performance of SimCode: time 3.807e-06/0.477, allocations: 1.219 kB / 390.5 MB, free: 43.91 MB / 318.1 MB Notification: Performance of Templates: time 0.0319/0.5089, allocations: 14.25 MB / 404.7 MB, free: 36.2 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)