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.00128/0.00128, allocations: 91.45 kB / 16.65 MB, free: 6.598 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.001461/0.001461, allocations: 177 kB / 17.56 MB, free: 6.203 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.391/1.391, allocations: 223.3 MB / 241.6 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002647/0.0002648, allocations: 8 kB / 301.5 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09246, allocations: 50.41 MB / 352 MB, free: 3.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.00793/0.1004, allocations: 7.65 MB / 359.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004443/0.1049, allocations: 2.649 MB / 362.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006439/0.1056, allocations: 35.81 kB / 362.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.1069, allocations: 0.5363 MB / 362.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001313/0.1082, allocations: 0.5828 MB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.1087, allocations: 251.7 kB / 363.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.1107, allocations: 2.342 MB / 366 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.112, allocations: 1.156 MB / 367.2 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000804/0.1128, allocations: 0.6962 MB / 367.8 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000958/0.1138, allocations: 0.9219 MB / 368.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.1139, allocations: 104 kB / 368.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/0.1143, allocations: 203.8 kB / 369.1 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004434/0.1148, allocations: 0.5022 MB / 369.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007333/0.1155, allocations: 0.8878 MB / 370.5 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1976/0.3132, allocations: 2.802 MB / 373.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3132, allocations: 1.969 kB / 373.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3132, allocations: 0.875 kB / 373.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.697e-05/0.3133, allocations: 0 / 373.3 MB, free: 13.62 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.0046/0.3179, allocations: 1.802 MB / 375.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.318, allocations: 14.94 kB / 375.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000511/0.3185, allocations: 230.2 kB / 375.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007237/0.3193, allocations: 213 kB / 375.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.3211, allocations: 1.105 MB / 376.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.808e-05/0.3212, allocations: 113.8 kB / 376.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.3214, allocations: 156 kB / 376.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003972/0.3254, allocations: 1.96 MB / 378.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/0.3255, allocations: 3.531 kB / 378.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001913/0.3257, allocations: 62.72 kB / 378.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.864e-05/0.3258, allocations: 80.47 kB / 379 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002905/0.3287, allocations: 1.586 MB / 380.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00991/0.3386, allocations: 6.355 MB / 386.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.3401, allocations: 0.8427 MB / 387.8 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.3412, allocations: 0.5764 MB / 388.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000242/0.3414, allocations: 119.1 kB / 388.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.3415, allocations: 49.92 kB / 388.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.455e-06/0.3415, allocations: 1.562 kB / 388.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01596/0.3575, allocations: 5.89 MB / 394.4 MB, free: 5.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.3575, allocations: 68.88 kB / 394.5 MB, free: 5.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.3595, allocations: 1.144 MB / 395.6 MB, free: 4.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.771e-05/0.3596, allocations: 41.67 kB / 395.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.36, allocations: 0.7756 MB / 396.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002014/0.3602, allocations: 301.3 kB / 396.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.3604, allocations: 92.52 kB / 396.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.014e-05/0.3604, allocations: 354.3 kB / 397.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007362/0.3612, allocations: 0.5447 MB / 397.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008743/0.3621, allocations: 0.8781 MB / 398.6 MB, free: 2.309 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.3639, allocations: 1.526 MB / 400.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3639, allocations: 3.531 kB / 400.1 MB, free: 1.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003561/0.3675, allocations: 2.043 MB / 402.2 MB, free: 15.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.3675, allocations: 12 kB / 402.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.3676, allocations: 8 kB / 402.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.3693, allocations: 0.5562 MB / 402.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.3704, allocations: 244.6 kB / 403 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00972/0.3801, allocations: 7.911 MB / 410.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.382, allocations: 75.77 kB / 411 MB, free: 6.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003311/0.3824, allocations: 52 kB / 411 MB, free: 6.121 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.001752/0.3842, allocations: 0.5217 MB / 411.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005598/0.3847, allocations: 126.4 kB / 411.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/0.389, allocations: 1.763 MB / 413.4 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.389, allocations: 8 kB / 413.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/0.3891, allocations: 4 kB / 413.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3891, allocations: 3.984 kB / 413.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009205/0.3983, allocations: 3.742 MB / 417.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.3983, allocations: 4.594 kB / 417.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000687/0.399, allocations: 132.1 kB / 417.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/0.4011, allocations: 0.5886 MB / 417.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.4012, allocations: 26.86 kB / 417.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009458/0.4107, allocations: 7.09 MB / 425 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4108, allocations: 0 / 425 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005294/0.4161, allocations: 2.484 MB / 427.5 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.4172, allocations: 307.6 kB / 427.8 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005536/0.4177, allocations: 23.98 kB / 427.8 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.419, allocations: 63.94 kB / 427.9 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002224/0.4192, allocations: 63.38 kB / 427.9 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.6e-05/0.4193, allocations: 27.98 kB / 428 MB, free: 4.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002223/0.4216, allocations: 0.7854 MB / 428.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4216, allocations: 0 / 428.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002349/0.4239, allocations: 383.9 kB / 429.1 MB, free: 3.527 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.005676/0.4296, allocations: 3.092 MB / 432.2 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00462/0.4343, allocations: 2.143 MB / 434.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4343, allocations: 0 / 434.4 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002665/0.437, allocations: 1.29 MB / 435.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003684/0.4407, allocations: 344.4 kB / 436 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03758/0.4783, allocations: 15.39 MB / 451.4 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/0.4802, allocations: 1.46 MB / 452.8 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001174/0.4814, allocations: 267 kB / 453.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.4825, allocations: 0.5657 MB / 453.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.284e-06/0.4825, allocations: 0.75 kB / 453.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09365/0.5761, allocations: 33 MB / 486.7 MB, free: 9.566 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003148/0.5765, allocations: 256.9 kB / 486.9 MB, free: 9.305 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/3.282, allocations: 0 / 486.9 MB, free: 9.305 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 & /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)