Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.0008444/0.0008445, allocations: 91.02 kB / 16.31 MB, free: 5.66 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.000822/0.000822, allocations: 179.3 kB / 17.21 MB, free: 5.578 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.552/1.552, allocations: 205.4 MB / 223.4 MB, free: 5.684 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.0005004/0.0005004, allocations: 12 kB / 280.2 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3207, allocations: 47.58 MB / 327.7 MB, free: 1.609 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007348/0.3281, allocations: 7.205 MB / 334.9 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004625/0.3327, allocations: 2.546 MB / 337.5 MB, free: 9.828 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006417/0.3334, allocations: 32.19 kB / 337.5 MB, free: 9.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.3346, allocations: 469.4 kB / 338 MB, free: 9.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008808/0.3355, allocations: 393.1 kB / 338.4 MB, free: 9.023 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004098/0.3359, allocations: 171.8 kB / 338.5 MB, free: 8.855 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001211/0.3372, allocations: 1.358 MB / 339.9 MB, free: 7.492 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.3377, allocations: 427.3 kB / 340.3 MB, free: 7.059 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005564/0.3383, allocations: 465.9 kB / 340.8 MB, free: 6.602 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000541/0.3389, allocations: 0.5055 MB / 341.3 MB, free: 6.094 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.339, allocations: 68 kB / 341.3 MB, free: 6.027 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002682/0.3393, allocations: 95.97 kB / 341.4 MB, free: 5.934 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.3394, allocations: 203 kB / 341.6 MB, free: 5.734 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.3396, allocations: 261.1 kB / 341.9 MB, free: 5.473 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.3409, allocations: 1.371 MB / 343.2 MB, free: 4.098 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.425e-06/0.3409, allocations: 4 kB / 343.2 MB, free: 4.094 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.3409, allocations: 8 kB / 343.3 MB, free: 4.086 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.649e-05/0.341, allocations: 0 / 343.3 MB, free: 4.086 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.002068/0.343, allocations: 1.289 MB / 344.5 MB, free: 2.742 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3431, allocations: 8.031 kB / 344.6 MB, free: 2.734 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006776/0.3438, allocations: 190.3 kB / 344.7 MB, free: 2.547 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.3449, allocations: 0.7231 MB / 345.5 MB, free: 1.781 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/0.345, allocations: 78 kB / 345.5 MB, free: 1.707 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3451, allocations: 99.91 kB / 345.6 MB, free: 1.609 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.3467, allocations: 0.9464 MB / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/0.3467, allocations: 0 / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.137e-05/0.3468, allocations: 44 kB / 346.6 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3468, allocations: 24 kB / 346.6 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.3481, allocations: 0.6598 MB / 347.3 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005032/0.3531, allocations: 3.973 MB / 351.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007111/0.3538, allocations: 456.4 kB / 351.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005428/0.3544, allocations: 272.7 kB / 352 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.3544, allocations: 4 kB / 352 MB, free: 10.97 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.3545, allocations: 38.56 kB / 352 MB, free: 10.92 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 1.733e-06/0.3545, allocations: 4 kB / 352 MB, free: 10.92 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003036/0.3575, allocations: 1.564 MB / 353.6 MB, free: 9.262 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3576, allocations: 93 kB / 353.7 MB, free: 9.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.3587, allocations: 0.8293 MB / 354.5 MB, free: 8.312 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.3587, allocations: 37.7 kB / 354.6 MB, free: 8.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004223/0.3592, allocations: 0.5643 MB / 355.1 MB, free: 7.695 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3593, allocations: 161.6 kB / 355.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.489e-05/0.3593, allocations: 19.94 kB / 355.3 MB, free: 7.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3595, allocations: 330 kB / 355.6 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.3598, allocations: 185.9 kB / 355.8 MB, free: 7.008 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005653/0.3604, allocations: 475.6 kB / 356.3 MB, free: 6.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.3609, allocations: 259.7 kB / 356.5 MB, free: 6.156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3609, allocations: 4 kB / 356.5 MB, free: 6.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001281/0.3622, allocations: 0.787 MB / 357.3 MB, free: 5.352 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3622, allocations: 12.03 kB / 357.3 MB, free: 5.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.3622, allocations: 12 kB / 357.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002568/0.3625, allocations: 77.62 kB / 357.4 MB, free: 5.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004806/0.363, allocations: 163.7 kB / 357.6 MB, free: 5.086 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002395/0.3654, allocations: 2.88 MB / 360.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.366, allocations: 47.95 kB / 360.5 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.366, allocations: 32 kB / 360.5 MB, free: 1.855 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004466/0.3665, allocations: 261.5 kB / 360.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.3666, allocations: 82.97 kB / 360.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009473/0.3676, allocations: 0.5187 MB / 361.4 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3676, allocations: 4 kB / 361.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3676, allocations: 0 / 361.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.3676, allocations: 7.953 kB / 361.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3698, allocations: 1.485 MB / 362.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3698, allocations: 0 / 362.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/0.3701, allocations: 79.89 kB / 363 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001877/0.3703, allocations: 77.84 kB / 363 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.3704, allocations: 8 kB / 363 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002185/0.3726, allocations: 2.86 MB / 365.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3726, allocations: 0 / 365.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.3738, allocations: 0.8204 MB / 366.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002668/0.3741, allocations: 196.1 kB / 366.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.3742, allocations: 15.98 kB / 366.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003956/0.3746, allocations: 31.98 kB / 367 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.3747, allocations: 35.89 kB / 367 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.3748, allocations: 16 kB / 367 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007843/0.3756, allocations: 0.5693 MB / 367.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3756, allocations: 3.938 kB / 367.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009813/0.3766, allocations: 216 kB / 367.8 MB, free: 10.14 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002606/0.3768, allocations: 115.2 kB / 367.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.3781, allocations: 0.7131 MB / 368.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.3781, allocations: 0.625 kB / 368.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006208/0.3787, allocations: 457.2 kB / 369.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.3799, allocations: 215.8 kB / 369.3 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003704/0.3836, allocations: 2.138 MB / 371.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007715/0.3844, allocations: 1.009 MB / 372.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005092/0.3849, allocations: 107.3 kB / 372.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.385, allocations: 59.42 kB / 372.6 MB, free: 5.207 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.385, allocations: 3.938 kB / 372.6 MB, free: 5.203 MB / 302.1 MB Notification: Performance of Templates: time 0.01953/0.4046, allocations: 9.792 MB / 382.4 MB, free: 11.4 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)