Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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 4.0.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 104.5 kB / 17.58 MB, free: 5.441 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.002382/0.002382, allocations: 191.9 kB / 18.51 MB, free: 4.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.194/2.194, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002148/0.002148, allocations: 52.14 kB / 280.8 MB, free: 3.043 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1275, allocations: 46.62 MB / 327.4 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.06971/0.1973, allocations: 38.35 MB / 365.8 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03582/0.2332, allocations: 10.02 MB / 375.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01329/0.2465, allocations: 247.1 kB / 376 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2875/0.5342, allocations: 10.17 MB / 386.2 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02449/0.5587, allocations: 4.08 MB / 390.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.5701, allocations: 2.418 MB / 392.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03016/0.6002, allocations: 16.43 MB / 409.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07837/0.6787, allocations: 31.39 MB / 440.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02244/0.7012, allocations: 8.512 MB / 449 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02289/0.7242, allocations: 9.467 MB / 458.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009248/0.7335, allocations: 2.426 MB / 460.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03024/0.7638, allocations: 2.831 MB / 463.7 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.02737/0.7912, allocations: 4.864 MB / 468.6 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02775/0.819, allocations: 9.286 MB / 477.9 MB, free: 7.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06128/0.8804, allocations: 31.94 MB / 0.4979 GB, free: 8.586 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.8804, allocations: 0 / 0.4979 GB, free: 8.586 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8804, allocations: 0 / 0.4979 GB, free: 8.586 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001019/0.8815, allocations: 0 / 0.4979 GB, free: 8.586 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3978 * Number of variables: 3978 Notification: Performance of Generate backend data structure: time 0.09957/0.9811, allocations: 18.93 MB / 0.5164 GB, free: 5.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.9812, allocations: 11.89 kB / 0.5164 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01197/0.9932, allocations: 2.321 MB / 0.5186 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1102/1.103, allocations: 9.239 MB / 0.5277 GB, free: 10.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03078/1.134, allocations: 9.156 MB / 0.5366 GB, free: 1.031 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2721/1.406, allocations: 1.07 MB / 0.5377 GB, free: 137.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008425/1.415, allocations: 1.418 MB / 0.539 GB, free: 137.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09227/1.507, allocations: 23.21 MB / 0.5617 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001226/1.509, allocations: 16.03 kB / 0.5617 GB, free: 129.4 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007765/1.516, allocations: 0.5876 MB / 0.5623 GB, free: 129 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001199/1.518, allocations: 0.8012 MB / 0.5631 GB, free: 128.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06557/1.583, allocations: 21.69 MB / 0.5843 GB, free: 116.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.178/1.761, allocations: 74.14 MB / 0.6567 GB, free: 41.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3308/2.092, allocations: 53.55 MB / 0.709 GB, free: 135.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01362/2.106, allocations: 5.386 MB / 0.7142 GB, free: 135.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04856/2.154, allocations: 15.48 MB / 0.7294 GB, free: 129.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/2.155, allocations: 86.02 kB / 0.7294 GB, free: 129.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=498): time 1.172e-05/2.155, allocations: 0.8438 kB / 0.7294 GB, free: 129.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=506): time 0.09439/2.249, allocations: 26.95 MB / 0.7558 GB, free: 117.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/2.249, allocations: 126.4 kB / 0.7559 GB, free: 117.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/2.263, allocations: 5.902 MB / 0.7616 GB, free: 115.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001163/2.265, allocations: 105.5 kB / 0.7617 GB, free: 115.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004997/2.27, allocations: 6.294 MB / 0.7679 GB, free: 110.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002463/2.272, allocations: 1.744 MB / 0.7696 GB, free: 109.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004411/2.277, allocations: 1.521 MB / 0.7711 GB, free: 108.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.917e-05/2.277, allocations: 301.1 kB / 0.7714 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009121/2.286, allocations: 3.69 MB / 0.775 GB, free: 106.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01128/2.297, allocations: 6.771 MB / 0.7816 GB, free: 100.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01957/2.317, allocations: 11.15 MB / 0.7925 GB, free: 88.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/2.317, allocations: 28 kB / 0.7925 GB, free: 88.35 MB / 462.1 MB Notification: Performance of matching and sorting (n=1001) (initialization): time 0.03327/2.35, allocations: 12.4 MB / 0.8046 GB, free: 75.89 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/2.35, allocations: 48 kB / 0.8046 GB, free: 75.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002132/2.351, allocations: 100 kB / 0.8047 GB, free: 75.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007033/2.358, allocations: 1.613 MB / 0.8063 GB, free: 74.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01088/2.369, allocations: 1.743 MB / 0.808 GB, free: 72.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03323/2.402, allocations: 19.65 MB / 0.8272 GB, free: 52.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/2.415, allocations: 439.4 kB / 0.8276 GB, free: 51.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002243/2.417, allocations: 388 kB / 0.828 GB, free: 51.25 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 462 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,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 (904): * Single equations (assignments): 897 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 5 systems {(1,1,100.0%), (12,64,54.2%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0148/2.432, allocations: 5.25 MB / 0.8331 GB, free: 45.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00291/2.435, allocations: 0.6019 MB / 0.8337 GB, free: 45.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02641/2.461, allocations: 9.389 MB / 0.8429 GB, free: 35.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01562/2.477, allocations: 5.872 MB / 0.8486 GB, free: 30 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.149e-05/2.477, allocations: 20 kB / 0.8486 GB, free: 29.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001531/2.477, allocations: 27.91 kB / 0.8487 GB, free: 29.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06767/2.545, allocations: 21.1 MB / 0.8693 GB, free: 8.742 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-05/2.545, allocations: 7.984 kB / 0.8693 GB, free: 8.734 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006726/2.552, allocations: 0.8705 MB / 0.8701 GB, free: 7.863 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007304/2.559, allocations: 1.653 MB / 0.8717 GB, free: 6.188 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001186/2.56, allocations: 124 kB / 0.8719 GB, free: 6.066 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3398/2.9, allocations: 23.22 MB / 0.8945 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.081e-05/2.9, allocations: 7.984 kB / 0.8945 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0361/2.936, allocations: 13.72 MB / 0.9079 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005706/2.942, allocations: 1.363 MB / 0.9093 GB, free: 107.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002915/2.945, allocations: 111.3 kB / 0.9094 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00684/2.952, allocations: 283.9 kB / 0.9096 GB, free: 107.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002292/2.954, allocations: 408.1 kB / 0.91 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008589/2.955, allocations: 156.8 kB / 0.9102 GB, free: 107.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0107/2.966, allocations: 3.966 MB / 0.9141 GB, free: 105.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.92e-07/2.966, allocations: 0 / 0.9141 GB, free: 105.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01619/2.982, allocations: 2.375 MB / 0.9164 GB, free: 105.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.037/3.019, allocations: 14.51 MB / 0.9305 GB, free: 98.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.05557/3.075, allocations: 16 MB / 0.9462 GB, free: 90.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-05/3.075, allocations: 4 kB / 0.9462 GB, free: 90.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0146/3.09, allocations: 5.456 MB / 0.9515 GB, free: 86.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01671/3.106, allocations: 1.649 MB / 0.9531 GB, free: 84.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5296/3.636, allocations: 103.9 MB / 1.055 GB, free: 174.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02512/3.661, allocations: 8.937 MB / 1.063 GB, free: 173.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01623/3.677, allocations: 2.593 MB / 1.066 GB, free: 173.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01442/3.692, allocations: 5.203 MB / 1.071 GB, free: 170.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.563e-06/3.692, allocations: 1.781 kB / 1.071 GB, free: 170.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.006/4.698, allocations: 191.6 MB / 1.258 GB, free: 160.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.83/26.53, allocations: 9.5 kB / 1.258 GB, free: 160.5 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)