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.0009461/0.0009497, allocations: 98.77 kB / 15.05 MB, free: 1.105 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.0008944/0.0008946, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.4 MB / 222.1 MB, free: 5.477 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.0004604/0.0004606, allocations: 16 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2565, allocations: 47.59 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01741/0.274, allocations: 16.23 MB / 342.7 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.2862, allocations: 5.777 MB / 348.5 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003519/0.2897, allocations: 107.4 kB / 348.6 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003333/0.2931, allocations: 1.01 MB / 349.6 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006536/0.2996, allocations: 1.69 MB / 351.3 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003018/0.3027, allocations: 0.8265 MB / 352.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009086/0.3118, allocations: 4.076 MB / 356.2 MB, free: 5.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005948/0.3178, allocations: 3.569 MB / 359.7 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004109/0.3219, allocations: 1.907 MB / 361.6 MB, free: 168 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004484/0.3264, allocations: 2.389 MB / 364 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001361/0.3278, allocations: 320 kB / 364.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002658/0.3305, allocations: 0.5387 MB / 364.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00165/0.3322, allocations: 1.312 MB / 366.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002039/0.3342, allocations: 1.132 MB / 367.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009876/0.3441, allocations: 8.298 MB / 375.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3441, allocations: 0 / 375.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3442, allocations: 4 kB / 375.6 MB, free: 2.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003407/0.3445, allocations: 0 / 375.6 MB, free: 2.133 MB / 302.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.01505/0.3596, allocations: 5.572 MB / 381.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3596, allocations: 12.03 kB / 381.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00572/0.3653, allocations: 1.008 MB / 382.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007586/0.373, allocations: 3.213 MB / 385.4 MB, free: 8.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004805/0.3735, allocations: 410.2 kB / 385.8 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001465/0.375, allocations: 0.4958 MB / 386.3 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.3887, allocations: 6.708 MB / 393 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/0.3889, allocations: 15.84 kB / 393.1 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004586/0.3894, allocations: 204 kB / 393.3 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002249/0.3896, allocations: 250.2 kB / 393.5 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.4007, allocations: 5.728 MB / 399.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03588/0.4366, allocations: 21.12 MB / 420.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00798/0.4446, allocations: 8.55 MB / 428.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009366/0.454, allocations: 4.969 MB / 433.9 MB, free: 6.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.4541, allocations: 60.56 kB / 433.9 MB, free: 6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=219): time 3.687e-06/0.4541, allocations: 3.938 kB / 433.9 MB, free: 5.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=238): time 0.02191/0.476, allocations: 11.03 MB / 445 MB, free: 10.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.4761, allocations: 77.41 kB / 445 MB, free: 10.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004328/0.4805, allocations: 2.813 MB / 447.9 MB, free: 7.828 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003003/0.4808, allocations: 65.7 kB / 447.9 MB, free: 7.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001705/0.4825, allocations: 2.334 MB / 450.2 MB, free: 5.398 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008387/0.4834, allocations: 0.8164 MB / 451.1 MB, free: 4.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.4836, allocations: 60 kB / 451.1 MB, free: 4.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002159/0.4838, allocations: 420.2 kB / 451.5 MB, free: 4.094 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002141/0.4859, allocations: 1.322 MB / 452.9 MB, free: 2.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002765/0.4887, allocations: 2.194 MB / 455 MB, free: 192 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2025/0.6912, allocations: 1.688 MB / 456.7 MB, free: 104.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.278e-05/0.6913, allocations: 8.188 kB / 456.7 MB, free: 104.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.007846/0.6992, allocations: 4.543 MB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.458e-05/0.6992, allocations: 19.52 kB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-05/0.6993, allocations: 27.5 kB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/0.7004, allocations: 0.5158 MB / 461.8 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/0.7029, allocations: 0.7176 MB / 462.6 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006902/0.7098, allocations: 9.448 MB / 472 MB, free: 95.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/0.7127, allocations: 188.7 kB / 472.2 MB, free: 95.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.713, allocations: 133.5 kB / 472.3 MB, free: 95.08 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003077/0.7161, allocations: 1.516 MB / 473.8 MB, free: 94.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007354/0.7169, allocations: 324.9 kB / 474.2 MB, free: 94.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.7228, allocations: 4.039 MB / 478.2 MB, free: 92.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.7228, allocations: 23.44 kB / 478.2 MB, free: 92.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.587e-05/0.7229, allocations: 7.656 kB / 478.2 MB, free: 92.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.7229, allocations: 11.67 kB / 478.2 MB, free: 92.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.7366, allocations: 8.811 MB / 487.1 MB, free: 85.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.7367, allocations: 4.656 kB / 487.1 MB, free: 85.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/0.7383, allocations: 427.4 kB / 487.5 MB, free: 84.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.7399, allocations: 0.713 MB / 488.2 MB, free: 84.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.7401, allocations: 67.97 kB / 488.3 MB, free: 84.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/0.7507, allocations: 15.37 MB / 0.4918 GB, free: 67.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.7507, allocations: 4.047 kB / 0.4918 GB, free: 67.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00785/0.7586, allocations: 6.273 MB / 0.498 GB, free: 61.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.7605, allocations: 0.661 MB / 0.4986 GB, free: 60.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007126/0.7612, allocations: 67.88 kB / 0.4987 GB, free: 60.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001553/0.7628, allocations: 148 kB / 0.4988 GB, free: 60.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005041/0.7633, allocations: 181.6 kB / 0.499 GB, free: 60.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.7634, allocations: 75.97 kB / 0.4991 GB, free: 60.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00276/0.7662, allocations: 1.889 MB / 0.5009 GB, free: 58.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.91e-07/0.7662, allocations: 0 / 0.5009 GB, free: 58.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00335/0.7696, allocations: 0.9449 MB / 0.5018 GB, free: 57.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004954/0.7701, allocations: 217.9 kB / 0.502 GB, free: 57.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005357/0.7754, allocations: 4.064 MB / 0.506 GB, free: 52.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/0.7755, allocations: 0 / 0.506 GB, free: 52.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003549/0.779, allocations: 2.746 MB / 0.5087 GB, free: 50.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003721/0.7828, allocations: 0.7791 MB / 0.5094 GB, free: 49.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/0.7984, allocations: 11.53 MB / 0.5207 GB, free: 37.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/0.8012, allocations: 3.396 MB / 0.524 GB, free: 34.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002554/0.8037, allocations: 0.7697 MB / 0.5248 GB, free: 33.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005778/0.8043, allocations: 223.4 kB / 0.525 GB, free: 33.23 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.8043, allocations: 3.938 kB / 0.525 GB, free: 33.22 MB / 382.1 MB Notification: Performance of Templates: time 0.07033/0.8747, allocations: 43.55 MB / 0.5675 GB, free: 5.617 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: