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.IMC_DOL.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.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",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.00189/0.001891, 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 4.1.0-beta.om/package.mo): time 1.438/1.438, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001908/0.001908, allocations: 63.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2799, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL): time 0.01143/0.2913, allocations: 9.431 MB / 418.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006636/0.298, allocations: 3.045 MB / 421.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001579/0.2997, allocations: 47.81 kB / 421.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.3016, allocations: 0.6327 MB / 422.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.3043, allocations: 0.7766 MB / 423 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008827/0.3052, allocations: 359.5 kB / 423.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003579/0.3088, allocations: 2.665 MB / 426 MB, free: 360 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00277/0.3116, allocations: 2.151 MB / 428.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002085/0.3137, allocations: 1.199 MB / 429.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.3164, allocations: 1.495 MB / 430.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006231/0.3171, allocations: 308 kB / 431.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009748/0.3181, allocations: 407.8 kB / 431.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009511/0.319, allocations: 0.8921 MB / 432.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001992/0.321, allocations: 1.412 MB / 433.9 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005079/0.3261, allocations: 4.114 MB / 438 MB, free: 4.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3262, allocations: 0 / 438 MB, free: 4.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3262, allocations: 0 / 438 MB, free: 4.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001285/0.3263, allocations: 0 / 438 MB, free: 4.289 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007045/0.3334, allocations: 2.94 MB / 440.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.3334, allocations: 8.031 kB / 440.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004872/0.3339, allocations: 303.5 kB / 441.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.335, allocations: 335.1 kB / 441.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002976/0.338, allocations: 1.552 MB / 443.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001329/0.3381, allocations: 156.1 kB / 443.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.3385, allocations: 200 kB / 443.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004881/0.3434, allocations: 2.747 MB / 446.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.146e-05/0.3435, allocations: 11.94 kB / 446.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002027/0.3437, allocations: 80 kB / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001132/0.3438, allocations: 91.94 kB / 446.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004195/0.348, allocations: 2.33 MB / 448.7 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/0.3613, allocations: 8.339 MB / 457.1 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00221/0.3636, allocations: 1.78 MB / 458.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.3655, allocations: 1.077 MB / 459.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002375/0.3657, allocations: 118.1 kB / 460 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.3658, allocations: 43.56 kB / 460.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 2.876e-06/0.3658, allocations: 0 / 460.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=120): time 0.01296/0.3788, allocations: 6.257 MB / 466.3 MB, free: 7.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.3789, allocations: 64.41 kB / 466.4 MB, free: 7.145 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002197/0.3811, allocations: 1.533 MB / 467.9 MB, free: 5.602 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.914e-05/0.3812, allocations: 45.7 kB / 468 MB, free: 5.551 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007969/0.382, allocations: 1.009 MB / 469 MB, free: 4.531 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.3823, allocations: 436.3 kB / 469.4 MB, free: 4.102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/0.3828, allocations: 259.5 kB / 469.7 MB, free: 3.844 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3829, allocations: 361.9 kB / 470 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3841, allocations: 0.73 MB / 470.7 MB, free: 2.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.3855, allocations: 1.055 MB / 471.8 MB, free: 1.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.3882, allocations: 1.879 MB / 473.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.934e-06/0.3882, allocations: 8 kB / 473.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004059/0.3923, allocations: 2.358 MB / 476 MB, free: 13.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3923, allocations: 8.344 kB / 476 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.3924, allocations: 12 kB / 476.1 MB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009656/0.3933, allocations: 403.1 kB / 476.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.3945, allocations: 331.5 kB / 476.8 MB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005408/0.3999, allocations: 5.074 MB / 481.8 MB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.4013, allocations: 91.8 kB / 481.9 MB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4014, allocations: 56 kB / 482 MB, free: 6.922 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (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 (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001317/0.4028, allocations: 0.7042 MB / 482.7 MB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/0.4032, allocations: 175 kB / 482.9 MB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.4069, allocations: 2.137 MB / 485 MB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.4069, allocations: 12 kB / 485 MB, free: 3.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4069, allocations: 4 kB / 485 MB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.407, allocations: 7.969 kB / 485 MB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007762/0.4147, allocations: 4.57 MB / 489.6 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.4148, allocations: 4 kB / 489.6 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009425/0.4157, allocations: 231.9 kB / 489.8 MB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001242/0.417, allocations: 462.9 kB / 490.3 MB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.169e-05/0.4171, allocations: 31.98 kB / 490.3 MB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00688/0.424, allocations: 6.688 MB / 497 MB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.424, allocations: 4 kB / 497 MB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005297/0.4293, allocations: 3.193 MB / 0.4885 GB, free: 4.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009295/0.4302, allocations: 407.8 kB / 0.4889 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/0.4305, allocations: 27.98 kB / 0.4889 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008005/0.4313, allocations: 71.92 kB / 0.489 GB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.4316, allocations: 112.8 kB / 0.4891 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-05/0.4317, allocations: 35.98 kB / 0.4891 GB, free: 3.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001602/0.4333, allocations: 1.052 MB / 0.4901 GB, free: 2.379 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4333, allocations: 0 / 0.4901 GB, free: 2.379 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001543/0.4349, allocations: 463.9 kB / 0.4906 GB, free: 1.926 MB / 414.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: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,12,100.0%), (1,1,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.005488/0.4404, allocations: 3.834 MB / 0.4943 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003768/0.4442, allocations: 2.269 MB / 0.4965 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4442, allocations: 5.812 kB / 0.4965 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.4466, allocations: 1.488 MB / 0.498 GB, free: 10.13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.4487, allocations: 450.5 kB / 0.4984 GB, free: 9.699 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02949/0.4782, allocations: 17.49 MB / 0.5155 GB, free: 7.641 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001799/0.48, allocations: 1.83 MB / 0.5173 GB, free: 5.777 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001302/0.4814, allocations: 393.6 kB / 0.5177 GB, free: 5.387 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001158/0.4825, allocations: 0.8078 MB / 0.5185 GB, free: 4.578 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.4825, allocations: 0 / 0.5185 GB, free: 4.578 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.315/0.7975, allocations: 43.43 MB / 0.5609 GB, free: 115.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.05/20.84, allocations: 4 kB / 0.5609 GB, free: 115.6 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_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_IMC_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1)