Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001656, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001751/0.001751, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 227.7 MB / 247 MB, free: 10.38 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 61.91 kB / 307.4 MB, free: 424 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1108, allocations: 50.54 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.232/0.3428, allocations: 25 MB / 382.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01337/0.3562, allocations: 6.912 MB / 389.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005381/0.3617, allocations: 168.4 kB / 390 MB, free: 3.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005594/0.3673, allocations: 1.608 MB / 391.6 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009065/0.3765, allocations: 2.112 MB / 393.7 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004495/0.381, allocations: 1.479 MB / 395.2 MB, free: 288 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01327/0.3942, allocations: 8.099 MB / 403.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01244/0.4067, allocations: 7.312 MB / 410.6 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00822/0.415, allocations: 3.832 MB / 414.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009507/0.4246, allocations: 4.659 MB / 419.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004683/0.4293, allocations: 1.094 MB / 420.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005213/0.4345, allocations: 1.34 MB / 421.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00428/0.4389, allocations: 2.447 MB / 424 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008859/0.4477, allocations: 4.54 MB / 428.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01845/0.4662, allocations: 14.15 MB / 442.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4663, allocations: 0 / 442.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4663, allocations: 0 / 442.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003433/0.4666, allocations: 0 / 442.7 MB, free: 7.324 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02711/0.4938, allocations: 8.899 MB / 451.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.4938, allocations: 8.031 kB / 451.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003577/0.4974, allocations: 0.9589 MB / 452.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01079/0.5082, allocations: 1.67 MB / 454.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.5203, allocations: 4.72 MB / 458.9 MB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006546/0.521, allocations: 0.5182 MB / 459.4 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002399/0.5234, allocations: 0.6833 MB / 460.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02659/0.5501, allocations: 9.447 MB / 469.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003537/0.5505, allocations: 23.77 kB / 469.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003088/0.5536, allocations: 280 kB / 469.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006156/0.5542, allocations: 330.2 kB / 470.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02927/0.5835, allocations: 8.078 MB / 478.3 MB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08152/0.6651, allocations: 28.97 MB / 0.4953 GB, free: 5.805 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02309/0.6882, allocations: 17.76 MB / 0.5127 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007546/0.6958, allocations: 3.514 MB / 0.5161 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01773/0.7136, allocations: 8.918 MB / 0.5248 GB, free: 5.266 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.97e-05/0.7137, allocations: 64.61 kB / 0.5249 GB, free: 5.191 MB / 446.1 MB Notification: Performance of pre-optimization done (n=259): time 4.419e-06/0.7137, allocations: 4 kB / 0.5249 GB, free: 5.188 MB / 446.1 MB Notification: Performance of matching and sorting (n=265): time 0.3794/1.093, allocations: 11.7 MB / 0.5363 GB, free: 136.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.945e-05/1.093, allocations: 83.59 kB / 0.5364 GB, free: 136.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007526/1.101, allocations: 3.412 MB / 0.5397 GB, free: 134.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006161/1.101, allocations: 67.95 kB / 0.5398 GB, free: 134.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002514/1.104, allocations: 3.065 MB / 0.5428 GB, free: 132.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001271/1.105, allocations: 0.9076 MB / 0.5437 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/1.106, allocations: 0.5971 MB / 0.5442 GB, free: 131.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.105e-05/1.107, allocations: 301.8 kB / 0.5445 GB, free: 131.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002628/1.109, allocations: 1.452 MB / 0.5459 GB, free: 130.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/1.112, allocations: 2.486 MB / 0.5484 GB, free: 128.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005737/1.118, allocations: 4.201 MB / 0.5525 GB, free: 126.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.354e-05/1.118, allocations: 9.625 kB / 0.5525 GB, free: 126.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.009813/1.128, allocations: 5.015 MB / 0.5574 GB, free: 123.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/1.128, allocations: 19.69 kB / 0.5574 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.81e-05/1.128, allocations: 34.41 kB / 0.5574 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/1.13, allocations: 0.5678 MB / 0.558 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0031/1.133, allocations: 0.7813 MB / 0.5588 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007301/1.14, allocations: 9.489 MB / 0.568 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003168/1.143, allocations: 157.4 kB / 0.5682 GB, free: 115.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003512/1.144, allocations: 158.6 kB / 0.5683 GB, free: 115.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (406): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00309/1.147, allocations: 2.075 MB / 0.5703 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007581/1.147, allocations: 372 kB / 0.5707 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006649/1.154, allocations: 4.552 MB / 0.5751 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/1.154, allocations: 29.16 kB / 0.5752 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/1.154, allocations: 14.88 kB / 0.5752 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.522e-05/1.154, allocations: 11.95 kB / 0.5752 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01514/1.169, allocations: 10.36 MB / 0.5853 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/1.169, allocations: 4 kB / 0.5853 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/1.171, allocations: 411.8 kB / 0.5857 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002433/1.174, allocations: 1.023 MB / 0.5867 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002933/1.174, allocations: 80.78 kB / 0.5868 GB, free: 101.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.189, allocations: 18.82 MB / 0.6052 GB, free: 81.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/1.189, allocations: 12.69 kB / 0.6052 GB, free: 81.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009036/1.198, allocations: 6.44 MB / 0.6115 GB, free: 75.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002168/1.2, allocations: 0.7541 MB / 0.6122 GB, free: 74.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006808/1.201, allocations: 63.98 kB / 0.6123 GB, free: 74.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/1.203, allocations: 131.9 kB / 0.6124 GB, free: 74.17 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005015/1.203, allocations: 205.7 kB / 0.6126 GB, free: 73.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/1.203, allocations: 82.09 kB / 0.6127 GB, free: 73.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003026/1.206, allocations: 2.319 MB / 0.6149 GB, free: 71.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.206, allocations: 0 / 0.6149 GB, free: 71.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004586/1.211, allocations: 1.159 MB / 0.6161 GB, free: 70.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 (195): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,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.008953/1.22, allocations: 7.13 MB / 0.623 GB, free: 63.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.232, allocations: 5.877 MB / 0.6288 GB, free: 57.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.819e-06/1.232, allocations: 7.766 kB / 0.6288 GB, free: 57.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004169/1.236, allocations: 2.956 MB / 0.6317 GB, free: 54.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005809/1.242, allocations: 1.032 MB / 0.6327 GB, free: 53.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06992/1.312, allocations: 48.66 MB / 0.6802 GB, free: 15.58 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007175/1.319, allocations: 4.244 MB / 0.6843 GB, free: 11.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004605/1.324, allocations: 0.8367 MB / 0.6852 GB, free: 10.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005336/1.329, allocations: 2.553 MB / 0.6876 GB, free: 7.91 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/1.329, allocations: 0 / 0.6876 GB, free: 7.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.395/1.724, allocations: 102.1 MB / 0.7873 GB, free: 105.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/14.24, allocations: 7.125 kB / 0.7873 GB, free: 105.3 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1)