Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001209/0.001209, allocations: 108.5 kB / 17.06 MB, free: 6.02 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.001144/0.001144, allocations: 199.9 kB / 18 MB, free: 5.098 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.448/1.448, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001094/0.001094, allocations: 51.94 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0833/0.0844, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2318/0.3162, allocations: 20.22 MB / 394.7 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01639/0.3327, allocations: 5.945 MB / 400.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007071/0.3398, allocations: 115.7 kB / 400.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006459/0.3464, allocations: 1.338 MB / 402.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0107/0.3571, allocations: 1.913 MB / 404 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005503/0.3626, allocations: 1.244 MB / 405.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01199/0.3746, allocations: 6.125 MB / 411.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01253/0.3872, allocations: 5.365 MB / 416.8 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007117/0.3944, allocations: 2.835 MB / 419.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007906/0.4023, allocations: 3.393 MB / 423 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00306/0.4054, allocations: 0.7812 MB / 423.8 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004857/0.4103, allocations: 1.062 MB / 424.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003572/0.4139, allocations: 1.952 MB / 426.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007353/0.4213, allocations: 3.345 MB / 430.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/0.4372, allocations: 10.3 MB / 440.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.4373, allocations: 0 / 440.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4373, allocations: 0 / 440.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004501/0.4377, allocations: 0 / 440.4 MB, free: 13.53 MB / 366.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.02086/0.4586, allocations: 6.586 MB / 447 MB, free: 6.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4587, allocations: 8.031 kB / 447 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005946/0.4646, allocations: 1.009 MB / 448 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008376/0.473, allocations: 3.337 MB / 451.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00041/0.4735, allocations: 386.6 kB / 451.8 MB, free: 2.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.4751, allocations: 0.508 MB / 452.3 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.4888, allocations: 6.779 MB / 459 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001423/0.489, allocations: 15.89 kB / 459.1 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005233/0.4895, allocations: 204 kB / 459.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002168/0.4898, allocations: 242.2 kB / 459.5 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/0.5014, allocations: 5.74 MB / 465.2 MB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03546/0.5369, allocations: 20.83 MB / 486.1 MB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007921/0.5449, allocations: 8.538 MB / 494.6 MB, free: 5.652 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/0.548, allocations: 2.097 MB / 496.7 MB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/0.5585, allocations: 5.919 MB / 0.4908 GB, free: 13.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.367e-05/0.5586, allocations: 52.56 kB / 0.4909 GB, free: 13.43 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 3.456e-06/0.5586, allocations: 4 kB / 0.4909 GB, free: 13.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.01996/0.5786, allocations: 10.27 MB / 0.5009 GB, free: 2.926 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.5786, allocations: 73.41 kB / 0.501 GB, free: 2.844 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004186/0.5828, allocations: 2.916 MB / 0.5038 GB, free: 15.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002996/0.5832, allocations: 61.7 kB / 0.5039 GB, free: 15.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.5847, allocations: 2.357 MB / 0.5062 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006861/0.5854, allocations: 0.7625 MB / 0.5069 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007739/0.5861, allocations: 0.5177 MB / 0.5075 GB, free: 12.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.414e-05/0.5862, allocations: 301.1 kB / 0.5077 GB, free: 11.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/0.5882, allocations: 1.271 MB / 0.509 GB, free: 10.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002561/0.5908, allocations: 2.187 MB / 0.5111 GB, free: 8.008 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004708/0.5955, allocations: 3.664 MB / 0.5147 GB, free: 3.945 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.5956, allocations: 8 kB / 0.5147 GB, free: 3.938 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.00752/0.6031, allocations: 4.446 MB / 0.519 GB, free: 15.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.708e-05/0.6032, allocations: 16.78 kB / 0.5191 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.749e-05/0.6032, allocations: 28 kB / 0.5191 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001154/0.6044, allocations: 0.5215 MB / 0.5196 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002513/0.6069, allocations: 0.6864 MB / 0.5203 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008665/0.6156, allocations: 10.18 MB / 0.5302 GB, free: 3.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002549/0.6182, allocations: 175.8 kB / 0.5304 GB, free: 3.094 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.6185, allocations: 124 kB / 0.5305 GB, free: 2.973 MB / 462.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.002472/0.6209, allocations: 1.527 MB / 0.532 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000655/0.6216, allocations: 316.1 kB / 0.5323 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006302/0.6279, allocations: 3.875 MB / 0.5361 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.628, allocations: 24 kB / 0.5361 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.628, allocations: 11.94 kB / 0.5361 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.809e-05/0.628, allocations: 15.89 kB / 0.5361 GB, free: 13.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01503/0.643, allocations: 8.461 MB / 0.5444 GB, free: 4.445 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.6431, allocations: 4.031 kB / 0.5444 GB, free: 4.441 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001677/0.6448, allocations: 387.4 kB / 0.5448 GB, free: 4.062 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/0.6466, allocations: 0.7287 MB / 0.5455 GB, free: 3.309 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/0.6468, allocations: 63.97 kB / 0.5455 GB, free: 3.246 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2488/0.8956, allocations: 16.6 MB / 0.5617 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.8956, allocations: 7.594 kB / 0.5617 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009373/0.905, allocations: 5.556 MB / 0.5672 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002169/0.9072, allocations: 0.6537 MB / 0.5678 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006278/0.9079, allocations: 53.22 kB / 0.5679 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001679/0.9096, allocations: 135.2 kB / 0.568 GB, free: 133.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005381/0.9101, allocations: 169.6 kB / 0.5682 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001543/0.9103, allocations: 63.67 kB / 0.5682 GB, free: 133.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003612/0.9139, allocations: 1.965 MB / 0.5701 GB, free: 132.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.9139, allocations: 0 / 0.5701 GB, free: 132.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004287/0.9182, allocations: 0.9347 MB / 0.571 GB, free: 132.8 MB / 478.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.000811/0.919, allocations: 249.6 kB / 0.5713 GB, free: 132.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006883/0.9259, allocations: 3.958 MB / 0.5751 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.926, allocations: 4.875 kB / 0.5752 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004315/0.9303, allocations: 2.657 MB / 0.5777 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00536/0.9357, allocations: 0.8506 MB / 0.5786 GB, free: 129 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/0.953, allocations: 9.48 MB / 0.5878 GB, free: 124.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/0.9556, allocations: 3.295 MB / 0.5911 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002404/0.958, allocations: 0.7617 MB / 0.5918 GB, free: 123 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000594/0.9587, allocations: 224.4 kB / 0.592 GB, free: 123 MB / 478.1 MB Notification: Performance of SimCode: time 1.283e-06/0.9587, allocations: 0 / 0.592 GB, free: 123 MB / 478.1 MB Notification: Performance of Templates: time 0.0659/1.025, allocations: 46.06 MB / 0.637 GB, free: 79.85 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)