Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001886/0.001886, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.459/1.459, allocations: 205.1 MB / 222 MB, free: 4.969 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.001852/0.001852, allocations: 43.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2755, allocations: 46.63 MB / 324.7 MB, free: 1.801 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01954/0.2951, allocations: 19.95 MB / 344.6 MB, free: 152 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3068, allocations: 5.885 MB / 350.5 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003944/0.3108, allocations: 115.4 kB / 350.6 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003946/0.3148, allocations: 1.142 MB / 351.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009426/0.3243, allocations: 1.733 MB / 353.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006108/0.3304, allocations: 1.143 MB / 354.7 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01603/0.3464, allocations: 6.66 MB / 361.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01025/0.3568, allocations: 4.483 MB / 365.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005495/0.3623, allocations: 2.362 MB / 368.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006808/0.3692, allocations: 3.183 MB / 371.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001924/0.3711, allocations: 476 kB / 371.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003443/0.3746, allocations: 0.7691 MB / 372.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.3769, allocations: 1.612 MB / 374.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006565/0.3835, allocations: 3.005 MB / 377.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01446/0.398, allocations: 9.95 MB / 387.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.398, allocations: 0 / 387.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.398, allocations: 0 / 387.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003711/0.3984, allocations: 3.938 kB / 387.1 MB, free: 5.414 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02982/0.4283, allocations: 6.578 MB / 393.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.4283, allocations: 8.031 kB / 393.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009013/0.4374, allocations: 1.013 MB / 394.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01218/0.4496, allocations: 3.267 MB / 398 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007565/0.4504, allocations: 394.8 kB / 398.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002845/0.4532, allocations: 0.5076 MB / 398.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/0.4806, allocations: 6.779 MB / 405.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003417/0.481, allocations: 7.906 kB / 405.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002066/0.4831, allocations: 204 kB / 405.9 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004385/0.4836, allocations: 246.2 kB / 406.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0204/0.504, allocations: 5.74 MB / 411.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04952/0.5536, allocations: 21.09 MB / 433 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009574/0.5632, allocations: 8.546 MB / 441.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003962/0.5672, allocations: 2.112 MB / 443.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01275/0.58, allocations: 5.942 MB / 449.6 MB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.558e-05/0.5801, allocations: 56.56 kB / 449.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.937e-06/0.5801, allocations: 3.938 kB / 449.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.238/0.8181, allocations: 10.24 MB / 459.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.8182, allocations: 78.81 kB / 459.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005869/0.8241, allocations: 2.912 MB / 462.9 MB, free: 104.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004149/0.8245, allocations: 61.61 kB / 462.9 MB, free: 104.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001406/0.8259, allocations: 2.353 MB / 465.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005751/0.8265, allocations: 0.7676 MB / 466 MB, free: 102.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006637/0.8272, allocations: 0.5166 MB / 466.6 MB, free: 102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.8272, allocations: 301.1 kB / 466.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001709/0.829, allocations: 1.274 MB / 468.1 MB, free: 101.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002179/0.8311, allocations: 2.179 MB / 470.3 MB, free: 99.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00408/0.8352, allocations: 3.669 MB / 474 MB, free: 97.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.8353, allocations: 7.688 kB / 474 MB, free: 97.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006128/0.8414, allocations: 4.447 MB / 478.4 MB, free: 95.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.8414, allocations: 21.78 kB / 478.4 MB, free: 95.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.8415, allocations: 30.25 kB / 478.5 MB, free: 95.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.8425, allocations: 0.5092 MB / 479 MB, free: 95.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/0.8447, allocations: 0.6885 MB / 479.7 MB, free: 94.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00608/0.8508, allocations: 9.335 MB / 489 MB, free: 84.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/0.8533, allocations: 183.7 kB / 489.2 MB, free: 84.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.8535, allocations: 124 kB / 489.3 MB, free: 84.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002609/0.8561, allocations: 1.52 MB / 490.8 MB, free: 82.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005129/0.8566, allocations: 316.2 kB / 491.1 MB, free: 82.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.8619, allocations: 3.872 MB / 495 MB, free: 78.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.8619, allocations: 20 kB / 495 MB, free: 78.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.8619, allocations: 8 kB / 495 MB, free: 78.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.862, allocations: 11.95 kB / 495.1 MB, free: 78.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.8736, allocations: 8.493 MB / 0.4917 GB, free: 69.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.8737, allocations: 6.312 kB / 0.4917 GB, free: 69.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.8751, allocations: 389.3 kB / 0.4921 GB, free: 69.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/0.8769, allocations: 0.721 MB / 0.4928 GB, free: 68.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/0.8771, allocations: 59.97 kB / 0.4929 GB, free: 68.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/0.8882, allocations: 15.2 MB / 0.5077 GB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.8883, allocations: 10.45 kB / 0.5077 GB, free: 52.37 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008396/0.8967, allocations: 5.544 MB / 0.5132 GB, free: 46.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/0.8983, allocations: 0.6532 MB / 0.5138 GB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008983/0.8992, allocations: 64.05 kB / 0.5139 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/0.9011, allocations: 131.9 kB / 0.514 GB, free: 45.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000412/0.9015, allocations: 173.6 kB / 0.5141 GB, free: 45.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001585/0.9017, allocations: 63.98 kB / 0.5142 GB, free: 45.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003362/0.9051, allocations: 1.963 MB / 0.5161 GB, free: 43.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9051, allocations: 0 / 0.5161 GB, free: 43.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004609/0.9097, allocations: 0.9285 MB / 0.517 GB, free: 42.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (185): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000703/0.9104, allocations: 255.5 kB / 0.5173 GB, free: 42.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005692/0.9161, allocations: 3.949 MB / 0.5211 GB, free: 38.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.9161, allocations: 0 / 0.5211 GB, free: 38.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003619/0.9198, allocations: 2.658 MB / 0.5237 GB, free: 35.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004613/0.9244, allocations: 0.8089 MB / 0.5245 GB, free: 34.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/0.9423, allocations: 11.72 MB / 0.536 GB, free: 23.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003866/0.9462, allocations: 3.302 MB / 0.5392 GB, free: 19.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003005/0.9492, allocations: 0.7539 MB / 0.5399 GB, free: 18.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008468/0.9501, allocations: 223.4 kB / 0.5401 GB, free: 18.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.253e-06/0.9501, allocations: 0 / 0.5401 GB, free: 18.76 MB / 382.1 MB Notification: Performance of Templates: time 0.0788/1.029, allocations: 45.52 MB / 0.5846 GB, free: 5.172 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)