Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 97.48 kB / 15.36 MB, free: 0.7344 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.012/0.012, allocations: 170.8 kB / 16.27 MB, free: 6.32 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.887/1.887, allocations: 205.4 MB / 222.4 MB, free: 5.527 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.0004988/0.0004988, allocations: 19.98 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2972, allocations: 47.58 MB / 327 MB, free: 1.652 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01161/0.3088, allocations: 8.994 MB / 336 MB, free: 10.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008843/0.3177, allocations: 3.08 MB / 339.1 MB, free: 7.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002694/0.3205, allocations: 43.75 kB / 339.2 MB, free: 7.367 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002228/0.3228, allocations: 0.5827 MB / 339.7 MB, free: 6.781 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004309/0.3271, allocations: 0.6955 MB / 340.4 MB, free: 6.082 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001592/0.3287, allocations: 343.7 kB / 340.8 MB, free: 5.746 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.3333, allocations: 2.876 MB / 343.6 MB, free: 2.859 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00273/0.3361, allocations: 1.914 MB / 345.6 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.338, allocations: 0.8868 MB / 346.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002192/0.3402, allocations: 1.26 MB / 347.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003696/0.3406, allocations: 143.9 kB / 347.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007528/0.3414, allocations: 243.8 kB / 348.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006865/0.3421, allocations: 0.6774 MB / 348.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.3435, allocations: 1.198 MB / 350 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003739/0.3472, allocations: 3.877 MB / 353.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.3473, allocations: 3.984 kB / 353.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3473, allocations: 0 / 353.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.92e-05/0.3474, allocations: 0 / 353.8 MB, free: 8.562 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005577/0.353, allocations: 2.472 MB / 356.3 MB, free: 6.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.353, allocations: 8.031 kB / 356.3 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009709/0.354, allocations: 289.7 kB / 356.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00269/0.3567, allocations: 1.433 MB / 358 MB, free: 4.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.3569, allocations: 164.5 kB / 358.2 MB, free: 4.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003641/0.3573, allocations: 215.9 kB / 358.4 MB, free: 3.867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005176/0.3625, allocations: 2.811 MB / 361.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.829e-05/0.3626, allocations: 4 kB / 361.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002134/0.3628, allocations: 84 kB / 361.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.3629, allocations: 104.2 kB / 361.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/0.3673, allocations: 2.374 MB / 363.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01534/0.3827, allocations: 8.632 MB / 372.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.3852, allocations: 1.734 MB / 374.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.387, allocations: 0.9723 MB / 375.1 MB, free: 2.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003773/0.3874, allocations: 211.2 kB / 375.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/0.3875, allocations: 47.5 kB / 375.4 MB, free: 2.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 3.347e-06/0.3875, allocations: 0 / 375.4 MB, free: 2.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01468/0.4022, allocations: 6.208 MB / 381.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.4023, allocations: 64.41 kB / 381.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002797/0.4051, allocations: 1.437 MB / 383.1 MB, free: 10.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.4053, allocations: 45.7 kB / 383.1 MB, free: 10.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.4063, allocations: 1.049 MB / 384.2 MB, free: 9.383 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004961/0.4068, allocations: 402.1 kB / 384.6 MB, free: 8.984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.407, allocations: 117.6 kB / 384.7 MB, free: 8.863 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.4072, allocations: 361.9 kB / 385 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.4085, allocations: 0.7065 MB / 385.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.41, allocations: 1.078 MB / 386.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002999/0.413, allocations: 1.879 MB / 388.7 MB, free: 4.516 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/0.413, allocations: 4 kB / 388.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004571/0.4176, allocations: 2.433 MB / 391.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.853e-05/0.4177, allocations: 8 kB / 391.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.038e-05/0.4177, allocations: 15.94 kB / 391.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001141/0.4189, allocations: 419.3 kB / 391.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.4201, allocations: 335.5 kB / 391.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007598/0.4278, allocations: 6.467 MB / 398.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.4294, allocations: 111.8 kB / 398.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.4296, allocations: 59.94 kB / 398.5 MB, free: 10.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001895/0.4315, allocations: 0.6818 MB / 399.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006455/0.4321, allocations: 162 kB / 399.4 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004291/0.4364, allocations: 2.142 MB / 401.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.378e-05/0.4365, allocations: 12 kB / 401.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.4365, allocations: 4 kB / 401.5 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.4365, allocations: 11.91 kB / 401.5 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0086/0.4451, allocations: 4.605 MB / 406.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.4452, allocations: 7.938 kB / 406.2 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008844/0.4461, allocations: 219.7 kB / 406.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.4472, allocations: 443.3 kB / 406.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.068e-05/0.4473, allocations: 31.98 kB / 406.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007343/0.4546, allocations: 7.928 MB / 414.8 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.461e-05/0.4547, allocations: 7.938 kB / 414.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/0.4597, allocations: 3.14 MB / 417.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008861/0.4606, allocations: 386.9 kB / 418.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003584/0.461, allocations: 32 kB / 418.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.462, allocations: 91.91 kB / 418.4 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/0.4622, allocations: 96.73 kB / 418.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/0.4623, allocations: 36 kB / 418.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001425/0.4638, allocations: 0.9886 MB / 419.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4638, allocations: 0 / 419.5 MB, free: 4.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001807/0.4656, allocations: 460 kB / 420 MB, free: 3.914 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.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 (103): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.0004205/0.466, allocations: 203.1 kB / 420.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004233/0.4703, allocations: 2.226 MB / 422.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.4703, allocations: 4 kB / 422.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002533/0.4728, allocations: 1.451 MB / 423.9 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003026/0.4759, allocations: 393.2 kB / 424.2 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.4871, allocations: 5.578 MB / 429.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002395/0.4895, allocations: 1.807 MB / 431.6 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00168/0.4912, allocations: 365.6 kB / 432 MB, free: 7.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.4916, allocations: 111.4 kB / 432.1 MB, free: 7.562 MB / 366.1 MB Notification: Performance of SimCode: time 2.855e-06/0.4916, allocations: 0 / 432.1 MB, free: 7.562 MB / 366.1 MB Notification: Performance of Templates: time 0.04675/0.5384, allocations: 23.03 MB / 455.1 MB, free: 0.5039 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)