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.001955/0.001956, 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.002449/0.002449, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 60.16 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1057, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.2091/0.3148, allocations: 14.84 MB / 372.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.3255, allocations: 4.875 MB / 377.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003486/0.329, allocations: 88.72 kB / 377.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005108/0.3341, allocations: 1.081 MB / 378.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006325/0.3405, allocations: 1.417 MB / 379.9 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003328/0.3439, allocations: 0.9804 MB / 380.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008345/0.3522, allocations: 5.083 MB / 386 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007418/0.3597, allocations: 3.862 MB / 389.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004954/0.3647, allocations: 2.339 MB / 392.2 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00529/0.37, allocations: 2.748 MB / 394.9 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00255/0.3726, allocations: 0.6237 MB / 395.5 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004627/0.3772, allocations: 0.8598 MB / 396.4 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002735/0.38, allocations: 1.452 MB / 397.8 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00604/0.386, allocations: 2.657 MB / 400.5 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.3985, allocations: 8.259 MB / 408.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3986, allocations: 0 / 408.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.3986, allocations: 3.984 kB / 408.8 MB, free: 7.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003003/0.3989, allocations: 0 / 408.8 MB, free: 7.676 MB / 318.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.01799/0.4169, allocations: 5.382 MB / 414.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.417, allocations: 8.031 kB / 414.2 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001817/0.4188, allocations: 0.5428 MB / 414.7 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005685/0.4245, allocations: 0.9304 MB / 415.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007032/0.4316, allocations: 2.947 MB / 418.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003849/0.432, allocations: 303.6 kB / 418.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.4336, allocations: 387.1 kB / 419.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.4481, allocations: 5.381 MB / 424.6 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/0.4484, allocations: 3.906 kB / 424.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/0.4495, allocations: 160 kB / 424.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002039/0.4497, allocations: 175.6 kB / 425 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.4606, allocations: 4.734 MB / 429.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.4994, allocations: 16.97 MB / 446.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.5104, allocations: 8.796 MB / 455.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004189/0.5146, allocations: 1.873 MB / 457.3 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01482/0.5295, allocations: 5.111 MB / 462.4 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002853/0.5324, allocations: 1.315 MB / 463.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=185): time 6.202e-06/0.5325, allocations: 0 / 463.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=188): time 0.02539/0.5579, allocations: 8.657 MB / 472.4 MB, free: 6.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.5581, allocations: 231.6 kB / 472.6 MB, free: 6.055 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005087/0.5632, allocations: 2.347 MB / 475 MB, free: 3.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004338/0.5637, allocations: 57.7 kB / 475.1 MB, free: 3.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001926/0.5656, allocations: 1.754 MB / 476.8 MB, free: 1.852 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008541/0.5665, allocations: 0.6124 MB / 477.4 MB, free: 1.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/0.5678, allocations: 415.7 kB / 477.8 MB, free: 0.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.5679, allocations: 305.1 kB / 478.1 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/0.57, allocations: 1.019 MB / 479.1 MB, free: 15.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00255/0.5726, allocations: 1.626 MB / 480.8 MB, free: 13.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004902/0.5775, allocations: 2.648 MB / 483.4 MB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.301e-05/0.5776, allocations: 4 kB / 483.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.007086/0.5847, allocations: 3.574 MB / 487 MB, free: 7.145 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.903e-05/0.5847, allocations: 12 kB / 487 MB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/0.5848, allocations: 16 kB / 487 MB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.5867, allocations: 0.7861 MB / 487.8 MB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.5884, allocations: 387.4 kB / 488.2 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/0.6018, allocations: 11.84 MB / 0.4883 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002653/0.6045, allocations: 131.9 kB / 0.4884 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005674/0.6051, allocations: 88.36 kB / 0.4885 GB, free: 9.328 MB / 414.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.003531/0.6086, allocations: 1.323 MB / 0.4898 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009069/0.6096, allocations: 260.8 kB / 0.4901 GB, free: 7.738 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006813/0.6164, allocations: 3.377 MB / 0.4934 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/0.6164, allocations: 20 kB / 0.4934 GB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.494e-05/0.6165, allocations: 12 kB / 0.4934 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.296e-05/0.6165, allocations: 7.969 kB / 0.4934 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/0.6309, allocations: 7.011 MB / 0.5002 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.631, allocations: 4 kB / 0.5002 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009179/0.6319, allocations: 179.7 kB / 0.5004 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002386/0.6343, allocations: 0.9527 MB / 0.5013 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000192/0.6345, allocations: 43.98 kB / 0.5014 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/0.6529, allocations: 16.68 MB / 0.5177 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.6529, allocations: 0 / 0.5177 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008623/0.6615, allocations: 4.79 MB / 0.5224 GB, free: 5.566 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001977/0.6636, allocations: 0.5526 MB / 0.5229 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/0.6647, allocations: 47.98 kB / 0.5229 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/0.6666, allocations: 91.91 kB / 0.523 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006449/0.6673, allocations: 213.6 kB / 0.5232 GB, free: 4.648 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001665/0.6675, allocations: 47.98 kB / 0.5233 GB, free: 4.602 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003838/0.6714, allocations: 1.606 MB / 0.5248 GB, free: 2.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6714, allocations: 0 / 0.5248 GB, free: 2.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003989/0.6754, allocations: 0.7853 MB / 0.5256 GB, free: 2.195 MB / 446.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.2065/0.8819, allocations: 5.432 MB / 0.5309 GB, free: 139 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008476/0.8904, allocations: 4.155 MB / 0.535 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.523e-06/0.8905, allocations: 2.531 kB / 0.535 GB, free: 138.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003766/0.8942, allocations: 2.426 MB / 0.5373 GB, free: 137 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004242/0.8985, allocations: 0.7155 MB / 0.538 GB, free: 136.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05318/0.9517, allocations: 30.47 MB / 0.5678 GB, free: 118.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004009/0.9558, allocations: 2.855 MB / 0.5706 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00242/0.9582, allocations: 0.513 MB / 0.5711 GB, free: 116.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/0.9605, allocations: 1.458 MB / 0.5725 GB, free: 114.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.9605, allocations: 4 kB / 0.5725 GB, free: 114.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1171/1.078, allocations: 71.72 MB / 0.6426 GB, free: 43.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/12.2, allocations: 4.375 kB / 0.6426 GB, free: 43.73 MB / 446.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)