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.001123/0.001123, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 58.69 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08802, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009695/0.09776, allocations: 8.217 MB / 365.8 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004558/0.1023, allocations: 2.746 MB / 368.5 MB, free: 2.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008321/0.1032, allocations: 43.81 kB / 368.6 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.1049, allocations: 0.6057 MB / 369.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001633/0.1065, allocations: 0.6367 MB / 369.8 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006535/0.1072, allocations: 279.6 kB / 370.1 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.139/0.2462, allocations: 2.025 MB / 372.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001694/0.2479, allocations: 1.415 MB / 373.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.2492, allocations: 0.8958 MB / 374.4 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.2505, allocations: 1.07 MB / 375.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003397/0.2509, allocations: 226.2 kB / 375.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000638/0.2515, allocations: 315.8 kB / 376 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005976/0.2522, allocations: 0.6327 MB / 376.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009615/0.2531, allocations: 1.032 MB / 377.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.2559, allocations: 2.965 MB / 380.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2559, allocations: 5.312 kB / 380.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2559, allocations: 0.6562 kB / 380.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.004e-05/0.256, allocations: 1.031 kB / 380.7 MB, free: 9.133 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.003813/0.2598, allocations: 2.131 MB / 382.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.2599, allocations: 9.531 kB / 382.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000284/0.2602, allocations: 230.7 kB / 383 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006042/0.2608, allocations: 216.5 kB / 383.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.2624, allocations: 1.111 MB / 384.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.281e-05/0.2625, allocations: 113.3 kB / 384.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002154/0.2627, allocations: 158.1 kB / 384.6 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002797/0.2655, allocations: 1.959 MB / 386.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.361e-05/0.2656, allocations: 6.281 kB / 386.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.2657, allocations: 64.62 kB / 386.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.744e-05/0.2658, allocations: 78.97 kB / 386.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002351/0.2682, allocations: 1.583 MB / 388.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007922/0.2761, allocations: 6.336 MB / 394.7 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.2773, allocations: 0.8319 MB / 395.5 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008387/0.2781, allocations: 0.5749 MB / 396.1 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/0.2783, allocations: 133.1 kB / 396.2 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.2784, allocations: 38.81 kB / 396.2 MB, free: 204 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.384e-06/0.2784, allocations: 0 / 396.2 MB, free: 204 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01314/0.2915, allocations: 5.832 MB / 402.1 MB, free: 12.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.2916, allocations: 64.34 kB / 402.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001609/0.2932, allocations: 1.148 MB / 403.3 MB, free: 11.13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.855e-05/0.2933, allocations: 37.7 kB / 403.3 MB, free: 11.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006713/0.294, allocations: 0.7784 MB / 404.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/0.2943, allocations: 303.5 kB / 404.4 MB, free: 10.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/0.2947, allocations: 210.8 kB / 404.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.2949, allocations: 349.9 kB / 404.9 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008408/0.2958, allocations: 0.5491 MB / 405.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.2968, allocations: 0.8866 MB / 406.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.2987, allocations: 1.525 MB / 407.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2987, allocations: 0 / 407.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003451/0.3021, allocations: 2.049 MB / 409.9 MB, free: 4.242 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.3022, allocations: 14.97 kB / 410 MB, free: 4.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.3022, allocations: 8 kB / 410 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3036, allocations: 0.5516 MB / 410.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008017/0.3044, allocations: 245 kB / 410.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008157/0.3126, allocations: 8.653 MB / 419.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.3137, allocations: 83.89 kB / 419.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.3138, allocations: 48 kB / 419.5 MB, free: 10.14 MB / 334.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.0008491/0.3146, allocations: 0.5143 MB / 420.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002158/0.3149, allocations: 118.6 kB / 420.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.3178, allocations: 1.773 MB / 421.9 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.3178, allocations: 16 kB / 422 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3178, allocations: 4 kB / 422 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.3178, allocations: 3.984 kB / 422 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005894/0.3237, allocations: 3.752 MB / 425.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.3237, allocations: 4 kB / 425.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005319/0.3243, allocations: 123.3 kB / 425.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001509/0.3258, allocations: 0.5947 MB / 426.4 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-05/0.3259, allocations: 23.98 kB / 426.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008004/0.3339, allocations: 7.716 MB / 434.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.3339, allocations: 6.812 kB / 434.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003642/0.3376, allocations: 2.481 MB / 436.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.3382, allocations: 311.6 kB / 437 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.3384, allocations: 27.92 kB / 437 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006587/0.339, allocations: 47.94 kB / 437 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.3392, allocations: 68.56 kB / 437.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.007e-05/0.3393, allocations: 27.98 kB / 437.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001103/0.3404, allocations: 0.7895 MB / 437.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3404, allocations: 0 / 437.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001393/0.3418, allocations: 372 kB / 438.3 MB, free: 6.898 MB / 350.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.004209/0.346, allocations: 3.108 MB / 441.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003882/0.3499, allocations: 2.361 MB / 443.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3499, allocations: 0 / 443.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.352, allocations: 1.293 MB / 445 MB, free: 0 / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.3538, allocations: 386.8 kB / 445.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/0.3736, allocations: 14.67 MB / 460.1 MB, free: 252 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.3749, allocations: 1.467 MB / 461.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009528/0.3759, allocations: 259.1 kB / 461.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.3771, allocations: 0.5657 MB / 462.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3771, allocations: 4 kB / 462.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/0.4832, allocations: 34.51 MB / 496.9 MB, free: 11.8 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.2, allocations: 12.88 kB / 496.9 MB, free: 11.8 MB / 414.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)