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.001571/0.001571, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001892/0.001892, allocations: 192 kB / 16.53 MB, free: 6.391 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.7/1.7, allocations: 205.1 MB / 222.4 MB, free: 4.566 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.001242/0.001242, allocations: 56.25 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.217, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01071/0.2277, allocations: 9.588 MB / 334.9 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007035/0.2348, allocations: 3.144 MB / 338 MB, free: 7.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002089/0.2369, allocations: 51.75 kB / 338.1 MB, free: 7.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001812/0.2388, allocations: 0.6675 MB / 338.8 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002564/0.2414, allocations: 0.7648 MB / 339.5 MB, free: 5.668 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009065/0.2423, allocations: 387.5 kB / 339.9 MB, free: 5.289 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0028/0.2451, allocations: 2.549 MB / 342.5 MB, free: 2.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002349/0.2474, allocations: 2.294 MB / 344.8 MB, free: 384 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001399/0.2489, allocations: 1.172 MB / 345.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001656/0.2505, allocations: 1.499 MB / 347.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004002/0.2509, allocations: 316 kB / 347.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007378/0.2517, allocations: 419.8 kB / 348.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007878/0.2525, allocations: 0.8922 MB / 349 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001337/0.2538, allocations: 1.419 MB / 350.5 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003481/0.2573, allocations: 4.097 MB / 354.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2573, allocations: 0 / 354.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2573, allocations: 3.938 kB / 354.6 MB, free: 6.543 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.143e-05/0.2574, allocations: 4 kB / 354.6 MB, free: 6.539 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.005543/0.263, allocations: 2.897 MB / 357.5 MB, free: 3.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.263, allocations: 15.83 kB / 357.5 MB, free: 3.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006651/0.2637, allocations: 289.7 kB / 357.8 MB, free: 3.277 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002151/0.2658, allocations: 1.429 MB / 359.2 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.266, allocations: 168.5 kB / 359.3 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002995/0.2663, allocations: 215.9 kB / 359.6 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004277/0.2706, allocations: 2.799 MB / 362.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.086e-05/0.2707, allocations: 3.906 kB / 362.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.2709, allocations: 88 kB / 362.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.271, allocations: 104.2 kB / 362.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00383/0.2748, allocations: 2.351 MB / 364.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0121/0.2869, allocations: 8.6 MB / 373.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00237/0.2893, allocations: 1.707 MB / 375.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001737/0.2911, allocations: 0.9674 MB / 376.2 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002827/0.2914, allocations: 207.2 kB / 376.4 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.2914, allocations: 47.5 kB / 376.4 MB, free: 16 kB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 4.338e-06/0.2915, allocations: 7.922 kB / 376.4 MB, free: 8 kB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01339/0.3048, allocations: 6.102 MB / 382.5 MB, free: 9.762 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.3049, allocations: 64.41 kB / 382.6 MB, free: 9.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002164/0.3071, allocations: 1.437 MB / 384 MB, free: 8.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.382e-05/0.3072, allocations: 49.64 kB / 384.1 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007441/0.3079, allocations: 1.041 MB / 385.1 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003434/0.3083, allocations: 414 kB / 385.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003958/0.3087, allocations: 255.4 kB / 385.8 MB, free: 6.461 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3089, allocations: 357.9 kB / 386.1 MB, free: 6.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.31, allocations: 0.6832 MB / 386.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.3113, allocations: 1.074 MB / 387.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.3139, allocations: 1.86 MB / 389.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.314, allocations: 0 / 389.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004057/0.318, allocations: 2.406 MB / 392.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.3181, allocations: 8 kB / 392.2 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.3181, allocations: 12 kB / 392.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009785/0.3191, allocations: 423.2 kB / 392.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.3202, allocations: 319.5 kB / 392.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007407/0.3277, allocations: 7.049 MB / 399.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.3297, allocations: 103.8 kB / 400 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.3298, allocations: 59.98 kB / 400.1 MB, free: 7.324 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.001593/0.3314, allocations: 0.6935 MB / 400.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003649/0.3318, allocations: 158.1 kB / 400.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003648/0.3354, allocations: 2.119 MB / 403.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.3354, allocations: 12 kB / 403.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.3355, allocations: 4 kB / 403.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.3355, allocations: 3.984 kB / 403.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007301/0.3428, allocations: 4.581 MB / 407.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.3428, allocations: 4 kB / 407.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000892/0.3437, allocations: 216.1 kB / 407.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.3448, allocations: 455 kB / 408.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.971e-05/0.3449, allocations: 31.98 kB / 408.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008336/0.3533, allocations: 8.612 MB / 417 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.3533, allocations: 11.94 kB / 417 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005113/0.3584, allocations: 3.097 MB / 420.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009468/0.3594, allocations: 383 kB / 420.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.3596, allocations: 31.98 kB / 420.5 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008501/0.3605, allocations: 87.84 kB / 420.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002256/0.3607, allocations: 88.81 kB / 420.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.29e-05/0.3608, allocations: 39.98 kB / 420.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001461/0.3623, allocations: 0.9886 MB / 421.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3623, allocations: 0 / 421.7 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001665/0.3639, allocations: 472 kB / 422.1 MB, free: 404 kB / 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.0003888/0.3643, allocations: 191.1 kB / 422.3 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005117/0.3695, allocations: 2.684 MB / 425 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/0.3695, allocations: 0 / 425 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.3723, allocations: 1.446 MB / 426.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002388/0.3747, allocations: 425.4 kB / 426.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007972/0.3827, allocations: 4.503 MB / 431.4 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.3845, allocations: 1.807 MB / 433.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001251/0.3858, allocations: 361.6 kB / 433.5 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.3861, allocations: 115.4 kB / 433.7 MB, free: 4.652 MB / 366.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3862, allocations: 4 kB / 433.7 MB, free: 4.648 MB / 366.1 MB Notification: Performance of Templates: time 0.2571/0.6433, allocations: 24.33 MB / 458 MB, free: 112.6 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)