Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.001682/0.001682, allocations: 109.4 kB / 17.73 MB, free: 5.34 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.002079/0.002079, allocations: 184.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001369/0.001369, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09864/0.1, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2092/0.3092, allocations: 13.67 MB / 388.3 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0087/0.318, allocations: 4.509 MB / 392.8 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002991/0.3211, allocations: 73.25 kB / 392.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003571/0.3247, allocations: 1.081 MB / 394 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005311/0.33, allocations: 1.421 MB / 395.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002768/0.3328, allocations: 0.9159 MB / 396.3 MB, free: 420 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007862/0.3407, allocations: 4.749 MB / 401.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006977/0.3477, allocations: 3.645 MB / 404.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004982/0.3527, allocations: 2.203 MB / 406.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006021/0.3588, allocations: 2.46 MB / 409.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002283/0.3611, allocations: 0.5886 MB / 410 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.3651, allocations: 0.7921 MB / 410.8 MB, free: 10 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00264/0.3678, allocations: 1.343 MB / 412.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005566/0.3734, allocations: 2.461 MB / 414.6 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.3852, allocations: 7.794 MB / 422.4 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3853, allocations: 0 / 422.4 MB, free: 244 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3853, allocations: 0 / 422.4 MB, free: 244 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002764/0.3855, allocations: 0 / 422.4 MB, free: 244 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.0169/0.4025, allocations: 5.152 MB / 427.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.452e-05/0.4025, allocations: 12.03 kB / 427.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001674/0.4042, allocations: 0.4984 MB / 428 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005336/0.4096, allocations: 0.8882 MB / 428.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006701/0.4163, allocations: 2.668 MB / 431.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.4167, allocations: 279.2 kB / 431.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.4179, allocations: 356 kB / 432.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.4302, allocations: 5.033 MB / 437.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.4304, allocations: 7.953 kB / 437.2 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000758/0.4312, allocations: 152 kB / 437.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002264/0.4314, allocations: 163.2 kB / 437.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009734/0.4412, allocations: 4.377 MB / 441.9 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03254/0.4737, allocations: 15.75 MB / 457.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009213/0.483, allocations: 7.784 MB / 465.5 MB, free: 3.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003383/0.4865, allocations: 1.714 MB / 467.2 MB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.4966, allocations: 4.652 MB / 471.8 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.4967, allocations: 43.88 kB / 471.9 MB, free: 13.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 3.978e-06/0.4968, allocations: 3.938 kB / 471.9 MB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.01982/0.5166, allocations: 8.176 MB / 480.1 MB, free: 4.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.5167, allocations: 68.72 kB / 480.1 MB, free: 4.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004939/0.5216, allocations: 2.159 MB / 482.3 MB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003376/0.522, allocations: 57.7 kB / 482.3 MB, free: 2.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.5233, allocations: 1.659 MB / 484 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000592/0.5239, allocations: 0.5771 MB / 484.6 MB, free: 156 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008273/0.5248, allocations: 363.4 kB / 484.9 MB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5249, allocations: 305.1 kB / 485.2 MB, free: 15.49 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.5266, allocations: 0.9447 MB / 486.2 MB, free: 14.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.5286, allocations: 1.453 MB / 487.6 MB, free: 12.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.5324, allocations: 2.507 MB / 490.1 MB, free: 10.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.5324, allocations: 4 kB / 490.1 MB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006081/0.5385, allocations: 3.356 MB / 493.5 MB, free: 6.762 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/0.5386, allocations: 12 kB / 493.5 MB, free: 6.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.5386, allocations: 16 kB / 493.5 MB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001969/0.5406, allocations: 0.7397 MB / 494.3 MB, free: 5.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/0.5422, allocations: 375.4 kB / 494.6 MB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.5556, allocations: 11.37 MB / 0.4941 GB, free: 9.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.5578, allocations: 83.91 kB / 0.4942 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000359/0.5582, allocations: 79.98 kB / 0.4943 GB, free: 9.52 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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,19,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.002991/0.5612, allocations: 1.216 MB / 0.4955 GB, free: 8.293 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007459/0.562, allocations: 238.5 kB / 0.4957 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006152/0.5681, allocations: 3.16 MB / 0.4988 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.5682, allocations: 16 kB / 0.4988 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.409e-05/0.5682, allocations: 11.94 kB / 0.4988 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.28e-05/0.5682, allocations: 11.91 kB / 0.4988 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01437/0.5826, allocations: 6.572 MB / 0.5053 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.5827, allocations: 0 / 0.5053 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009277/0.5836, allocations: 180 kB / 0.5054 GB, free: 13.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002611/0.5862, allocations: 0.8952 MB / 0.5063 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002192/0.5865, allocations: 39.98 kB / 0.5063 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01873/0.6052, allocations: 16.18 MB / 0.5221 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.6053, allocations: 3.938 kB / 0.5221 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007945/0.6132, allocations: 4.518 MB / 0.5266 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.6147, allocations: 0.5312 MB / 0.5271 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007722/0.6155, allocations: 36 kB / 0.5271 GB, free: 6.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.617, allocations: 87.81 kB / 0.5272 GB, free: 6.645 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004929/0.6176, allocations: 153.1 kB / 0.5273 GB, free: 6.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/0.6177, allocations: 43.98 kB / 0.5274 GB, free: 6.453 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003199/0.6209, allocations: 1.485 MB / 0.5288 GB, free: 4.949 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6209, allocations: 3.938 kB / 0.5288 GB, free: 4.945 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0043/0.6252, allocations: 0.7031 MB / 0.5295 GB, free: 4.242 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: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,19,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.009117/0.6344, allocations: 5.139 MB / 0.5345 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00556/0.64, allocations: 3.133 MB / 0.5376 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6401, allocations: 0 / 0.5376 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003775/0.6438, allocations: 2.276 MB / 0.5398 GB, free: 9.441 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003983/0.6479, allocations: 0.6364 MB / 0.5404 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2441/0.892, allocations: 24.94 MB / 0.5648 GB, free: 145.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005091/0.8972, allocations: 2.678 MB / 0.5674 GB, free: 144 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002103/0.8993, allocations: 482.4 kB / 0.5679 GB, free: 143.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002085/0.9014, allocations: 1.318 MB / 0.5692 GB, free: 142.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9014, allocations: 0 / 0.5692 GB, free: 142.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1019/1.003, allocations: 64.08 MB / 0.6317 GB, free: 88.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.86, allocations: 15.95 kB / 0.6317 GB, free: 88.27 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)