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.009352/0.009353, allocations: 102 kB / 15.73 MB, free: 6.039 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.002053/0.002053, allocations: 194.1 kB / 16.67 MB, free: 5.969 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.873/1.873, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001274/0.001274, allocations: 54.02 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1363, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01366/0.15, allocations: 9.583 MB / 382.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008956/0.159, allocations: 3.159 MB / 385.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003112/0.1622, allocations: 43.81 kB / 386 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003113/0.1654, allocations: 0.6753 MB / 386.6 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.1704, allocations: 0.757 MB / 387.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.1721, allocations: 403.4 kB / 387.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004499/0.1766, allocations: 2.553 MB / 390.3 MB, free: 68 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.1795, allocations: 2.282 MB / 392.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.1818, allocations: 1.172 MB / 393.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00218/0.184, allocations: 1.506 MB / 395.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005329/0.1845, allocations: 316 kB / 395.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009988/0.1855, allocations: 427.8 kB / 396 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009707/0.1865, allocations: 0.8922 MB / 396.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001924/0.1884, allocations: 1.427 MB / 398.4 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005557/0.194, allocations: 4.147 MB / 402.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.1941, allocations: 0 / 402.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1941, allocations: 0 / 402.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.1943, allocations: 0 / 402.5 MB, free: 3.816 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.009232/0.2036, allocations: 2.9 MB / 405.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.2036, allocations: 11.89 kB / 405.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/0.2047, allocations: 285.7 kB / 405.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003694/0.2084, allocations: 1.449 MB / 407.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.2086, allocations: 160.3 kB / 407.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004607/0.2091, allocations: 215.9 kB / 407.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006476/0.2156, allocations: 2.796 MB / 410.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.155e-05/0.2157, allocations: 0 / 410.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/0.2159, allocations: 88 kB / 410.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.2161, allocations: 108.1 kB / 410.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005211/0.2213, allocations: 2.343 MB / 412.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0195/0.2408, allocations: 8.503 MB / 421.3 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003596/0.2444, allocations: 1.695 MB / 423 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.2468, allocations: 0.9604 MB / 424 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003993/0.2472, allocations: 207.2 kB / 424.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.929e-05/0.2473, allocations: 51.44 kB / 424.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.506e-06/0.2473, allocations: 0 / 424.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01437/0.2617, allocations: 6.106 MB / 430.4 MB, free: 7.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.2617, allocations: 64.34 kB / 430.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/0.2639, allocations: 1.437 MB / 431.9 MB, free: 5.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.464e-05/0.264, allocations: 45.7 kB / 431.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008151/0.2648, allocations: 1.037 MB / 432.9 MB, free: 4.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000333/0.2651, allocations: 406.1 kB / 433.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/0.2656, allocations: 259.3 kB / 433.6 MB, free: 3.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.2658, allocations: 365.9 kB / 433.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.267, allocations: 0.6832 MB / 434.6 MB, free: 2.824 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.2684, allocations: 1.078 MB / 435.7 MB, free: 1.582 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.271, allocations: 1.852 MB / 437.6 MB, free: 15.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.271, allocations: 11.88 kB / 437.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004125/0.2751, allocations: 2.394 MB / 440 MB, free: 13.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.2751, allocations: 12 kB / 440 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.2752, allocations: 12 kB / 440 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009831/0.2762, allocations: 431.1 kB / 440.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.2773, allocations: 331.5 kB / 440.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006972/0.2843, allocations: 7.029 MB / 447.8 MB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001389/0.2857, allocations: 99.94 kB / 447.9 MB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.2859, allocations: 59.98 kB / 447.9 MB, free: 4.734 MB / 382.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.001294/0.2872, allocations: 0.6934 MB / 448.6 MB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003061/0.2875, allocations: 162 kB / 448.8 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.2912, allocations: 2.115 MB / 450.9 MB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.2912, allocations: 12 kB / 450.9 MB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.2912, allocations: 4 kB / 450.9 MB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.2912, allocations: 3.984 kB / 450.9 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2325/0.5237, allocations: 4.555 MB / 455.5 MB, free: 68.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.5238, allocations: 3.469 kB / 455.5 MB, free: 68.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5249, allocations: 216.9 kB / 455.7 MB, free: 68.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.5262, allocations: 445.6 kB / 456.1 MB, free: 68.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.5263, allocations: 32.86 kB / 456.1 MB, free: 68.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008325/0.5346, allocations: 8.625 MB / 464.8 MB, free: 62.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.5347, allocations: 4.344 kB / 464.8 MB, free: 62.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006459/0.5411, allocations: 3.102 MB / 467.9 MB, free: 60.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.5422, allocations: 385 kB / 468.2 MB, free: 60.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002665/0.5425, allocations: 36.33 kB / 468.3 MB, free: 60.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009613/0.5434, allocations: 85.53 kB / 468.4 MB, free: 60.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003339/0.5438, allocations: 94.58 kB / 468.5 MB, free: 60.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.492e-05/0.5439, allocations: 38.5 kB / 468.5 MB, free: 60.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001643/0.5455, allocations: 0.9893 MB / 469.5 MB, free: 60.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5455, allocations: 0 / 469.5 MB, free: 60.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001799/0.5473, allocations: 462.2 kB / 469.9 MB, free: 60.28 MB / 382.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.0003829/0.5477, allocations: 191.4 kB / 470.1 MB, free: 60.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003707/0.5515, allocations: 2.218 MB / 472.3 MB, free: 59.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.5515, allocations: 3.969 kB / 472.3 MB, free: 59.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.5535, allocations: 1.449 MB / 473.8 MB, free: 58.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.5555, allocations: 424.9 kB / 474.2 MB, free: 58.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.5616, allocations: 4.453 MB / 478.7 MB, free: 56.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.5627, allocations: 1.798 MB / 480.5 MB, free: 55.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009391/0.5637, allocations: 369.1 kB / 480.8 MB, free: 54.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000309/0.564, allocations: 117.6 kB / 480.9 MB, free: 54.88 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.564, allocations: 0 / 480.9 MB, free: 54.88 MB / 382.1 MB Notification: Performance of Templates: time 0.0375/0.6015, allocations: 24.79 MB / 0.4939 GB, free: 30.32 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)