Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 100.1 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.001219/0.001219, allocations: 177.3 kB / 15.95 MB, free: 216 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.647/1.647, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0005824/0.0005826, allocations: 16 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2923, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01063/0.303, allocations: 8.327 MB / 334.8 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007239/0.3103, allocations: 3.365 MB / 338.1 MB, free: 7.805 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.3121, allocations: 51.75 kB / 338.2 MB, free: 7.754 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.3138, allocations: 0.6375 MB / 338.8 MB, free: 7.113 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002562/0.3164, allocations: 0.7205 MB / 339.6 MB, free: 6.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.3173, allocations: 271.6 kB / 339.8 MB, free: 6.125 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002857/0.3202, allocations: 1.809 MB / 341.6 MB, free: 4.312 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001881/0.322, allocations: 1.552 MB / 343.2 MB, free: 2.727 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.3234, allocations: 0.8639 MB / 344 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.325, allocations: 1.132 MB / 345.2 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002691/0.3252, allocations: 136 kB / 345.3 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006125/0.3259, allocations: 211.9 kB / 345.5 MB, free: 392 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007416/0.3266, allocations: 0.6699 MB / 346.2 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005777/0.3272, allocations: 0.5159 MB / 346.7 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003258/0.3305, allocations: 3.463 MB / 350.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3305, allocations: 0 / 350.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3305, allocations: 0 / 350.2 MB, free: 11.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.927e-05/0.3306, allocations: 0 / 350.2 MB, free: 11.71 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005667/0.3363, allocations: 2.613 MB / 352.8 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3363, allocations: 12.03 kB / 352.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008639/0.3372, allocations: 308.6 kB / 353.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002848/0.3401, allocations: 1.477 MB / 354.6 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/0.3403, allocations: 164.4 kB / 354.7 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003301/0.3407, allocations: 220 kB / 354.9 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005025/0.3457, allocations: 2.89 MB / 357.8 MB, free: 3.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.553e-05/0.3458, allocations: 11.91 kB / 357.8 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002078/0.346, allocations: 95.94 kB / 357.9 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.3461, allocations: 112.3 kB / 358 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004379/0.3505, allocations: 2.437 MB / 360.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01527/0.3658, allocations: 9.098 MB / 369.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002432/0.3683, allocations: 1.701 MB / 371.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004006/0.3687, allocations: 211.2 kB / 371.5 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.3687, allocations: 43.56 kB / 371.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 4.99e-06/0.3688, allocations: 4.469 kB / 371.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01702/0.3858, allocations: 7.494 MB / 379 MB, free: 14.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.3859, allocations: 64.41 kB / 379.1 MB, free: 13.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/0.388, allocations: 1.506 MB / 380.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.499e-05/0.3881, allocations: 49.7 kB / 380.7 MB, free: 12.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007392/0.3888, allocations: 1.096 MB / 381.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/0.3892, allocations: 449.6 kB / 382.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.776e-05/0.3893, allocations: 32 kB / 382.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.3894, allocations: 365.9 kB / 382.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.3906, allocations: 0.7613 MB / 383.3 MB, free: 9.664 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.3921, allocations: 1.176 MB / 384.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.3934, allocations: 0.9354 MB / 385.4 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-06/0.3935, allocations: 4 kB / 385.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.00443/0.3979, allocations: 2.633 MB / 388.1 MB, free: 4.719 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.3979, allocations: 23.88 kB / 388.1 MB, free: 4.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.398, allocations: 12 kB / 388.1 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.3993, allocations: 0.5414 MB / 388.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/0.4006, allocations: 367.4 kB / 389 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007811/0.4084, allocations: 6.499 MB / 395.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.41, allocations: 119.8 kB / 395.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.4101, allocations: 64 kB / 395.7 MB, free: 12.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (167): * Single equations (assignments): 164 * 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: 2 * 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: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001681/0.4118, allocations: 0.712 MB / 396.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005434/0.4124, allocations: 177.8 kB / 396.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004261/0.4166, allocations: 2.337 MB / 398.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.4167, allocations: 12 kB / 398.9 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.4167, allocations: 4 kB / 398.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4167, allocations: 11.97 kB / 398.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008444/0.4252, allocations: 4.838 MB / 403.8 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4252, allocations: 4 kB / 403.8 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008862/0.4261, allocations: 219.7 kB / 404 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001455/0.4275, allocations: 0.5764 MB / 404.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.705e-05/0.4277, allocations: 31.98 kB / 404.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009075/0.4367, allocations: 8.007 MB / 412.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/0.4368, allocations: 4 kB / 412.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006399/0.4432, allocations: 3.505 MB / 416.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.4446, allocations: 398.8 kB / 416.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000533/0.4451, allocations: 39.98 kB / 416.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.4463, allocations: 91.89 kB / 416.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003198/0.4467, allocations: 104.8 kB / 416.7 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/0.4468, allocations: 32 kB / 416.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002088/0.4489, allocations: 1.016 MB / 417.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4489, allocations: 0 / 417.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002377/0.4513, allocations: 0.496 MB / 418.3 MB, free: 5.539 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (102): * Single equations (assignments): 99 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(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.0004335/0.4517, allocations: 167 kB / 418.5 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.4561, allocations: 2.353 MB / 420.8 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.4562, allocations: 4 kB / 420.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/0.4588, allocations: 1.49 MB / 422.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002449/0.4613, allocations: 437.1 kB / 422.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.4715, allocations: 5.621 MB / 428.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.4739, allocations: 1.919 MB / 430.3 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001508/0.4754, allocations: 378.8 kB / 430.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/0.4759, allocations: 123.4 kB / 430.8 MB, free: 8.875 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4759, allocations: 3.938 kB / 430.8 MB, free: 8.871 MB / 366.1 MB Notification: Performance of Templates: time 0.2656/0.7415, allocations: 25.16 MB / 455.9 MB, free: 112.4 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: