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.001196/0.001196, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001292/0.001292, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.739/1.739, allocations: 205.4 MB / 222.1 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.0007663/0.0007665, allocations: 8 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2559, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01009/0.266, allocations: 7.779 MB / 334.2 MB, free: 11.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006013/0.2721, allocations: 3.035 MB / 337.3 MB, free: 8.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009617/0.2731, allocations: 43.81 kB / 337.3 MB, free: 8.609 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.2744, allocations: 0.548 MB / 337.9 MB, free: 8.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.2763, allocations: 0.6659 MB / 338.5 MB, free: 7.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.277, allocations: 255.6 kB / 338.8 MB, free: 7.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002314/0.2793, allocations: 1.669 MB / 340.4 MB, free: 5.469 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.281, allocations: 1.488 MB / 341.9 MB, free: 3.945 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.2821, allocations: 0.8134 MB / 342.7 MB, free: 3.129 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001345/0.2835, allocations: 1.066 MB / 343.8 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002338/0.2837, allocations: 132 kB / 343.9 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005257/0.2842, allocations: 203.9 kB / 344.1 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006778/0.2849, allocations: 0.6387 MB / 344.8 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000468/0.2854, allocations: 0.4887 MB / 345.3 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002792/0.2882, allocations: 3.288 MB / 348.6 MB, free: 13.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2882, allocations: 3.938 kB / 348.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2882, allocations: 4 kB / 348.6 MB, free: 13.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.773e-05/0.2883, allocations: 0 / 348.6 MB, free: 13.29 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.004679/0.293, allocations: 2.476 MB / 351 MB, free: 10.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.293, allocations: 8.031 kB / 351 MB, free: 10.74 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006973/0.2937, allocations: 292.7 kB / 351.3 MB, free: 10.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.2962, allocations: 1.386 MB / 352.7 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/0.2963, allocations: 172.2 kB / 352.9 MB, free: 8.836 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003037/0.2966, allocations: 207.9 kB / 353.1 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004401/0.3011, allocations: 2.772 MB / 355.9 MB, free: 5.773 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.912e-05/0.3011, allocations: 11.98 kB / 355.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001853/0.3013, allocations: 83.98 kB / 356 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.3014, allocations: 108.1 kB / 356.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003874/0.3053, allocations: 2.359 MB / 358.4 MB, free: 3.195 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0129/0.3182, allocations: 8.593 MB / 367 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.3207, allocations: 1.716 MB / 368.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000306/0.321, allocations: 203.2 kB / 368.9 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.3211, allocations: 43.56 kB / 369 MB, free: 8.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 4.308e-06/0.3211, allocations: 0 / 369 MB, free: 8.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01233/0.3334, allocations: 6.085 MB / 375.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.3335, allocations: 72.34 kB / 375.1 MB, free: 1.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001834/0.3354, allocations: 1.386 MB / 376.5 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.809e-05/0.3355, allocations: 45.7 kB / 376.6 MB, free: 500 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007932/0.3363, allocations: 1.041 MB / 377.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/0.3366, allocations: 406.2 kB / 378 MB, free: 15.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-05/0.3367, allocations: 28 kB / 378 MB, free: 15 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3369, allocations: 357.9 kB / 378.4 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.338, allocations: 0.7027 MB / 379.1 MB, free: 13.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.3395, allocations: 1.085 MB / 380.2 MB, free: 12.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.3408, allocations: 0.8574 MB / 381 MB, free: 11.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3409, allocations: 4 kB / 381 MB, free: 11.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003903/0.3448, allocations: 2.413 MB / 383.4 MB, free: 9.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.889e-05/0.3448, allocations: 8 kB / 383.4 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.3448, allocations: 12 kB / 383.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/0.3457, allocations: 395.3 kB / 383.8 MB, free: 8.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.347, allocations: 343.5 kB / 384.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/0.3535, allocations: 6.37 MB / 390.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.355, allocations: 111.8 kB / 390.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.3551, allocations: 60 kB / 390.7 MB, free: 1.688 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (160): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001442/0.3566, allocations: 0.6847 MB / 391.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002838/0.3569, allocations: 166 kB / 391.6 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003544/0.3604, allocations: 2.138 MB / 393.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3605, allocations: 12 kB / 393.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.3605, allocations: 4 kB / 393.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.3605, allocations: 8.125 kB / 393.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007408/0.3679, allocations: 4.538 MB / 398.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.3679, allocations: 4 kB / 398.3 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009248/0.3689, allocations: 223.7 kB / 398.5 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.3699, allocations: 419.5 kB / 398.9 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.438e-05/0.37, allocations: 35.98 kB / 398.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007419/0.3774, allocations: 7.866 MB / 406.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.3775, allocations: 7.938 kB / 406.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00498/0.3825, allocations: 3.317 MB / 410.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008979/0.3834, allocations: 375 kB / 410.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.3836, allocations: 35.98 kB / 410.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007943/0.3844, allocations: 87.91 kB / 410.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002329/0.3846, allocations: 100.7 kB / 410.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.481e-05/0.3847, allocations: 39.98 kB / 410.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.3861, allocations: 0.9418 MB / 411.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3861, allocations: 4 kB / 411.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001635/0.3877, allocations: 460.1 kB / 412.1 MB, free: 11.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (105): * Single equations (assignments): 101 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003163/0.3881, allocations: 151 kB / 412.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00362/0.3917, allocations: 2.236 MB / 414.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3917, allocations: 4 kB / 414.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002167/0.3939, allocations: 1.438 MB / 416 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001506/0.3954, allocations: 382.1 kB / 416.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00743/0.4028, allocations: 5.31 MB / 421.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/0.4045, allocations: 1.842 MB / 423.5 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001013/0.4055, allocations: 373.5 kB / 423.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.4058, allocations: 111.4 kB / 424 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4058, allocations: 0 / 424 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Templates: time 0.03777/0.4436, allocations: 22.06 MB / 446 MB, free: 9.172 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: