Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001127/0.001127, 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.001249/0.001249, allocations: 196.4 kB / 16.14 MB, free: 6.715 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.382/1.382, allocations: 205.1 MB / 222 MB, free: 4.98 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.001105/0.001105, allocations: 55.92 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2405, allocations: 46.62 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02161/0.2622, allocations: 19.95 MB / 344.6 MB, free: 272 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.2755, allocations: 5.897 MB / 350.5 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004913/0.2805, allocations: 111.5 kB / 350.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004868/0.2854, allocations: 1.142 MB / 351.8 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.2934, allocations: 1.733 MB / 353.5 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004208/0.2976, allocations: 1.139 MB / 354.7 MB, free: 6.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.3077, allocations: 6.66 MB / 361.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00651/0.3142, allocations: 4.479 MB / 365.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004753/0.319, allocations: 2.362 MB / 368.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006497/0.3255, allocations: 3.187 MB / 371.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002538/0.3281, allocations: 476 kB / 371.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004154/0.3323, allocations: 0.7613 MB / 372.6 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002446/0.3348, allocations: 1.608 MB / 374.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005838/0.3406, allocations: 3.013 MB / 377.2 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.3519, allocations: 9.946 MB / 387.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.116e-06/0.3519, allocations: 4 kB / 387.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3519, allocations: 0 / 387.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003406/0.3523, allocations: 0 / 387.1 MB, free: 5.531 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.0187/0.371, allocations: 6.581 MB / 393.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.371, allocations: 8.031 kB / 393.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004889/0.3759, allocations: 1.009 MB / 394.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00808/0.384, allocations: 3.283 MB / 398 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005842/0.3847, allocations: 390.8 kB / 398.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002134/0.3868, allocations: 0.4998 MB / 398.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02198/0.4088, allocations: 6.775 MB / 405.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003608/0.4092, allocations: 11.84 kB / 405.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001878/0.4111, allocations: 208 kB / 405.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003524/0.4115, allocations: 242.2 kB / 406.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/0.4271, allocations: 5.74 MB / 411.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06274/0.4899, allocations: 21.1 MB / 433 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01638/0.5063, allocations: 8.546 MB / 441.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007154/0.5135, allocations: 2.112 MB / 443.6 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0209/0.5345, allocations: 5.927 MB / 449.6 MB, free: 5.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.946e-05/0.5346, allocations: 60.56 kB / 449.6 MB, free: 5.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 8.576e-06/0.5346, allocations: 4 kB / 449.6 MB, free: 5.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.1884/0.7231, allocations: 10.25 MB / 459.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.7231, allocations: 78.88 kB / 459.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004536/0.7277, allocations: 2.907 MB / 462.8 MB, free: 104.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002079/0.7279, allocations: 61.64 kB / 462.9 MB, free: 104.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.7291, allocations: 2.352 MB / 465.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000446/0.7295, allocations: 0.7748 MB / 466 MB, free: 102.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006697/0.7302, allocations: 0.5116 MB / 466.5 MB, free: 102 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.504e-05/0.7303, allocations: 303.6 kB / 466.8 MB, free: 101.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001739/0.732, allocations: 1.267 MB / 468.1 MB, free: 101.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/0.7341, allocations: 2.179 MB / 470.3 MB, free: 99.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003892/0.738, allocations: 3.675 MB / 474 MB, free: 97.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.738, allocations: 7.812 kB / 474 MB, free: 97.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006269/0.7443, allocations: 4.444 MB / 478.4 MB, free: 95.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.7444, allocations: 21.78 kB / 478.4 MB, free: 95.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/0.7444, allocations: 28.47 kB / 478.5 MB, free: 95.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.7455, allocations: 0.5232 MB / 479 MB, free: 95.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/0.7477, allocations: 0.6856 MB / 479.7 MB, free: 94.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006313/0.754, allocations: 9.339 MB / 489 MB, free: 84.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002617/0.7567, allocations: 179.7 kB / 489.2 MB, free: 84.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002698/0.757, allocations: 128 kB / 489.3 MB, free: 84.41 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.002901/0.7599, allocations: 1.515 MB / 490.8 MB, free: 82.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007953/0.7607, allocations: 317 kB / 491.1 MB, free: 82.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005794/0.7665, allocations: 3.876 MB / 495 MB, free: 78.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.7665, allocations: 20 kB / 495 MB, free: 78.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.949e-05/0.7665, allocations: 8 kB / 495 MB, free: 78.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.82e-05/0.7666, allocations: 11.95 kB / 495.1 MB, free: 78.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.7811, allocations: 8.501 MB / 0.4918 GB, free: 69.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.7812, allocations: 4 kB / 0.4918 GB, free: 69.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.7827, allocations: 375.5 kB / 0.4921 GB, free: 69.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/0.7845, allocations: 0.7194 MB / 0.4928 GB, free: 68.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002134/0.7847, allocations: 63.97 kB / 0.4929 GB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.7952, allocations: 15.22 MB / 0.5077 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.7952, allocations: 4 kB / 0.5077 GB, free: 52.49 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/0.8034, allocations: 5.542 MB / 0.5132 GB, free: 46.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/0.805, allocations: 0.6493 MB / 0.5138 GB, free: 46.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001187/0.8063, allocations: 59.92 kB / 0.5139 GB, free: 46.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002201/0.8085, allocations: 135.9 kB / 0.514 GB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004485/0.8089, allocations: 169.6 kB / 0.5141 GB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001778/0.8091, allocations: 68.06 kB / 0.5142 GB, free: 45.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003563/0.8127, allocations: 1.963 MB / 0.5161 GB, free: 43.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8127, allocations: 0 / 0.5161 GB, free: 43.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003907/0.8166, allocations: 0.9322 MB / 0.517 GB, free: 42.82 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.0005794/0.8172, allocations: 253.6 kB / 0.5173 GB, free: 42.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0057/0.8229, allocations: 3.945 MB / 0.5211 GB, free: 38.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/0.823, allocations: 0 / 0.5211 GB, free: 38.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003721/0.8267, allocations: 2.657 MB / 0.5237 GB, free: 35.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004935/0.8317, allocations: 0.7982 MB / 0.5245 GB, free: 34.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.8502, allocations: 11.73 MB / 0.536 GB, free: 23.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004726/0.8549, allocations: 3.294 MB / 0.5392 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002962/0.8579, allocations: 0.7578 MB / 0.5399 GB, free: 19.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009822/0.8589, allocations: 227.3 kB / 0.5401 GB, free: 18.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8589, allocations: 0 / 0.5401 GB, free: 18.89 MB / 382.1 MB Notification: Performance of Templates: time 0.07986/0.9388, allocations: 45.53 MB / 0.5846 GB, free: 5.293 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)