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_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 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_YD,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_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.001456/0.001456, allocations: 121.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.001566/0.001566, allocations: 204.6 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.437/1.437, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001865/0.001865, allocations: 67.89 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2404, 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_YD): time 0.01262/0.2531, allocations: 10.33 MB / 419.4 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006489/0.2596, allocations: 3.278 MB / 422.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001365/0.2611, allocations: 51.81 kB / 422.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.2628, allocations: 0.7025 MB / 423.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00269/0.2655, allocations: 0.8776 MB / 424.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.2665, allocations: 427.4 kB / 424.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00428/0.2708, allocations: 3.424 MB / 428.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.274, allocations: 2.603 MB / 430.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002264/0.2763, allocations: 1.522 MB / 432.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.2792, allocations: 1.856 MB / 434.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007378/0.2799, allocations: 396 kB / 434.5 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.2812, allocations: 499.8 kB / 435 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.2824, allocations: 1.11 MB / 436.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002426/0.2848, allocations: 1.785 MB / 437.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006012/0.2909, allocations: 5.24 MB / 443.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2909, allocations: 0 / 443.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.2909, allocations: 0 / 443.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.291, allocations: 3.938 kB / 443.2 MB, free: 15.12 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.007809/0.2989, allocations: 3.63 MB / 446.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.2989, allocations: 12.03 kB / 446.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005459/0.2995, allocations: 367 kB / 447.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.3007, allocations: 402.7 kB / 447.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003397/0.3041, allocations: 1.95 MB / 449.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001833/0.3043, allocations: 205.1 kB / 449.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004119/0.3047, allocations: 252 kB / 449.9 MB, free: 8.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006152/0.3109, allocations: 3.531 MB / 453.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.676e-05/0.311, allocations: 15.88 kB / 453.5 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002503/0.3112, allocations: 104 kB / 453.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.3113, allocations: 108.9 kB / 453.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005719/0.3171, allocations: 3.095 MB / 456.8 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01748/0.3346, allocations: 10.76 MB / 467.5 MB, free: 6.191 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003769/0.3384, allocations: 3.083 MB / 470.6 MB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002307/0.3407, allocations: 1.402 MB / 472 MB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002791/0.341, allocations: 130.3 kB / 472.2 MB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001786/0.3428, allocations: 1.148 MB / 473.3 MB, free: 172 kB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.266e-06/0.3428, allocations: 0 / 473.3 MB, free: 172 kB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.0207/0.3635, allocations: 8.911 MB / 482.2 MB, free: 7.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.3637, allocations: 180.2 kB / 482.4 MB, free: 6.895 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/0.3667, allocations: 1.848 MB / 484.2 MB, free: 5.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002225/0.3669, allocations: 57.7 kB / 484.3 MB, free: 4.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.3682, allocations: 1.234 MB / 485.5 MB, free: 3.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006258/0.3688, allocations: 0.5849 MB / 486.1 MB, free: 3.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006166/0.3694, allocations: 359.5 kB / 486.5 MB, free: 2.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3696, allocations: 301.1 kB / 486.8 MB, free: 2.492 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.3713, allocations: 0.9994 MB / 487.8 MB, free: 1.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/0.3734, allocations: 1.438 MB / 489.2 MB, free: 15.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003685/0.3771, allocations: 2.446 MB / 491.6 MB, free: 13.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3771, allocations: 4 kB / 491.7 MB, free: 13.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005967/0.3831, allocations: 3.339 MB / 495 MB, free: 9.934 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3831, allocations: 12.06 kB / 495 MB, free: 9.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.3831, allocations: 15.94 kB / 495 MB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00217/0.3853, allocations: 0.8795 MB / 495.9 MB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.3865, allocations: 335.5 kB / 496.2 MB, free: 8.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.3993, allocations: 10.44 MB / 0.4948 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.401, allocations: 127.9 kB / 0.4949 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.4012, allocations: 71.98 kB / 0.495 GB, free: 13.63 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (185): * Single equations (assignments): 180 * 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,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001625/0.4028, allocations: 0.9448 MB / 0.4959 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/0.4032, allocations: 218.6 kB / 0.4961 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005607/0.4088, allocations: 3.103 MB / 0.4991 GB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.4089, allocations: 20 kB / 0.4992 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.4089, allocations: 8 kB / 0.4992 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.4089, allocations: 11.97 kB / 0.4992 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/0.42, allocations: 6.218 MB / 0.5053 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.4201, allocations: 0 / 0.5053 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008926/0.421, allocations: 211.7 kB / 0.5055 GB, free: 2.758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002439/0.4234, allocations: 0.9332 MB / 0.5064 GB, free: 1.809 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.4236, allocations: 39.98 kB / 0.5064 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01487/0.4385, allocations: 12.03 MB / 0.5182 GB, free: 5.176 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.435e-06/0.4385, allocations: 7.875 kB / 0.5182 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009035/0.4475, allocations: 4.516 MB / 0.5226 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.449, allocations: 0.4956 MB / 0.5231 GB, free: 80 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006039/0.4496, allocations: 36 kB / 0.5231 GB, free: 44 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/0.451, allocations: 115.9 kB / 0.5232 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005576/0.4516, allocations: 185 kB / 0.5234 GB, free: 15.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/0.4518, allocations: 47.98 kB / 0.5234 GB, free: 15.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002435/0.4542, allocations: 1.267 MB / 0.5247 GB, free: 14.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4542, allocations: 3.938 kB / 0.5247 GB, free: 14.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002434/0.4567, allocations: 0.6367 MB / 0.5253 GB, free: 13.8 MB / 462.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: 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 (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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,25,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.008043/0.4647, allocations: 5.178 MB / 0.5303 GB, free: 8.551 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005429/0.4702, allocations: 3.273 MB / 0.5335 GB, free: 5.195 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4702, allocations: 0 / 0.5335 GB, free: 5.195 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003646/0.4739, allocations: 2.246 MB / 0.5357 GB, free: 2.871 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00303/0.4769, allocations: 0.5669 MB / 0.5363 GB, free: 2.316 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2304/0.7074, allocations: 22.51 MB / 0.5583 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/0.7089, allocations: 2.194 MB / 0.5604 GB, free: 114.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.7102, allocations: 451.8 kB / 0.5608 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.7112, allocations: 1.011 MB / 0.5618 GB, free: 113.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.31e-07/0.7113, allocations: 2.312 kB / 0.5618 GB, free: 113.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09778/0.809, allocations: 59.93 MB / 0.6203 GB, free: 54.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/14.05, allocations: 1.375 kB / 0.6203 GB, free: 54.06 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1)