Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001302/0.001302, allocations: 121.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 200.6 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2439, allocations: 50.53 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01005/0.254, allocations: 8.219 MB / 417 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005098/0.2592, allocations: 2.742 MB / 419.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007315/0.2599, allocations: 35.88 kB / 419.8 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.2615, allocations: 0.6164 MB / 420.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001379/0.2629, allocations: 0.6289 MB / 421 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005607/0.2634, allocations: 291.6 kB / 421.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002194/0.2656, allocations: 2.027 MB / 423.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.2673, allocations: 1.428 MB / 424.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.2687, allocations: 0.8837 MB / 425.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.2701, allocations: 1.074 MB / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003187/0.2705, allocations: 228 kB / 426.9 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005969/0.2711, allocations: 315.8 kB / 427.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006665/0.2718, allocations: 0.6311 MB / 427.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.2728, allocations: 1.034 MB / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003224/0.2761, allocations: 3.009 MB / 431.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.2761, allocations: 4 kB / 431.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2761, allocations: 0 / 431.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.52e-05/0.2762, allocations: 3.984 kB / 431.9 MB, free: 10.26 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004076/0.2802, allocations: 2.17 MB / 434.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.2803, allocations: 15.97 kB / 434.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002851/0.2806, allocations: 232 kB / 434.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005751/0.2812, allocations: 223.7 kB / 434.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.283, allocations: 1.146 MB / 435.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.957e-05/0.2831, allocations: 119.1 kB / 435.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002333/0.2834, allocations: 156 kB / 436 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003104/0.2865, allocations: 1.963 MB / 437.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.2865, allocations: 3.953 kB / 437.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/0.2867, allocations: 64 kB / 438 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.642e-05/0.2868, allocations: 74.92 kB / 438.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002579/0.2894, allocations: 1.589 MB / 439.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009465/0.2989, allocations: 6.286 MB / 445.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.3003, allocations: 0.8457 MB / 446.8 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001004/0.3013, allocations: 0.5692 MB / 447.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000224/0.3016, allocations: 117.6 kB / 447.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.3016, allocations: 39.12 kB / 447.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.685e-06/0.3016, allocations: 0 / 447.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01322/0.3149, allocations: 5.865 MB / 453.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/0.3149, allocations: 64.41 kB / 453.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.3167, allocations: 1.152 MB / 454.6 MB, free: 2.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.262e-05/0.3168, allocations: 41.7 kB / 454.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006287/0.3174, allocations: 0.7925 MB / 455.4 MB, free: 2.133 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.3177, allocations: 317.3 kB / 455.7 MB, free: 1.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/0.318, allocations: 206.9 kB / 455.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3182, allocations: 349.9 kB / 456.3 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008243/0.319, allocations: 0.5452 MB / 456.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.3201, allocations: 0.8835 MB / 457.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.3222, allocations: 1.524 MB / 459.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.3222, allocations: 4 kB / 459.2 MB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003621/0.3258, allocations: 2.052 MB / 461.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.3259, allocations: 11.94 kB / 461.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.3259, allocations: 12 kB / 461.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001464/0.3274, allocations: 0.5593 MB / 461.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008675/0.3282, allocations: 243.6 kB / 462.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009144/0.3374, allocations: 8.651 MB / 470.8 MB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009834/0.3384, allocations: 67.92 kB / 470.8 MB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-05/0.3385, allocations: 44 kB / 470.9 MB, free: 1.77 MB / 382.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.0009117/0.3394, allocations: 0.5209 MB / 471.4 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002573/0.3397, allocations: 127.2 kB / 471.5 MB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003158/0.3429, allocations: 1.774 MB / 473.3 MB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.3429, allocations: 8 kB / 473.3 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.3429, allocations: 8 kB / 473.3 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.3429, allocations: 7.969 kB / 473.3 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006407/0.3493, allocations: 3.745 MB / 477.1 MB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3494, allocations: 3.938 kB / 477.1 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/0.3499, allocations: 128.1 kB / 477.2 MB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001593/0.3515, allocations: 0.5954 MB / 477.8 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.3516, allocations: 23.98 kB / 477.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008824/0.3604, allocations: 7.709 MB / 485.5 MB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3605, allocations: 4 kB / 485.5 MB, free: 2.574 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004064/0.3645, allocations: 2.488 MB / 488 MB, free: 40 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006766/0.3652, allocations: 316.3 kB / 488.3 MB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000154/0.3654, allocations: 27.92 kB / 488.3 MB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.366, allocations: 51.94 kB / 488.4 MB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.3662, allocations: 72.5 kB / 488.5 MB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-05/0.3663, allocations: 20 kB / 488.5 MB, free: 15.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.3675, allocations: 0.7934 MB / 489.3 MB, free: 14.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.084e-06/0.3676, allocations: 0 / 489.3 MB, free: 14.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001375/0.3689, allocations: 383.9 kB / 489.6 MB, free: 14.36 MB / 414.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.004392/0.3733, allocations: 3.112 MB / 492.8 MB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.3769, allocations: 2.142 MB / 494.9 MB, free: 8.953 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3769, allocations: 0 / 494.9 MB, free: 8.953 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.3791, allocations: 1.299 MB / 496.2 MB, free: 7.598 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.381, allocations: 383.9 kB / 496.6 MB, free: 7.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02216/0.4031, allocations: 13.68 MB / 0.4983 GB, free: 9.004 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.4047, allocations: 1.467 MB / 0.4997 GB, free: 7.508 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008328/0.4056, allocations: 263 kB / 0.5 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008364/0.4064, allocations: 0.5657 MB / 0.5005 GB, free: 6.68 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4064, allocations: 0 / 0.5005 GB, free: 6.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08853/0.495, allocations: 35.13 MB / 0.5348 GB, free: 3.934 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.72/18.21, allocations: 0 / 0.5348 GB, free: 3.934 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)