Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001331/0.001331, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001454/0.001454, allocations: 188 kB / 18 MB, free: 5.219 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.625/1.625, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001987/0.001987, allocations: 47.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1266, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.2805/0.4073, allocations: 10.26 MB / 384.8 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007265/0.4146, allocations: 3.484 MB / 388.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.4166, allocations: 51.69 kB / 388.3 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002807/0.4195, allocations: 0.7675 MB / 389.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.4235, allocations: 0.8312 MB / 389.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.4249, allocations: 414.3 kB / 390.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004105/0.429, allocations: 2.761 MB / 393.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002995/0.4321, allocations: 2.371 MB / 395.4 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.4353, allocations: 1.246 MB / 396.7 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004018/0.4394, allocations: 1.579 MB / 398.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009937/0.4404, allocations: 335.3 kB / 398.6 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002019/0.4424, allocations: 438.3 kB / 399 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.4438, allocations: 0.9404 MB / 400 MB, free: 396 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003016/0.4468, allocations: 1.51 MB / 401.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006956/0.4538, allocations: 4.381 MB / 405.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.4538, allocations: 0 / 405.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.4538, allocations: 0 / 405.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002538/0.4541, allocations: 0 / 405.8 MB, free: 12.76 MB / 334.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.01131/0.4654, allocations: 3.055 MB / 408.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.4655, allocations: 13.23 kB / 408.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.4668, allocations: 307.7 kB / 409.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003395/0.4702, allocations: 1.534 MB / 410.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.4703, allocations: 169.3 kB / 410.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004103/0.4708, allocations: 224.5 kB / 411.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005928/0.4767, allocations: 2.915 MB / 414 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.198e-05/0.4768, allocations: 6.734 kB / 414.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.477, allocations: 91.23 kB / 414.1 MB, free: 7.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/0.4771, allocations: 120.8 kB / 414.3 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004694/0.4818, allocations: 2.433 MB / 416.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0156/0.4975, allocations: 9.008 MB / 425.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.4999, allocations: 1.702 MB / 427.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.5016, allocations: 0.9799 MB / 428.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003031/0.5019, allocations: 195.2 kB / 428.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.502, allocations: 47.56 kB / 428.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 3.366e-06/0.502, allocations: 0 / 428.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01627/0.5183, allocations: 6.536 MB / 435.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.5184, allocations: 68.41 kB / 435.2 MB, free: 2.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.522, allocations: 1.561 MB / 436.8 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.5223, allocations: 45.7 kB / 436.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.5234, allocations: 1.112 MB / 437.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006169/0.524, allocations: 430.5 kB / 438.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006351/0.5246, allocations: 271.4 kB / 438.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.5248, allocations: 301.1 kB / 438.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.5262, allocations: 0.7105 MB / 439.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.5278, allocations: 1.139 MB / 440.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/0.531, allocations: 1.964 MB / 442.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.07e-05/0.531, allocations: 4 kB / 442.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005374/0.5364, allocations: 2.515 MB / 445.2 MB, free: 7.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.57e-05/0.5365, allocations: 19.16 kB / 445.3 MB, free: 7.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.394e-05/0.5365, allocations: 20 kB / 445.3 MB, free: 7.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.5377, allocations: 423.3 kB / 445.7 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.5391, allocations: 347.4 kB / 446 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008101/0.5472, allocations: 7.125 MB / 453.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002213/0.5494, allocations: 107.8 kB / 453.3 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002936/0.5497, allocations: 64 kB / 453.3 MB, free: 15.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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,12,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.002171/0.5519, allocations: 0.7167 MB / 454 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007538/0.5527, allocations: 181.8 kB / 454.2 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.5573, allocations: 2.182 MB / 456.4 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.5573, allocations: 16 kB / 456.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.5573, allocations: 4 kB / 456.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5573, allocations: 11.91 kB / 456.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01069/0.568, allocations: 4.773 MB / 461.2 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.5681, allocations: 4 kB / 461.2 MB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00102/0.5691, allocations: 223.7 kB / 461.4 MB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.5705, allocations: 459.5 kB / 461.9 MB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.5706, allocations: 35.98 kB / 461.9 MB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009057/0.5797, allocations: 8.66 MB / 470.6 MB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-05/0.5797, allocations: 7.938 kB / 470.6 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00636/0.5861, allocations: 3.23 MB / 473.8 MB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.5874, allocations: 390.9 kB / 474.2 MB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/0.5882, allocations: 35.98 kB / 474.2 MB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.5897, allocations: 83.91 kB / 474.3 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003721/0.5901, allocations: 104.7 kB / 474.4 MB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.5902, allocations: 36 kB / 474.5 MB, free: 9.156 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002415/0.5927, allocations: 1.074 MB / 475.5 MB, free: 8.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5927, allocations: 0 / 475.5 MB, free: 8.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002942/0.5956, allocations: 484 kB / 476 MB, free: 7.613 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * 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,12,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.0005455/0.5962, allocations: 191.2 kB / 476.2 MB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004473/0.6007, allocations: 2.305 MB / 478.5 MB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.228e-06/0.6007, allocations: 0 / 478.5 MB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002688/0.6034, allocations: 1.474 MB / 480 MB, free: 3.531 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.6068, allocations: 493 kB / 480.4 MB, free: 3.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.6168, allocations: 4.673 MB / 485.1 MB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/0.6197, allocations: 1.879 MB / 487 MB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001756/0.6215, allocations: 386.9 kB / 487.4 MB, free: 12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006037/0.6221, allocations: 123.4 kB / 487.5 MB, free: 11.88 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6221, allocations: 0 / 487.5 MB, free: 11.88 MB / 414.1 MB Notification: Performance of Templates: time 0.06267/0.6848, allocations: 26.82 MB / 0.5023 GB, free: 1.008 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)