Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001598/0.001598, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001747/0.001747, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3078, allocations: 50.55 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01851/0.3264, allocations: 14.84 MB / 423.6 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01136/0.3378, allocations: 4.87 MB / 428.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003383/0.3412, allocations: 91.62 kB / 428.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003968/0.3452, allocations: 1.079 MB / 429.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00678/0.3521, allocations: 1.425 MB / 431.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.3557, allocations: 0.9689 MB / 432.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008161/0.3638, allocations: 5.121 MB / 437.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006484/0.3704, allocations: 3.859 MB / 441 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004546/0.375, allocations: 2.337 MB / 443.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005591/0.3806, allocations: 2.764 MB / 446.1 MB, free: 12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002198/0.3829, allocations: 0.625 MB / 446.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.3862, allocations: 0.8473 MB / 447.6 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002637/0.3888, allocations: 1.449 MB / 449.1 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005904/0.3948, allocations: 2.653 MB / 451.7 MB, free: 6.414 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.4082, allocations: 8.339 MB / 460 MB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.4082, allocations: 0 / 460 MB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4082, allocations: 0 / 460 MB, free: 14.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002854/0.4085, allocations: 0 / 460 MB, free: 14.04 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01699/0.4255, allocations: 5.501 MB / 465.6 MB, free: 8.461 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.4256, allocations: 8.031 kB / 465.6 MB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001873/0.4275, allocations: 0.5391 MB / 466.1 MB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005922/0.4334, allocations: 0.9544 MB / 467.1 MB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0076/0.4411, allocations: 3.052 MB / 470.1 MB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.4415, allocations: 295.8 kB / 470.4 MB, free: 3.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001388/0.4429, allocations: 387.9 kB / 470.8 MB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.4575, allocations: 5.383 MB / 476.2 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001958/0.4577, allocations: 15.88 kB / 476.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001173/0.4589, allocations: 160 kB / 476.3 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002371/0.4591, allocations: 175.7 kB / 476.5 MB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01188/0.471, allocations: 4.738 MB / 481.2 MB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03689/0.508, allocations: 16.8 MB / 498 MB, free: 7.461 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.5193, allocations: 8.792 MB / 0.495 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004002/0.5233, allocations: 1.866 MB / 0.4968 GB, free: 11.81 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.5362, allocations: 5.09 MB / 0.5017 GB, free: 6.582 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002843/0.5391, allocations: 1.321 MB / 0.503 GB, free: 5.227 MB / 430.1 MB Notification: Performance of pre-optimization done (n=185): time 6.092e-06/0.5392, allocations: 0 / 0.503 GB, free: 5.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.02331/0.5625, allocations: 8.715 MB / 0.5115 GB, free: 12.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001749/0.5627, allocations: 235.6 kB / 0.5118 GB, free: 12.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004997/0.5677, allocations: 2.347 MB / 0.5141 GB, free: 9.652 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000393/0.5682, allocations: 61.69 kB / 0.5141 GB, free: 9.586 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002148/0.5703, allocations: 1.797 MB / 0.5159 GB, free: 7.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009541/0.5713, allocations: 0.6469 MB / 0.5165 GB, free: 7.117 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001327/0.5726, allocations: 407.9 kB / 0.5169 GB, free: 6.711 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.5728, allocations: 305.1 kB / 0.5172 GB, free: 6.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002132/0.5749, allocations: 1.023 MB / 0.5182 GB, free: 5.383 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/0.5777, allocations: 1.634 MB / 0.5198 GB, free: 3.492 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004682/0.5824, allocations: 2.644 MB / 0.5224 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.238e-05/0.5824, allocations: 4 kB / 0.5224 GB, free: 0.625 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.007938/0.5904, allocations: 3.583 MB / 0.5259 GB, free: 13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.728e-05/0.5905, allocations: 12 kB / 0.5259 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.287e-05/0.5905, allocations: 31.91 kB / 0.5259 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002147/0.5927, allocations: 0.7628 MB / 0.5267 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.5945, allocations: 391.3 kB / 0.527 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2443/0.8388, allocations: 11.83 MB / 0.5386 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.8412, allocations: 132 kB / 0.5387 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004133/0.8417, allocations: 91.03 kB / 0.5388 GB, free: 120.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 4 systems {(1,8,100.0%), (9,25,33.3%), (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.00313/0.8448, allocations: 1.326 MB / 0.5401 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006908/0.8455, allocations: 258.7 kB / 0.5403 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006141/0.8517, allocations: 3.381 MB / 0.5436 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.8517, allocations: 18.44 kB / 0.5437 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.3e-05/0.8517, allocations: 11.81 kB / 0.5437 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.032e-05/0.8518, allocations: 11.06 kB / 0.5437 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.8634, allocations: 6.999 MB / 0.5505 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.8634, allocations: 1.719 kB / 0.5505 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008833/0.8643, allocations: 188.1 kB / 0.5507 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.8665, allocations: 0.9347 MB / 0.5516 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002988/0.8669, allocations: 51.59 kB / 0.5517 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/0.8818, allocations: 16.67 MB / 0.5679 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.8819, allocations: 7.969 kB / 0.5679 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007683/0.8896, allocations: 4.798 MB / 0.5726 GB, free: 97.46 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/0.8912, allocations: 0.5696 MB / 0.5732 GB, free: 97.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007122/0.892, allocations: 40 kB / 0.5732 GB, free: 96.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/0.8935, allocations: 95.91 kB / 0.5733 GB, free: 96.88 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006218/0.8941, allocations: 214.3 kB / 0.5735 GB, free: 96.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/0.8943, allocations: 55.38 kB / 0.5736 GB, free: 96.61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002386/0.8966, allocations: 1.606 MB / 0.5751 GB, free: 94.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8967, allocations: 0 / 0.5751 GB, free: 94.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003403/0.9001, allocations: 0.7798 MB / 0.5759 GB, free: 94.21 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,25,33.3%), (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.00733/0.9074, allocations: 5.443 MB / 0.5812 GB, free: 88.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004885/0.9124, allocations: 3.331 MB / 0.5845 GB, free: 85.31 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.9124, allocations: 0 / 0.5845 GB, free: 85.31 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00331/0.9157, allocations: 2.43 MB / 0.5868 GB, free: 82.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003544/0.9193, allocations: 0.7176 MB / 0.5875 GB, free: 82.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04772/0.9671, allocations: 26.82 MB / 0.6137 GB, free: 54.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003849/0.971, allocations: 2.853 MB / 0.6165 GB, free: 51.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001977/0.973, allocations: 0.5172 MB / 0.617 GB, free: 51.07 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002128/0.9751, allocations: 1.456 MB / 0.6185 GB, free: 49.62 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9751, allocations: 4 kB / 0.6185 GB, free: 49.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.137/1.112, allocations: 70.94 MB / 0.6877 GB, free: 11.33 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.76, allocations: 11.98 kB / 0.6877 GB, free: 11.32 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)