Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002203/0.002203, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.003256/0.003256, allocations: 191.8 kB / 16.25 MB, free: 6.617 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.971/1.971, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001475/0.001475, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3247, allocations: 46.63 MB / 324.9 MB, free: 2.156 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01069/0.3354, allocations: 8.154 MB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007427/0.343, allocations: 2.686 MB / 335.7 MB, free: 9.379 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.3453, allocations: 27.88 kB / 335.7 MB, free: 9.352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002194/0.3475, allocations: 0.5058 MB / 336.2 MB, free: 8.844 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002357/0.3499, allocations: 409.1 kB / 336.6 MB, free: 8.441 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007471/0.3507, allocations: 231.8 kB / 336.9 MB, free: 8.215 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.3532, allocations: 1.486 MB / 338.3 MB, free: 6.723 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.3543, allocations: 0.5886 MB / 338.9 MB, free: 6.113 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00108/0.3554, allocations: 0.5641 MB / 339.5 MB, free: 5.547 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009696/0.3564, allocations: 0.6105 MB / 340.1 MB, free: 4.934 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002051/0.3566, allocations: 140 kB / 340.2 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.3571, allocations: 184 kB / 340.4 MB, free: 4.617 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002355/0.3573, allocations: 286.9 kB / 340.7 MB, free: 4.336 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000701/0.358, allocations: 0.6726 MB / 341.4 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001896/0.3599, allocations: 1.732 MB / 343.1 MB, free: 1.922 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3599, allocations: 0 / 343.1 MB, free: 1.922 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3599, allocations: 0 / 343.1 MB, free: 1.922 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.36, allocations: 0 / 343.1 MB, free: 1.922 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002508/0.3625, allocations: 1.48 MB / 344.6 MB, free: 396 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3625, allocations: 8.031 kB / 344.6 MB, free: 388 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006848/0.3632, allocations: 191.3 kB / 344.8 MB, free: 196 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.3645, allocations: 0.7425 MB / 345.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.845e-05/0.3646, allocations: 78 kB / 345.6 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3647, allocations: 99.91 kB / 345.7 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.3663, allocations: 0.9503 MB / 346.6 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/0.3663, allocations: 4 kB / 346.7 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.854e-05/0.3664, allocations: 40 kB / 346.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.3664, allocations: 24 kB / 346.7 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.3676, allocations: 0.6519 MB / 347.4 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005741/0.3734, allocations: 3.957 MB / 351.3 MB, free: 9.352 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007925/0.3742, allocations: 447.9 kB / 351.8 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005772/0.3748, allocations: 272.7 kB / 352 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.825e-05/0.3749, allocations: 4 kB / 352 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.3749, allocations: 42.56 kB / 352.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.545e-06/0.3749, allocations: 0 / 352.1 MB, free: 8.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003526/0.3785, allocations: 1.544 MB / 353.6 MB, free: 6.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.541e-05/0.3786, allocations: 89.11 kB / 353.7 MB, free: 6.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.38, allocations: 0.8333 MB / 354.5 MB, free: 5.98 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.38, allocations: 29.7 kB / 354.6 MB, free: 5.945 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005055/0.3806, allocations: 0.5643 MB / 355.1 MB, free: 5.371 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.3807, allocations: 165.6 kB / 355.3 MB, free: 5.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002268/0.381, allocations: 130.5 kB / 355.4 MB, free: 5.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.3812, allocations: 337.9 kB / 355.7 MB, free: 4.734 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/0.3815, allocations: 173.9 kB / 355.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006018/0.3821, allocations: 471.5 kB / 356.4 MB, free: 3.973 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3832, allocations: 0.6758 MB / 357.1 MB, free: 3.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.3832, allocations: 4 kB / 357.1 MB, free: 3.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001623/0.3848, allocations: 0.7904 MB / 357.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/0.3849, allocations: 12 kB / 357.9 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.3849, allocations: 8 kB / 357.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/0.3853, allocations: 77.98 kB / 357.9 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005399/0.3858, allocations: 167.7 kB / 358.1 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003167/0.389, allocations: 3.153 MB / 361.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/0.39, allocations: 39.89 kB / 361.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.3901, allocations: 35.98 kB / 361.3 MB, free: 14.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005681/0.3906, allocations: 261.5 kB / 361.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3908, allocations: 90.84 kB / 361.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.3918, allocations: 0.4952 MB / 362.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.3919, allocations: 4 kB / 362.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3919, allocations: 3.984 kB / 362.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3919, allocations: 8 kB / 362.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.3944, allocations: 1.473 MB / 363.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3944, allocations: 0 / 363.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.3948, allocations: 75.89 kB / 363.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002284/0.395, allocations: 73.89 kB / 363.8 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.3951, allocations: 12 kB / 363.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003034/0.3981, allocations: 3.134 MB / 367 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.3981, allocations: 4 kB / 367 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.3996, allocations: 0.7932 MB / 367.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004395/0.4001, allocations: 200 kB / 367.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.4002, allocations: 15.88 kB / 368 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.4007, allocations: 31.97 kB / 368 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.4008, allocations: 35.95 kB / 368 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-05/0.4008, allocations: 16 kB / 368 MB, free: 7.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009018/0.4017, allocations: 0.5693 MB / 368.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4018, allocations: 0 / 368.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001028/0.4028, allocations: 208 kB / 368.8 MB, free: 6.645 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002817/0.4031, allocations: 131.1 kB / 368.9 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.4045, allocations: 0.716 MB / 369.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.4045, allocations: 0 / 369.7 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006604/0.4052, allocations: 455 kB / 370.1 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.4064, allocations: 215.2 kB / 370.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.4102, allocations: 2.176 MB / 372.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007197/0.411, allocations: 1.017 MB / 373.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005045/0.4115, allocations: 103.3 kB / 373.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.4116, allocations: 59.42 kB / 373.7 MB, free: 1.652 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4117, allocations: 4 kB / 373.7 MB, free: 1.648 MB / 302.1 MB Notification: Performance of Templates: time 0.02211/0.4338, allocations: 10.6 MB / 384.3 MB, free: 7.031 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)