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.InductionMachines.ComparisonPolyphase.IMC_DOL_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.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_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.001296/0.001296, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.451/1.451, allocations: 227.7 MB / 247 MB, free: 10.3 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.001934/0.001935, allocations: 65.81 kB / 307.4 MB, free: 376 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1147, allocations: 50.55 MB / 357.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase): time 0.1963/0.311, allocations: 25.36 MB / 383.3 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.3283, allocations: 6.953 MB / 390.2 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008131/0.3365, allocations: 166 kB / 390.4 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005742/0.3422, allocations: 1.655 MB / 392 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008277/0.3505, allocations: 2.263 MB / 394.3 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004529/0.3551, allocations: 1.473 MB / 395.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.3688, allocations: 10.01 MB / 405.8 MB, free: 10 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01386/0.3827, allocations: 9.053 MB / 414.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008684/0.3914, allocations: 4.705 MB / 419.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01065/0.4021, allocations: 5.625 MB / 425.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003938/0.4061, allocations: 1.305 MB / 426.5 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006421/0.4125, allocations: 1.543 MB / 428 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005765/0.4183, allocations: 2.965 MB / 431 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01233/0.4307, allocations: 5.477 MB / 436.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02365/0.4544, allocations: 17.07 MB / 453.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.4544, allocations: 3.938 kB / 453.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4545, allocations: 0 / 453.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005436/0.455, allocations: 3.938 kB / 453.5 MB, free: 12.23 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03767/0.4927, allocations: 10.74 MB / 464.3 MB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.014e-05/0.4928, allocations: 8.031 kB / 464.3 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004288/0.4971, allocations: 1.099 MB / 465.4 MB, free: 276 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01373/0.5108, allocations: 2.117 MB / 467.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/0.5263, allocations: 5.872 MB / 473.4 MB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008952/0.5272, allocations: 0.5943 MB / 474 MB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003743/0.531, allocations: 0.7849 MB / 474.7 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/0.5629, allocations: 11.34 MB / 486.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003701/0.5633, allocations: 7.906 kB / 486.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002415/0.5657, allocations: 332 kB / 486.4 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004443/0.5662, allocations: 376.2 kB / 486.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02425/0.5904, allocations: 9.91 MB / 496.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0764/0.6669, allocations: 34.68 MB / 0.5189 GB, free: 13.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.325/0.9919, allocations: 21.06 MB / 0.5395 GB, free: 122.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008356/1, allocations: 4.282 MB / 0.5437 GB, free: 122.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01913/1.019, allocations: 10.66 MB / 0.5541 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.48e-05/1.02, allocations: 66.23 kB / 0.5541 GB, free: 117.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=319): time 6.873e-06/1.02, allocations: 3.969 kB / 0.5541 GB, free: 117.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=325): time 0.03215/1.052, allocations: 15.78 MB / 0.5695 GB, free: 110.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.971e-05/1.052, allocations: 84.97 kB / 0.5696 GB, free: 110.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006889/1.059, allocations: 4.584 MB / 0.5741 GB, free: 108.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008198/1.06, allocations: 81.33 kB / 0.5742 GB, free: 108.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002364/1.062, allocations: 3.604 MB / 0.5777 GB, free: 106 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001501/1.063, allocations: 1.095 MB / 0.5788 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/1.065, allocations: 0.703 MB / 0.5795 GB, free: 104.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.815e-05/1.065, allocations: 306.2 kB / 0.5797 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002727/1.067, allocations: 1.89 MB / 0.5816 GB, free: 103.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002958/1.07, allocations: 2.985 MB / 0.5845 GB, free: 101.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/1.076, allocations: 5.104 MB / 0.5895 GB, free: 95.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.902e-05/1.076, allocations: 8 kB / 0.5895 GB, free: 95.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.009048/1.085, allocations: 6.42 MB / 0.5958 GB, free: 89.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/1.085, allocations: 20 kB / 0.5958 GB, free: 89.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.321e-05/1.085, allocations: 33.19 kB / 0.5958 GB, free: 89.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/1.088, allocations: 1.037 MB / 0.5968 GB, free: 88.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/1.09, allocations: 0.8111 MB / 0.5976 GB, free: 87.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/1.104, allocations: 17.92 MB / 0.6151 GB, free: 68.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003628/1.108, allocations: 183.8 kB / 0.6153 GB, free: 68.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006068/1.108, allocations: 164 kB / 0.6155 GB, free: 68.32 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 8 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (434): * Single equations (assignments): 425 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 7 * 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): 7 systems {(1,8,100.0%), (1,1,100.0%), (3,23,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (4,24,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004347/1.113, allocations: 2.609 MB / 0.618 GB, free: 65.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.114, allocations: 478.2 kB / 0.6185 GB, free: 65.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008999/1.123, allocations: 6.006 MB / 0.6243 GB, free: 59.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.45e-05/1.123, allocations: 28 kB / 0.6244 GB, free: 59.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.2e-05/1.123, allocations: 24 kB / 0.6244 GB, free: 59.05 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.031e-05/1.123, allocations: 19.94 kB / 0.6244 GB, free: 59.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0272/1.15, allocations: 13.2 MB / 0.6373 GB, free: 45.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/1.15, allocations: 4 kB / 0.6373 GB, free: 45.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/1.152, allocations: 371.5 kB / 0.6376 GB, free: 45.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003759/1.156, allocations: 1.639 MB / 0.6392 GB, free: 43.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004183/1.156, allocations: 91.95 kB / 0.6393 GB, free: 43.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02416/1.18, allocations: 27.91 MB / 0.6666 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/1.18, allocations: 8 kB / 0.6666 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01464/1.195, allocations: 8.573 MB / 0.675 GB, free: 5.652 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003198/1.198, allocations: 0.9717 MB / 0.6759 GB, free: 4.656 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001706/1.2, allocations: 84.3 kB / 0.676 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003143/1.203, allocations: 167.9 kB / 0.6762 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009985/1.204, allocations: 325.9 kB / 0.6765 GB, free: 4.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004348/1.205, allocations: 95.97 kB / 0.6766 GB, free: 3.996 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005956/1.211, allocations: 3.144 MB / 0.6796 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/1.211, allocations: 0 / 0.6796 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006995/1.218, allocations: 1.475 MB / 0.6811 GB, free: 15.38 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,8,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%), (1,1,100.0%), (6,46,88.9%), (3,23,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.01745/1.235, allocations: 9.271 MB / 0.6901 GB, free: 5.891 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01906/1.254, allocations: 8.122 MB / 0.6981 GB, free: 13.64 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/1.254, allocations: 0 / 0.6981 GB, free: 13.64 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00837/1.263, allocations: 4.218 MB / 0.7022 GB, free: 9.309 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00839/1.271, allocations: 1.308 MB / 0.7035 GB, free: 8.023 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3039/1.575, allocations: 66.19 MB / 0.7681 GB, free: 117.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00902/1.584, allocations: 5.152 MB / 0.7731 GB, free: 113.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004836/1.589, allocations: 1.034 MB / 0.7741 GB, free: 112.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005306/1.594, allocations: 3.084 MB / 0.7771 GB, free: 109.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.874e-06/1.594, allocations: 0 / 0.7771 GB, free: 109.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4023/1.996, allocations: 133.3 MB / 0.9073 GB, free: 139.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/15.4, allocations: 6.75 kB / 0.9073 GB, free: 139.4 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1)