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.IMC_DOL.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.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001442/0.001442, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 198 kB / 18.73 MB, free: 4.312 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.448/1.448, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002276/0.002276, allocations: 63.91 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3156, allocations: 50.55 MB / 409.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.02454/0.3402, allocations: 20.17 MB / 429.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.3534, allocations: 5.93 MB / 435.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004029/0.3575, allocations: 123.6 kB / 435.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004399/0.362, allocations: 1.319 MB / 436.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007019/0.369, allocations: 1.879 MB / 438.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003664/0.3727, allocations: 1.211 MB / 439.7 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01019/0.3829, allocations: 6.441 MB / 446.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009117/0.3921, allocations: 5.417 MB / 451.6 MB, free: 6.766 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005886/0.398, allocations: 2.967 MB / 454.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006852/0.4049, allocations: 3.612 MB / 458.2 MB, free: 168 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002643/0.4076, allocations: 0.8008 MB / 459 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.4117, allocations: 1.089 MB / 460 MB, free: 14.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003739/0.4154, allocations: 1.991 MB / 462 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007698/0.4232, allocations: 3.442 MB / 465.5 MB, free: 8.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01689/0.4401, allocations: 10.69 MB / 476.2 MB, free: 14.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.072e-05/0.4402, allocations: 4 kB / 476.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4402, allocations: 4 kB / 476.2 MB, free: 14.08 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004296/0.4406, allocations: 0 / 476.2 MB, free: 14.08 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02358/0.4642, allocations: 6.887 MB / 483.1 MB, free: 7.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.4643, allocations: 12.03 kB / 483.1 MB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002596/0.4669, allocations: 0.7039 MB / 483.8 MB, free: 6.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006745/0.4737, allocations: 1.114 MB / 484.9 MB, free: 5.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009672/0.4834, allocations: 3.766 MB / 488.7 MB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000457/0.4839, allocations: 386.4 kB / 489 MB, free: 1.043 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001895/0.4858, allocations: 0.5116 MB / 489.6 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.5047, allocations: 6.961 MB / 496.5 MB, free: 9.492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/0.505, allocations: 11.94 kB / 496.5 MB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001176/0.5061, allocations: 212 kB / 496.7 MB, free: 9.273 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002967/0.5064, allocations: 238.2 kB / 497 MB, free: 9.039 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01472/0.5212, allocations: 5.931 MB / 0.4911 GB, free: 3.098 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04502/0.5662, allocations: 21.24 MB / 0.5119 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.5772, allocations: 8.737 MB / 0.5204 GB, free: 3.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00478/0.582, allocations: 2.37 MB / 0.5227 GB, free: 1.316 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01271/0.5948, allocations: 6.363 MB / 0.5289 GB, free: 10.78 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.336e-05/0.5949, allocations: 52.56 kB / 0.529 GB, free: 10.72 MB / 462.1 MB Notification: Performance of pre-optimization done (n=219): time 8.035e-06/0.5949, allocations: 7.984 kB / 0.529 GB, free: 10.71 MB / 462.1 MB Notification: Performance of matching and sorting (n=238): time 0.2483/0.8432, allocations: 11.39 MB / 0.5401 GB, free: 119.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.372e-05/0.8433, allocations: 76.25 kB / 0.5402 GB, free: 119.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005523/0.8488, allocations: 3.021 MB / 0.5431 GB, free: 118.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005297/0.8494, allocations: 68.14 kB / 0.5432 GB, free: 118.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001419/0.8508, allocations: 2.385 MB / 0.5455 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008158/0.8517, allocations: 0.8563 MB / 0.5463 GB, free: 117 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007822/0.8525, allocations: 0.5092 MB / 0.5468 GB, free: 116.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.8525, allocations: 301.1 kB / 0.5471 GB, free: 116.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/0.8544, allocations: 1.358 MB / 0.5485 GB, free: 115.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002196/0.8566, allocations: 2.129 MB / 0.5505 GB, free: 114.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/0.861, allocations: 3.696 MB / 0.5541 GB, free: 112.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.861, allocations: 6.594 kB / 0.5542 GB, free: 112.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006904/0.8679, allocations: 4.684 MB / 0.5587 GB, free: 110.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.868, allocations: 15.41 kB / 0.5587 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-05/0.868, allocations: 22.22 kB / 0.5588 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00165/0.8697, allocations: 0.7581 MB / 0.5595 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.8719, allocations: 0.631 MB / 0.5601 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009678/0.8816, allocations: 14.55 MB / 0.5743 GB, free: 96.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/0.8843, allocations: 150.4 kB / 0.5745 GB, free: 96.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004136/0.8848, allocations: 124 kB / 0.5746 GB, free: 96.33 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {(2,100.0%), (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%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002647/0.8874, allocations: 1.608 MB / 0.5762 GB, free: 94.72 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007753/0.8882, allocations: 349.8 kB / 0.5765 GB, free: 94.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006328/0.8945, allocations: 4.197 MB / 0.5806 GB, free: 90.11 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.8946, allocations: 24 kB / 0.5806 GB, free: 90.08 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.652e-05/0.8946, allocations: 12 kB / 0.5806 GB, free: 90.07 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.732e-05/0.8947, allocations: 19.94 kB / 0.5806 GB, free: 90.05 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01482/0.9095, allocations: 9.127 MB / 0.5896 GB, free: 80.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/0.9096, allocations: 4 kB / 0.5896 GB, free: 80.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.9111, allocations: 375.4 kB / 0.5899 GB, free: 80.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002253/0.9134, allocations: 0.9249 MB / 0.5908 GB, free: 79.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002285/0.9136, allocations: 67.95 kB / 0.5909 GB, free: 79.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/0.926, allocations: 18 MB / 0.6085 GB, free: 60.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.926, allocations: 7.938 kB / 0.6085 GB, free: 60.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008285/0.9343, allocations: 6.073 MB / 0.6144 GB, free: 54.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/0.9361, allocations: 0.7242 MB / 0.6151 GB, free: 53.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006413/0.9368, allocations: 59.98 kB / 0.6152 GB, free: 53.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.9384, allocations: 123.9 kB / 0.6153 GB, free: 53.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000496/0.9389, allocations: 201.6 kB / 0.6155 GB, free: 53 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.9391, allocations: 67.98 kB / 0.6155 GB, free: 52.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002816/0.9419, allocations: 2.058 MB / 0.6175 GB, free: 50.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.9419, allocations: 0 / 0.6175 GB, free: 50.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003895/0.9458, allocations: 0.9845 MB / 0.6185 GB, free: 49.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (1,13,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.009299/0.9551, allocations: 6.796 MB / 0.6251 GB, free: 42.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005925/0.9611, allocations: 4.586 MB / 0.6296 GB, free: 38.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.9611, allocations: 4.875 kB / 0.6296 GB, free: 38.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00385/0.965, allocations: 3.052 MB / 0.6326 GB, free: 35.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004971/0.97, allocations: 0.92 MB / 0.6335 GB, free: 34.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05408/1.024, allocations: 35.28 MB / 0.668 GB, free: 13.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00452/1.029, allocations: 3.44 MB / 0.6713 GB, free: 10.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002602/1.031, allocations: 0.7699 MB / 0.6721 GB, free: 9.504 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002967/1.034, allocations: 1.975 MB / 0.674 GB, free: 7.527 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/1.034, allocations: 0 / 0.674 GB, free: 7.527 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3951/1.429, allocations: 87.06 MB / 0.759 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.68/19.11, allocations: 448 / 0.759 GB, free: 180.7 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)