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.00107/0.00107, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007416/0.007416, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.416/1.416, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0006565/0.0006565, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2747, allocations: 47.58 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01915/0.2939, allocations: 19.13 MB / 346.2 MB, free: 188 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.3059, allocations: 5.827 MB / 352 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003426/0.3093, allocations: 107.5 kB / 352.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004054/0.3134, allocations: 1.142 MB / 353.2 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006851/0.3203, allocations: 1.733 MB / 355 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003935/0.3242, allocations: 1.115 MB / 356.1 MB, free: 6.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.3356, allocations: 6.66 MB / 362.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0086/0.3442, allocations: 4.436 MB / 367.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004049/0.3483, allocations: 2.03 MB / 369.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005541/0.3539, allocations: 2.781 MB / 372 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001878/0.3558, allocations: 324 kB / 372.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003074/0.3589, allocations: 0.6206 MB / 372.9 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002432/0.3613, allocations: 1.382 MB / 374.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005899/0.3673, allocations: 2.761 MB / 377.1 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.378, allocations: 9.631 MB / 386.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.378, allocations: 0 / 386.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3781, allocations: 3.938 kB / 386.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002948/0.3784, allocations: 0 / 386.7 MB, free: 7.406 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.0148/0.3932, allocations: 5.525 MB / 392.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3932, allocations: 8.031 kB / 392.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005523/0.3987, allocations: 1.017 MB / 393.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00786/0.4066, allocations: 3.271 MB / 396.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004974/0.4072, allocations: 402.8 kB / 396.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001558/0.4087, allocations: 0.5114 MB / 397.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4241, allocations: 6.775 MB / 404.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001688/0.4243, allocations: 15.84 kB / 404.2 MB, free: 5.656 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007515/0.425, allocations: 208 kB / 404.4 MB, free: 5.453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002487/0.4253, allocations: 246.2 kB / 404.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/0.4384, allocations: 5.771 MB / 410.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04004/0.4784, allocations: 21.2 MB / 431.6 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0087/0.4872, allocations: 8.561 MB / 440.2 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003566/0.4908, allocations: 2.128 MB / 442.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.5013, allocations: 5.97 MB / 448.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.5014, allocations: 56.56 kB / 448.3 MB, free: 7.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.938e-06/0.5014, allocations: 0 / 448.3 MB, free: 7.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.2413/0.7427, allocations: 10.41 MB / 458.8 MB, free: 106.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.7428, allocations: 73.66 kB / 458.8 MB, free: 106.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005391/0.7482, allocations: 2.905 MB / 461.7 MB, free: 105.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004082/0.7486, allocations: 62.45 kB / 461.8 MB, free: 105.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.7502, allocations: 2.356 MB / 464.2 MB, free: 103.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006338/0.7508, allocations: 0.7654 MB / 464.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/0.7511, allocations: 235.2 kB / 465.1 MB, free: 103 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.944e-05/0.7512, allocations: 301.1 kB / 465.4 MB, free: 102.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/0.7531, allocations: 1.286 MB / 466.7 MB, free: 102.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.7552, allocations: 2.192 MB / 468.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00396/0.7592, allocations: 3.695 MB / 472.6 MB, free: 98.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.957e-05/0.7592, allocations: 9.281 kB / 472.6 MB, free: 98.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006947/0.7662, allocations: 4.482 MB / 477.1 MB, free: 96.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.7662, allocations: 19.28 kB / 477.1 MB, free: 96.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.529e-05/0.7663, allocations: 33.56 kB / 477.2 MB, free: 96.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.7674, allocations: 0.5092 MB / 477.7 MB, free: 96.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/0.7698, allocations: 0.7011 MB / 478.4 MB, free: 96.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006359/0.7762, allocations: 9.329 MB / 487.7 MB, free: 87.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002874/0.7791, allocations: 183.7 kB / 487.9 MB, free: 86.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/0.7793, allocations: 128 kB / 488 MB, free: 86.72 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.00272/0.7821, allocations: 1.523 MB / 489.5 MB, free: 85.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007268/0.7828, allocations: 318.4 kB / 489.8 MB, free: 84.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005536/0.7883, allocations: 3.909 MB / 493.7 MB, free: 80.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.7884, allocations: 20 kB / 493.8 MB, free: 80.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.7884, allocations: 11.98 kB / 493.8 MB, free: 80.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.7884, allocations: 11.97 kB / 493.8 MB, free: 80.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/0.8018, allocations: 8.514 MB / 0.4905 GB, free: 72.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.8018, allocations: 4 kB / 0.4905 GB, free: 72.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001545/0.8034, allocations: 395.9 kB / 0.4909 GB, free: 71.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001797/0.8052, allocations: 0.7198 MB / 0.4916 GB, free: 71.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.8053, allocations: 59.98 kB / 0.4917 GB, free: 70.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.816, allocations: 15.22 MB / 0.5065 GB, free: 54.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.371e-06/0.8161, allocations: 7.938 kB / 0.5065 GB, free: 54.71 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00793/0.824, allocations: 5.591 MB / 0.512 GB, free: 48.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/0.8259, allocations: 0.6682 MB / 0.5127 GB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005527/0.8265, allocations: 55.92 kB / 0.5127 GB, free: 48.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.828, allocations: 143.9 kB / 0.5128 GB, free: 48.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003774/0.8284, allocations: 173.6 kB / 0.513 GB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.8285, allocations: 63.98 kB / 0.5131 GB, free: 47.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002561/0.8311, allocations: 1.963 MB / 0.515 GB, free: 45.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8311, allocations: 0 / 0.515 GB, free: 45.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0035/0.8346, allocations: 0.9322 MB / 0.5159 GB, free: 44.98 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.0005351/0.8351, allocations: 254.8 kB / 0.5161 GB, free: 44.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00555/0.8407, allocations: 3.981 MB / 0.52 GB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.8407, allocations: 0 / 0.52 GB, free: 40.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003701/0.8444, allocations: 2.676 MB / 0.5226 GB, free: 37.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005774/0.8502, allocations: 0.7913 MB / 0.5234 GB, free: 37.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01618/0.8664, allocations: 11.97 MB / 0.5351 GB, free: 25.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.8691, allocations: 3.29 MB / 0.5383 GB, free: 21.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003078/0.8722, allocations: 0.7655 MB / 0.5391 GB, free: 20.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.8728, allocations: 223.4 kB / 0.5393 GB, free: 20.75 MB / 382.1 MB Notification: Performance of SimCode: time 2.745e-06/0.8728, allocations: 0 / 0.5393 GB, free: 20.75 MB / 382.1 MB Notification: Performance of Templates: time 0.07901/0.9518, allocations: 44.91 MB / 0.5831 GB, free: 7.773 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)