Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_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.001077/0.001077, allocations: 102.9 kB / 17.58 MB, free: 5.418 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.001089/0.00109, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.421/1.421, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002276/0.002276, allocations: 52.14 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1226, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD): time 0.01133/0.134, allocations: 9.755 MB / 337.1 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005971/0.14, allocations: 3.144 MB / 340.3 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.1416, allocations: 43.81 kB / 340.3 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001758/0.1434, allocations: 0.6637 MB / 341 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002737/0.1461, allocations: 0.8154 MB / 341.8 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000952/0.1471, allocations: 387.5 kB / 342.2 MB, free: 5.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003981/0.1511, allocations: 3.097 MB / 345.3 MB, free: 2.379 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003228/0.1543, allocations: 2.393 MB / 347.7 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002687/0.157, allocations: 1.363 MB / 349 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002778/0.1598, allocations: 1.685 MB / 350.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000647/0.1605, allocations: 368 kB / 351.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.1615, allocations: 455.8 kB / 351.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00118/0.1627, allocations: 0.9973 MB / 352.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002519/0.1652, allocations: 1.602 MB / 354.1 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006009/0.1713, allocations: 4.662 MB / 358.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1713, allocations: 0 / 358.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1713, allocations: 0 / 358.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.1714, allocations: 4 kB / 358.8 MB, free: 4.773 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 592 * Number of variables: 592 Notification: Performance of Generate backend data structure: time 0.00758/0.179, allocations: 3.21 MB / 362 MB, free: 1.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1791, allocations: 8.031 kB / 362 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000482/0.1795, allocations: 333.2 kB / 362.3 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008138/0.1804, allocations: 325.2 kB / 362.7 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002719/0.1831, allocations: 1.619 MB / 364.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.1833, allocations: 176.7 kB / 364.4 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000329/0.1836, allocations: 235.8 kB / 364.7 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005029/0.1886, allocations: 3.192 MB / 367.9 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.542e-05/0.1887, allocations: 4 kB / 367.9 MB, free: 11.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.1889, allocations: 95.94 kB / 368 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/0.189, allocations: 104.4 kB / 368.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004462/0.1935, allocations: 2.742 MB / 370.8 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1964/0.39, allocations: 9.868 MB / 380.7 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002996/0.393, allocations: 2.095 MB / 382.8 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002044/0.3951, allocations: 1.202 MB / 384 MB, free: 47.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002811/0.3954, allocations: 124.2 kB / 384.1 MB, free: 47.2 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.3954, allocations: 48.8 kB / 384.1 MB, free: 47.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=126): time 4.879e-06/0.3954, allocations: 0 / 384.1 MB, free: 47.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01854/0.414, allocations: 8 MB / 392.1 MB, free: 44.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.4141, allocations: 65.75 kB / 392.2 MB, free: 44.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/0.4165, allocations: 1.677 MB / 393.9 MB, free: 43.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.4166, allocations: 55.2 kB / 393.9 MB, free: 43.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007242/0.4173, allocations: 1.086 MB / 395 MB, free: 42.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003792/0.4177, allocations: 486 kB / 395.5 MB, free: 42.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005254/0.4182, allocations: 294.7 kB / 395.8 MB, free: 42.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.4183, allocations: 305.1 kB / 396.1 MB, free: 42.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.4196, allocations: 0.907 MB / 397 MB, free: 41.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.4209, allocations: 1.267 MB / 398.3 MB, free: 40.69 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.4236, allocations: 2.247 MB / 400.5 MB, free: 39.26 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.4236, allocations: 3.406 kB / 400.5 MB, free: 39.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.00436/0.4279, allocations: 3.044 MB / 403.6 MB, free: 37.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.428, allocations: 8 kB / 403.6 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.428, allocations: 12 kB / 403.6 MB, free: 37.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001682/0.4297, allocations: 0.8444 MB / 404.4 MB, free: 36.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.4308, allocations: 311.5 kB / 404.7 MB, free: 36.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008438/0.4392, allocations: 9.932 MB / 414.7 MB, free: 26.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.441, allocations: 91.91 kB / 414.7 MB, free: 26.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.4411, allocations: 59.98 kB / 414.8 MB, free: 26 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 3 systems {(2,12,100.0%), (9,19,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001436/0.4426, allocations: 0.8141 MB / 415.6 MB, free: 25.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000368/0.443, allocations: 181.8 kB / 415.8 MB, free: 25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.447, allocations: 2.838 MB / 418.6 MB, free: 22.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.447, allocations: 12 kB / 418.6 MB, free: 22.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4471, allocations: 8 kB / 418.7 MB, free: 22.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4471, allocations: 7.969 kB / 418.7 MB, free: 22.1 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007806/0.4549, allocations: 5.687 MB / 424.3 MB, free: 16.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4549, allocations: 1.5 kB / 424.3 MB, free: 16.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007815/0.4557, allocations: 199.7 kB / 424.5 MB, free: 16.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/0.4576, allocations: 0.8955 MB / 425.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.67e-05/0.4577, allocations: 36.64 kB / 425.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009275/0.467, allocations: 11.54 MB / 437 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.467, allocations: 7.969 kB / 437 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005845/0.4729, allocations: 4.145 MB / 441.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001025/0.4739, allocations: 462.6 kB / 441.6 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.4742, allocations: 35.98 kB / 441.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000912/0.4751, allocations: 79.92 kB / 441.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003764/0.4755, allocations: 149 kB / 441.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.864e-05/0.4756, allocations: 32.66 kB / 441.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001864/0.4775, allocations: 1.153 MB / 443.1 MB, free: 13 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4775, allocations: 0 / 443.1 MB, free: 13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001857/0.4794, allocations: 0.5619 MB / 443.6 MB, free: 12.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (99): * Single equations (assignments): 94 * 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 {(2,12,100.0%), (1,1,100.0%), (9,19,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006739/0.4861, allocations: 4.786 MB / 448.4 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006102/0.4922, allocations: 3.647 MB / 452.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.4923, allocations: 384 / 452.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003026/0.4953, allocations: 2.026 MB / 454.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.4976, allocations: 0.511 MB / 454.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03264/0.5303, allocations: 22.33 MB / 476.9 MB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001895/0.5322, allocations: 2.023 MB / 478.9 MB, free: 7.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001338/0.5335, allocations: 407.3 kB / 479.3 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/0.5347, allocations: 0.8867 MB / 480.2 MB, free: 6.164 MB / 366.1 MB Notification: Performance of SimCode: time 2.234e-06/0.5347, allocations: 4 kB / 480.2 MB, free: 6.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09828/0.633, allocations: 51.71 MB / 0.5195 GB, free: 2.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11.18, allocations: 4.391 kB / 0.5195 GB, free: 2.293 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_YD.pipe 2>&1)