Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",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.001111/0.001111, allocations: 105.4 kB / 16.92 MB, free: 6.145 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.001206/0.001206, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.00101, allocations: 54.94 kB / 300.7 MB, free: 5.742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09175/0.09278, allocations: 49.44 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009027/0.1019, allocations: 8.168 MB / 358.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004362/0.1062, allocations: 2.707 MB / 361 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007771/0.107, allocations: 43.81 kB / 361.1 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.1086, allocations: 0.6018 MB / 361.7 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001464/0.1101, allocations: 0.6327 MB / 362.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000533/0.1106, allocations: 283.6 kB / 362.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001774/0.1124, allocations: 2.019 MB / 364.6 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.1139, allocations: 1.428 MB / 366 MB, free: 4.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009505/0.1149, allocations: 0.8837 MB / 366.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001145/0.116, allocations: 1.062 MB / 368 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.1163, allocations: 228 kB / 368.2 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.1169, allocations: 311.8 kB / 368.5 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005766/0.1175, allocations: 0.635 MB / 369.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009232/0.1184, allocations: 1.034 MB / 370.2 MB, free: 136 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1482/0.2667, allocations: 2.955 MB / 373.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2667, allocations: 0 / 373.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2667, allocations: 1.094 kB / 373.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.2667, allocations: 0 / 373.1 MB, free: 13.44 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00335/0.2701, allocations: 2.124 MB / 375.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.2701, allocations: 14.12 kB / 375.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002644/0.2704, allocations: 228.1 kB / 375.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005429/0.271, allocations: 214 kB / 375.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001441/0.2724, allocations: 1.101 MB / 376.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.052e-05/0.2725, allocations: 114 kB / 376.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.2727, allocations: 156.5 kB / 377.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.2755, allocations: 1.965 MB / 379 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.335e-05/0.2756, allocations: 6.156 kB / 379.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.2757, allocations: 61.47 kB / 379.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.112e-05/0.2758, allocations: 81.39 kB / 379.2 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002303/0.2781, allocations: 1.584 MB / 380.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007325/0.2854, allocations: 6.334 MB / 387.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.2866, allocations: 0.8422 MB / 388 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008609/0.2875, allocations: 0.5765 MB / 388.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001934/0.2877, allocations: 112.8 kB / 388.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.2877, allocations: 42.72 kB / 388.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.865e-06/0.2877, allocations: 0 / 388.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01153/0.2993, allocations: 5.825 MB / 394.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.434e-05/0.2993, allocations: 68.44 kB / 394.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.3005, allocations: 1.139 MB / 395.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.3005, allocations: 40.33 kB / 395.8 MB, free: 3.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.3009, allocations: 0.7745 MB / 396.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.301, allocations: 300.9 kB / 396.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.3013, allocations: 207.1 kB / 397 MB, free: 2.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.743e-05/0.3014, allocations: 357.3 kB / 397.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006155/0.302, allocations: 0.5423 MB / 397.9 MB, free: 1.656 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000689/0.3027, allocations: 0.8793 MB / 398.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.3041, allocations: 1.524 MB / 400.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3041, allocations: 2.844 kB / 400.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00305/0.3072, allocations: 2.048 MB / 402.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3072, allocations: 8 kB / 402.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3072, allocations: 13.78 kB / 402.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/0.3086, allocations: 0.5569 MB / 402.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007945/0.3094, allocations: 241.7 kB / 403.2 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008188/0.3176, allocations: 8.652 MB / 411.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.3186, allocations: 72.09 kB / 411.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.3187, allocations: 52.67 kB / 412 MB, free: 4.145 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001018/0.3198, allocations: 0.5187 MB / 412.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.3201, allocations: 122.5 kB / 412.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.3232, allocations: 1.768 MB / 414.4 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.3232, allocations: 12.09 kB / 414.4 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.3232, allocations: 7.938 kB / 414.4 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.3232, allocations: 3.984 kB / 414.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006617/0.3299, allocations: 3.749 MB / 418.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.3299, allocations: 0 / 418.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.3304, allocations: 127.5 kB / 418.3 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.332, allocations: 0.6 MB / 418.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.316e-05/0.3321, allocations: 23.98 kB / 418.9 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008328/0.3404, allocations: 7.709 MB / 426.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.3404, allocations: 0 / 426.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003902/0.3443, allocations: 2.473 MB / 429.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007401/0.3451, allocations: 314.3 kB / 429.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003434/0.3455, allocations: 23.98 kB / 429.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008187/0.3463, allocations: 59.88 kB / 429.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.3465, allocations: 60.56 kB / 429.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.166e-05/0.3466, allocations: 35.98 kB / 429.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.3479, allocations: 0.7854 MB / 430.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3479, allocations: 2.906 kB / 430.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00158/0.3495, allocations: 376 kB / 430.7 MB, free: 0.9102 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 59 * 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 {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004108/0.3536, allocations: 3.106 MB / 433.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003918/0.3575, allocations: 2.351 MB / 436.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.3575, allocations: 4 kB / 436.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/0.3597, allocations: 1.301 MB / 437.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002242/0.3619, allocations: 378.4 kB / 437.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02313/0.3851, allocations: 14.65 MB / 452.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001188/0.3863, allocations: 1.464 MB / 453.9 MB, free: 8.781 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008183/0.3871, allocations: 267 kB / 454.2 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000729/0.3879, allocations: 0.5644 MB / 454.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3879, allocations: 0 / 454.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07383/0.4617, allocations: 34.39 MB / 489.2 MB, free: 5.992 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.788/10.25, allocations: 6.047 kB / 489.2 MB, free: 5.992 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)