Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001019/0.001019, allocations: 98.27 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.008239/0.008239, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.886/1.886, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0004343/0.0004342, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3075, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01111/0.3187, allocations: 8.994 MB / 336 MB, free: 10.29 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007168/0.3259, allocations: 3.084 MB / 339.1 MB, free: 7.262 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.3277, allocations: 43.75 kB / 339.2 MB, free: 7.219 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.3296, allocations: 0.5826 MB / 339.7 MB, free: 6.633 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003051/0.3327, allocations: 0.6916 MB / 340.4 MB, free: 5.938 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.3338, allocations: 347.6 kB / 340.8 MB, free: 5.598 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004848/0.3387, allocations: 2.88 MB / 343.7 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002541/0.3412, allocations: 1.918 MB / 345.6 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.3428, allocations: 0.8867 MB / 346.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001767/0.3446, allocations: 1.26 MB / 347.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002283/0.3448, allocations: 132 kB / 347.8 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000637/0.3455, allocations: 247.7 kB / 348.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006655/0.3461, allocations: 0.6735 MB / 348.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.3475, allocations: 1.198 MB / 350 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003778/0.3513, allocations: 3.881 MB / 353.8 MB, free: 8.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.3514, allocations: 0 / 353.8 MB, free: 8.418 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.531e-06/0.3514, allocations: 4 kB / 353.8 MB, free: 8.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001313/0.3515, allocations: 0 / 353.8 MB, free: 8.414 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.005676/0.3572, allocations: 2.468 MB / 356.3 MB, free: 5.883 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.3573, allocations: 8.031 kB / 356.3 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008578/0.3582, allocations: 289.7 kB / 356.6 MB, free: 5.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.3609, allocations: 1.429 MB / 358 MB, free: 4.102 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.3611, allocations: 168.5 kB / 358.2 MB, free: 3.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003453/0.3615, allocations: 219.9 kB / 358.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005421/0.3669, allocations: 2.803 MB / 361.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-05/0.367, allocations: 4 kB / 361.2 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/0.3672, allocations: 83.98 kB / 361.3 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/0.3674, allocations: 120.1 kB / 361.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005095/0.3725, allocations: 2.366 MB / 363.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01788/0.3904, allocations: 8.632 MB / 372.4 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002762/0.3932, allocations: 1.726 MB / 374.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.395, allocations: 0.9762 MB / 375.1 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/0.3954, allocations: 207.2 kB / 375.3 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.3954, allocations: 55.44 kB / 375.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 2.795e-06/0.3954, allocations: 0 / 375.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01355/0.409, allocations: 6.208 MB / 381.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.7e-05/0.4091, allocations: 64.41 kB / 381.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.4114, allocations: 1.441 MB / 383.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.4115, allocations: 49.7 kB / 383.1 MB, free: 10.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007518/0.4123, allocations: 1.041 MB / 384.2 MB, free: 9.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004192/0.4127, allocations: 414.1 kB / 384.6 MB, free: 8.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/0.4129, allocations: 109.7 kB / 384.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4131, allocations: 361.9 kB / 385 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.4142, allocations: 0.6948 MB / 385.7 MB, free: 7.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001372/0.4156, allocations: 1.086 MB / 386.8 MB, free: 6.406 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002619/0.4182, allocations: 1.883 MB / 388.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.4183, allocations: 0 / 388.7 MB, free: 4.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004113/0.4224, allocations: 2.437 MB / 391.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.879e-05/0.4224, allocations: 8 kB / 391.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.4225, allocations: 15.98 kB / 391.2 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009925/0.4235, allocations: 419.1 kB / 391.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/0.4248, allocations: 323.5 kB / 391.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00667/0.4314, allocations: 6.471 MB / 398.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.4331, allocations: 115.8 kB / 398.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.4333, allocations: 59.94 kB / 398.5 MB, free: 10.08 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.00146/0.4347, allocations: 0.6818 MB / 399.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003556/0.4351, allocations: 158 kB / 399.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/0.4389, allocations: 2.146 MB / 401.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.4389, allocations: 12 kB / 401.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.439, allocations: 4 kB / 401.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.439, allocations: 15.91 kB / 401.5 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007538/0.4465, allocations: 4.59 MB / 406.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.4466, allocations: 12.03 kB / 406.1 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009072/0.4475, allocations: 215.7 kB / 406.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001157/0.4487, allocations: 446.9 kB / 406.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-05/0.4488, allocations: 31.98 kB / 406.8 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007591/0.4564, allocations: 7.928 MB / 414.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.4564, allocations: 7.938 kB / 414.8 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.4615, allocations: 3.14 MB / 417.9 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008541/0.4624, allocations: 390.9 kB / 418.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.4626, allocations: 32 kB / 418.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008787/0.4635, allocations: 91.91 kB / 418.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002382/0.4638, allocations: 96.73 kB / 418.5 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.778e-05/0.4638, allocations: 36 kB / 418.5 MB, free: 5.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.4653, allocations: 0.9847 MB / 419.5 MB, free: 4.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4653, allocations: 4 kB / 419.5 MB, free: 4.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001571/0.4669, allocations: 464 kB / 420 MB, free: 3.766 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.0003802/0.4673, allocations: 195 kB / 420.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.4711, allocations: 2.235 MB / 422.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4711, allocations: 0 / 422.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002397/0.4735, allocations: 1.45 MB / 423.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.4764, allocations: 393.2 kB / 424.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008387/0.4848, allocations: 5.578 MB / 429.8 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/0.4864, allocations: 1.807 MB / 431.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001237/0.4877, allocations: 365.5 kB / 432 MB, free: 7.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003275/0.488, allocations: 115.4 kB / 432.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.488, allocations: 0 / 432.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of Templates: time 0.04279/0.5308, allocations: 23.02 MB / 455.1 MB, free: 372 kB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)