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.001604/0.001603, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002364/0.002364, allocations: 191.1 kB / 16.25 MB, free: 6.582 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.474/1.474, allocations: 205.1 MB / 222.1 MB, free: 4.656 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.001153/0.001153, allocations: 43.94 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2143, allocations: 46.64 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02003/0.2344, allocations: 19.95 MB / 344.8 MB, free: 84 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.2478, allocations: 5.85 MB / 350.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004863/0.2528, allocations: 107.5 kB / 350.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004014/0.2568, allocations: 1.162 MB / 351.9 MB, free: 8.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00708/0.2639, allocations: 1.717 MB / 353.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003386/0.2673, allocations: 1.119 MB / 354.8 MB, free: 6.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008998/0.2763, allocations: 6.22 MB / 361 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006416/0.2828, allocations: 5.355 MB / 366.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004057/0.2868, allocations: 2.749 MB / 369.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004663/0.2915, allocations: 3.398 MB / 372.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.2928, allocations: 0.7773 MB / 373.3 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002044/0.2948, allocations: 1.074 MB / 374.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00163/0.2965, allocations: 1.94 MB / 376.3 MB, free: 448 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003665/0.3001, allocations: 3.345 MB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.3113, allocations: 10.18 MB / 389.8 MB, free: 2.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.85e-06/0.3113, allocations: 3.938 kB / 389.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3113, allocations: 0 / 389.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002786/0.3116, allocations: 0 / 389.8 MB, free: 2.855 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.0167/0.3283, allocations: 6.574 MB / 396.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3284, allocations: 8.031 kB / 396.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004611/0.333, allocations: 1.013 MB / 397.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006274/0.3393, allocations: 3.275 MB / 400.7 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004148/0.3398, allocations: 398.8 kB / 401.1 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.3414, allocations: 0.4998 MB / 401.6 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.3552, allocations: 6.779 MB / 408.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.3554, allocations: 7.906 kB / 408.4 MB, free: 76 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005248/0.3559, allocations: 208.1 kB / 408.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002237/0.3561, allocations: 238.2 kB / 408.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01239/0.3685, allocations: 5.74 MB / 414.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06374/0.4323, allocations: 21.11 MB / 435.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01537/0.4477, allocations: 8.538 MB / 444.2 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006306/0.4541, allocations: 2.12 MB / 446.3 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01693/0.4711, allocations: 5.931 MB / 452.2 MB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.914e-05/0.4712, allocations: 56.56 kB / 452.3 MB, free: 2.523 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.777e-06/0.4712, allocations: 4 kB / 452.3 MB, free: 2.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.1925/0.6636, allocations: 10.27 MB / 462.6 MB, free: 104.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.6637, allocations: 80.94 kB / 462.6 MB, free: 104.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.6672, allocations: 2.902 MB / 465.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.6675, allocations: 65.42 kB / 465.6 MB, free: 103.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/0.6686, allocations: 2.353 MB / 468 MB, free: 101.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005561/0.6692, allocations: 0.7705 MB / 468.7 MB, free: 101.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006573/0.6699, allocations: 0.5182 MB / 469.2 MB, free: 100.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.6699, allocations: 301.1 kB / 469.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.6717, allocations: 1.271 MB / 470.8 MB, free: 100.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001856/0.6735, allocations: 2.176 MB / 473 MB, free: 98.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003623/0.6772, allocations: 3.667 MB / 476.7 MB, free: 96.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.6772, allocations: 7.875 kB / 476.7 MB, free: 96.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00647/0.6837, allocations: 4.443 MB / 481.1 MB, free: 93.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/0.6838, allocations: 26.64 kB / 481.1 MB, free: 93.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.886e-05/0.6838, allocations: 32.03 kB / 481.2 MB, free: 93.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.6848, allocations: 0.5077 MB / 481.7 MB, free: 92.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002177/0.687, allocations: 0.6942 MB / 482.4 MB, free: 91.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006283/0.6933, allocations: 10.19 MB / 492.5 MB, free: 81.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/0.6961, allocations: 179.7 kB / 492.7 MB, free: 80.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002183/0.6963, allocations: 128 kB / 492.8 MB, free: 80.84 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.002493/0.6988, allocations: 1.516 MB / 494.4 MB, free: 79.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000771/0.6996, allocations: 316.2 kB / 494.7 MB, free: 79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005317/0.7049, allocations: 3.866 MB / 498.5 MB, free: 75.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.7049, allocations: 20 kB / 498.6 MB, free: 75.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.7049, allocations: 8 kB / 498.6 MB, free: 75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.705, allocations: 11.95 kB / 498.6 MB, free: 74.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.7163, allocations: 8.506 MB / 0.4952 GB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.7164, allocations: 4 kB / 0.4952 GB, free: 66.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.7178, allocations: 379.5 kB / 0.4956 GB, free: 65.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001622/0.7195, allocations: 0.736 MB / 0.4963 GB, free: 65.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.7196, allocations: 59.92 kB / 0.4963 GB, free: 65.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.7299, allocations: 16.62 MB / 0.5126 GB, free: 47.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.7299, allocations: 7.938 kB / 0.5126 GB, free: 47.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007199/0.7371, allocations: 5.545 MB / 0.518 GB, free: 41.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.7385, allocations: 0.6532 MB / 0.5186 GB, free: 41.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004218/0.739, allocations: 51.94 kB / 0.5187 GB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/0.7405, allocations: 139.9 kB / 0.5188 GB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003851/0.7409, allocations: 161.6 kB / 0.519 GB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.741, allocations: 71.97 kB / 0.519 GB, free: 40.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002259/0.7432, allocations: 1.967 MB / 0.521 GB, free: 38.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7432, allocations: 0 / 0.521 GB, free: 38.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003491/0.7467, allocations: 0.9283 MB / 0.5219 GB, free: 37.78 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.0006057/0.7474, allocations: 259.2 kB / 0.5221 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009342/0.7567, allocations: 5.402 MB / 0.5274 GB, free: 32.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.792e-06/0.7567, allocations: 4 kB / 0.5274 GB, free: 32.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00323/0.76, allocations: 2.645 MB / 0.53 GB, free: 29.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003833/0.7638, allocations: 0.8429 MB / 0.5308 GB, free: 28.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/0.7776, allocations: 11.74 MB / 0.5423 GB, free: 16.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.7799, allocations: 3.298 MB / 0.5455 GB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002347/0.7822, allocations: 0.7617 MB / 0.5462 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005659/0.7828, allocations: 223.4 kB / 0.5464 GB, free: 12.35 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.7828, allocations: 0 / 0.5464 GB, free: 12.35 MB / 382.1 MB Notification: Performance of Templates: time 0.07615/0.859, allocations: 47.23 MB / 0.5926 GB, free: 13.07 MB / 430.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)