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.001395/0.001396, allocations: 101.3 kB / 17.05 MB, free: 6.125 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.001573/0.001573, allocations: 196.1 kB / 18 MB, free: 5.199 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.291/1.291, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2326, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009097/0.2417, allocations: 8.183 MB / 408.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005203/0.2469, allocations: 2.699 MB / 411.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.2481, allocations: 39.88 kB / 411.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001845/0.25, allocations: 0.6369 MB / 411.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001872/0.2519, allocations: 0.6601 MB / 412.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.2525, allocations: 283.6 kB / 412.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001982/0.2545, allocations: 2.04 MB / 414.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.256, allocations: 1.413 MB / 416.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.2571, allocations: 0.8955 MB / 417.1 MB, free: 7.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001133/0.2583, allocations: 1.066 MB / 418.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002383/0.2585, allocations: 224 kB / 418.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004924/0.259, allocations: 315.8 kB / 418.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005357/0.2596, allocations: 0.6389 MB / 419.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008799/0.2604, allocations: 1.019 MB / 420.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002481/0.2629, allocations: 2.998 MB / 423.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2629, allocations: 0 / 423.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.263, allocations: 0 / 423.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.67e-05/0.263, allocations: 3.938 kB / 423.3 MB, free: 1.59 MB / 334.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.003652/0.2666, allocations: 2.129 MB / 425.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.2667, allocations: 12.03 kB / 425.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002606/0.267, allocations: 224.1 kB / 425.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005537/0.2675, allocations: 214.7 kB / 425.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.2693, allocations: 1.145 MB / 427.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.864e-05/0.2693, allocations: 115.4 kB / 427.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.2696, allocations: 155.9 kB / 427.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.2723, allocations: 1.955 MB / 429.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.145e-05/0.2724, allocations: 11.84 kB / 429.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.2725, allocations: 64 kB / 429.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.433e-05/0.2726, allocations: 70.92 kB / 429.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.2749, allocations: 1.585 MB / 431 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007942/0.2828, allocations: 6.28 MB / 437.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.2841, allocations: 0.8316 MB / 438.1 MB, free: 2.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009114/0.285, allocations: 0.5769 MB / 438.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002135/0.2853, allocations: 113.6 kB / 438.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.2853, allocations: 39.59 kB / 438.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.484e-06/0.2853, allocations: 0 / 438.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01259/0.2979, allocations: 5.838 MB / 444.7 MB, free: 11.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.298, allocations: 60.41 kB / 444.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.2996, allocations: 1.148 MB / 445.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.4e-05/0.2996, allocations: 41.7 kB / 445.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005008/0.3002, allocations: 0.767 MB / 446.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.3004, allocations: 307.6 kB / 447 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003107/0.3007, allocations: 202.8 kB / 447.2 MB, free: 9.098 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3008, allocations: 349.9 kB / 447.5 MB, free: 8.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007267/0.3016, allocations: 0.5491 MB / 448.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009524/0.3025, allocations: 0.8835 MB / 449 MB, free: 7.168 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00173/0.3043, allocations: 1.52 MB / 450.5 MB, free: 5.496 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.3043, allocations: 4 kB / 450.5 MB, free: 5.492 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003236/0.3075, allocations: 2.047 MB / 452.5 MB, free: 3.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3076, allocations: 8 kB / 452.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.3076, allocations: 15.94 kB / 452.6 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001378/0.309, allocations: 0.5514 MB / 453.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000788/0.3098, allocations: 239.6 kB / 453.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007571/0.3174, allocations: 8.651 MB / 462 MB, free: 9.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008116/0.3182, allocations: 75.86 kB / 462.1 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.113e-05/0.3183, allocations: 48 kB / 462.1 MB, free: 9.258 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.0007219/0.319, allocations: 0.5209 MB / 462.6 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001838/0.3192, allocations: 122.5 kB / 462.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002725/0.3219, allocations: 1.77 MB / 464.5 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.3219, allocations: 8 kB / 464.5 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.322, allocations: 4 kB / 464.5 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.322, allocations: 3.984 kB / 464.5 MB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005467/0.3274, allocations: 3.749 MB / 468.3 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3275, allocations: 0 / 468.3 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005127/0.328, allocations: 128 kB / 468.4 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001472/0.3295, allocations: 0.5886 MB / 469 MB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.444e-05/0.3295, allocations: 23.98 kB / 469 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007388/0.3369, allocations: 7.704 MB / 476.7 MB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.337, allocations: 3.938 kB / 476.7 MB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003553/0.3405, allocations: 2.484 MB / 479.2 MB, free: 7.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005782/0.3411, allocations: 311.7 kB / 479.5 MB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.3413, allocations: 27.94 kB / 479.6 MB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000611/0.3419, allocations: 55.92 kB / 479.6 MB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.3421, allocations: 64.56 kB / 479.7 MB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-05/0.3421, allocations: 24 kB / 479.7 MB, free: 7.055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001041/0.3432, allocations: 0.7932 MB / 480.5 MB, free: 6.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3432, allocations: 0 / 480.5 MB, free: 6.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001264/0.3445, allocations: 380 kB / 480.9 MB, free: 5.883 MB / 398.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.003916/0.3484, allocations: 3.112 MB / 484 MB, free: 2.703 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003148/0.3516, allocations: 2.127 MB / 486.1 MB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3516, allocations: 0 / 486.1 MB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.3535, allocations: 1.295 MB / 487.4 MB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00157/0.3551, allocations: 374.5 kB / 487.8 MB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/0.3723, allocations: 13.62 MB / 0.4896 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009837/0.3733, allocations: 1.456 MB / 0.491 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006794/0.374, allocations: 263 kB / 0.4913 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006611/0.3747, allocations: 0.5682 MB / 0.4919 GB, free: 14.29 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3747, allocations: 4 kB / 0.4919 GB, free: 14.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06024/0.4349, allocations: 34.99 MB / 0.526 GB, free: 11.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/16.5, allocations: 3.75 kB / 0.526 GB, free: 11.7 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 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)