Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001383, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00144/0.00144, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.382/1.382, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 71.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2313, allocations: 50.54 MB / 409.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01346/0.2448, allocations: 11.85 MB / 420.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007307/0.2522, allocations: 3.832 MB / 424.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001769/0.254, allocations: 67.75 kB / 424.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.2564, allocations: 0.8781 MB / 425.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003307/0.2597, allocations: 1.088 MB / 426.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001262/0.261, allocations: 0.4954 MB / 427.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006197/0.2672, allocations: 4.238 MB / 431.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00438/0.2716, allocations: 3.293 MB / 434.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003301/0.2749, allocations: 1.916 MB / 436.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003818/0.2788, allocations: 2.335 MB / 439.1 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009524/0.2798, allocations: 0.4922 MB / 439.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.2812, allocations: 0.5975 MB / 440.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001479/0.2827, allocations: 1.395 MB / 441.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003074/0.2858, allocations: 2.209 MB / 443.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007441/0.2933, allocations: 6.59 MB / 450.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2933, allocations: 0 / 450.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2933, allocations: 0 / 450.4 MB, free: 7.973 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001553/0.2935, allocations: 0 / 450.4 MB, free: 7.973 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01035/0.3039, allocations: 4.427 MB / 454.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.3039, allocations: 8.031 kB / 454.8 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008104/0.3047, allocations: 442.6 kB / 455.2 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.3062, allocations: 490.2 kB / 455.7 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004139/0.3103, allocations: 2.435 MB / 458.1 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002192/0.3106, allocations: 230.2 kB / 458.4 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004731/0.3111, allocations: 307.9 kB / 458.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007308/0.3184, allocations: 4.369 MB / 463 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.375e-05/0.3185, allocations: 15.88 kB / 463.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002939/0.3188, allocations: 124 kB / 463.2 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001242/0.3189, allocations: 134 kB / 463.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006349/0.3253, allocations: 3.775 MB / 467.1 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.3459, allocations: 13.42 MB / 480.5 MB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003511/0.3494, allocations: 2.888 MB / 483.4 MB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/0.3523, allocations: 1.688 MB / 485.1 MB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002688/0.3526, allocations: 126.4 kB / 485.2 MB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.219e-05/0.3526, allocations: 55.81 kB / 485.3 MB, free: 4.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=164): time 3.176e-06/0.3526, allocations: 0 / 485.3 MB, free: 4.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=180): time 0.01814/0.3708, allocations: 9.045 MB / 494.3 MB, free: 11.07 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.3709, allocations: 73.41 kB / 494.4 MB, free: 10.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003891/0.3748, allocations: 2.37 MB / 496.7 MB, free: 8.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000317/0.3751, allocations: 53.7 kB / 496.8 MB, free: 8.531 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.3764, allocations: 1.509 MB / 498.3 MB, free: 7.008 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007398/0.3771, allocations: 0.6352 MB / 498.9 MB, free: 6.367 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006487/0.3778, allocations: 367.5 kB / 499.3 MB, free: 6.004 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.3779, allocations: 309.1 kB / 499.6 MB, free: 5.699 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/0.3798, allocations: 1.124 MB / 0.489 GB, free: 4.574 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002133/0.3819, allocations: 1.571 MB / 0.4905 GB, free: 2.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004029/0.3859, allocations: 2.784 MB / 0.4932 GB, free: 15.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.386, allocations: 4 kB / 0.4932 GB, free: 15.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006394/0.3924, allocations: 3.605 MB / 0.4968 GB, free: 12.22 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.3924, allocations: 11.94 kB / 0.4968 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.35e-05/0.3925, allocations: 12 kB / 0.4968 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002018/0.3945, allocations: 0.8063 MB / 0.4976 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.3963, allocations: 463.3 kB / 0.498 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.4082, allocations: 11.17 MB / 0.5089 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4102, allocations: 135.8 kB / 0.5091 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/0.4104, allocations: 72 kB / 0.5091 GB, free: 14.84 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002004/0.4124, allocations: 1.092 MB / 0.5102 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006076/0.4131, allocations: 262.3 kB / 0.5104 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005849/0.4189, allocations: 3.305 MB / 0.5137 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.419, allocations: 16 kB / 0.5137 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.419, allocations: 8 kB / 0.5137 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.419, allocations: 7.969 kB / 0.5137 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.4314, allocations: 6.852 MB / 0.5204 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.4315, allocations: 3.984 kB / 0.5204 GB, free: 3.125 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.4327, allocations: 291.6 kB / 0.5207 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002452/0.4352, allocations: 0.9199 MB / 0.5216 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001755/0.4354, allocations: 47.98 kB / 0.5216 GB, free: 1.848 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/0.4497, allocations: 14.63 MB / 0.5359 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.4497, allocations: 4.031 kB / 0.5359 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2076/0.6573, allocations: 4.872 MB / 0.5407 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.6586, allocations: 0.5746 MB / 0.5412 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.659, allocations: 39.2 kB / 0.5413 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.6602, allocations: 117.1 kB / 0.5414 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004116/0.6607, allocations: 159.2 kB / 0.5415 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.6608, allocations: 51 kB / 0.5416 GB, free: 121.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002003/0.6628, allocations: 1.642 MB / 0.5432 GB, free: 121.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.6628, allocations: 0 / 0.5432 GB, free: 121.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002091/0.6649, allocations: 0.709 MB / 0.5439 GB, free: 121.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (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.006296/0.6712, allocations: 5.522 MB / 0.5493 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004325/0.6756, allocations: 3.6 MB / 0.5528 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.6756, allocations: 0 / 0.5528 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002752/0.6784, allocations: 2.518 MB / 0.5552 GB, free: 115.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/0.6816, allocations: 0.7229 MB / 0.5559 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03228/0.7139, allocations: 26.39 MB / 0.5817 GB, free: 89.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001713/0.7156, allocations: 2.526 MB / 0.5842 GB, free: 86.94 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001609/0.7173, allocations: 0.5906 MB / 0.5848 GB, free: 86.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/0.7186, allocations: 1.261 MB / 0.586 GB, free: 85.08 MB / 462.1 MB Notification: Performance of SimCode: time 1.743e-06/0.7186, allocations: 3.828 kB / 0.586 GB, free: 85.08 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/0.8281, allocations: 66.96 MB / 0.6514 GB, free: 18.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.4, allocations: 0 / 0.6514 GB, free: 18.8 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1)