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.001469/0.001469, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 205.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 62.77 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.09255, allocations: 50.54 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009278/0.1019, allocations: 8.173 MB / 365.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004827/0.1067, allocations: 2.715 MB / 368 MB, free: 3.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.1079, allocations: 43.81 kB / 368 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001907/0.1098, allocations: 0.5441 MB / 368.6 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.1124, allocations: 0.5789 MB / 369.2 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1137, allocations: 251.7 kB / 369.4 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1664/0.2801, allocations: 2.027 MB / 371.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.2826, allocations: 1.418 MB / 372.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00181/0.2844, allocations: 0.893 MB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002355/0.2868, allocations: 1.092 MB / 374.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008794/0.2877, allocations: 226.9 kB / 375 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.289, allocations: 316 kB / 375.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.2902, allocations: 0.6348 MB / 376 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001979/0.2922, allocations: 1.032 MB / 377 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004044/0.2963, allocations: 2.974 MB / 380 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2963, allocations: 0 / 380 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2963, allocations: 0 / 380 MB, free: 9.254 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.49e-05/0.2963, allocations: 0 / 380 MB, free: 9.254 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.003777/0.3001, allocations: 2.134 MB / 382.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.3002, allocations: 13.88 kB / 382.1 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003343/0.3005, allocations: 226 kB / 382.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00065/0.3012, allocations: 220.4 kB / 382.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/0.3029, allocations: 1.101 MB / 383.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.174e-05/0.303, allocations: 111.5 kB / 383.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002463/0.3033, allocations: 160.8 kB / 383.9 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00311/0.3064, allocations: 1.955 MB / 385.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/0.3064, allocations: 13.97 kB / 385.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.3066, allocations: 67.42 kB / 386 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.059e-05/0.3067, allocations: 77.3 kB / 386.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002366/0.3091, allocations: 1.58 MB / 387.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008178/0.3173, allocations: 6.342 MB / 394 MB, free: 1.203 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.3187, allocations: 0.8322 MB / 394.8 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009405/0.3196, allocations: 0.5785 MB / 395.4 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002119/0.3198, allocations: 122.8 kB / 395.5 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.3199, allocations: 40.66 kB / 395.6 MB, free: 304 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.786e-06/0.3199, allocations: 4 kB / 395.6 MB, free: 300 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01378/0.3337, allocations: 5.822 MB / 401.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.3338, allocations: 68.33 kB / 401.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001846/0.3356, allocations: 1.149 MB / 402.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/0.3357, allocations: 41.7 kB / 402.6 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005597/0.3363, allocations: 0.7739 MB / 403.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.3365, allocations: 307.5 kB / 403.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003258/0.3369, allocations: 210.7 kB / 403.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.337, allocations: 353.9 kB / 404.3 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007861/0.3378, allocations: 0.5439 MB / 404.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.3389, allocations: 0.8783 MB / 405.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/0.3409, allocations: 1.523 MB / 407.2 MB, free: 6.742 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/0.3409, allocations: 4 kB / 407.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00347/0.3444, allocations: 2.046 MB / 409.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.3444, allocations: 8 kB / 409.3 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.329e-05/0.3445, allocations: 12 kB / 409.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.3459, allocations: 0.5595 MB / 409.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000855/0.3468, allocations: 243.8 kB / 410.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008746/0.3555, allocations: 8.657 MB / 418.7 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.3568, allocations: 83.83 kB / 418.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.3569, allocations: 44 kB / 418.9 MB, free: 10.63 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.001043/0.3579, allocations: 0.5181 MB / 419.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.3583, allocations: 122.6 kB / 419.5 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/0.3614, allocations: 1.775 MB / 421.3 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3614, allocations: 8 kB / 421.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3614, allocations: 4 kB / 421.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3614, allocations: 3.984 kB / 421.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006573/0.368, allocations: 3.754 MB / 425 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.368, allocations: 7.984 kB / 425 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.3686, allocations: 123 kB / 425.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001553/0.3702, allocations: 0.587 MB / 425.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.97e-05/0.3702, allocations: 31.92 kB / 425.8 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008007/0.3783, allocations: 7.708 MB / 433.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.3783, allocations: 4 kB / 433.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/0.3822, allocations: 2.478 MB / 436 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008708/0.3831, allocations: 314.3 kB / 436.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003861/0.3835, allocations: 23.94 kB / 436.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008786/0.3844, allocations: 51.94 kB / 436.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.3846, allocations: 68.56 kB / 436.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.099e-05/0.3847, allocations: 27.98 kB / 436.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001405/0.3861, allocations: 0.7895 MB / 437.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3861, allocations: 3.75 kB / 437.2 MB, free: 7.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001581/0.3877, allocations: 372 kB / 437.6 MB, free: 7.395 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.004145/0.3918, allocations: 3.108 MB / 440.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003777/0.3956, allocations: 2.36 MB / 443.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3956, allocations: 0.8125 kB / 443.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002016/0.3977, allocations: 1.302 MB / 444.4 MB, free: 500 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.3997, allocations: 381.2 kB / 444.7 MB, free: 124 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02493/0.4247, allocations: 15.28 MB / 460 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.4259, allocations: 1.456 MB / 461.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008527/0.4268, allocations: 267 kB / 461.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007342/0.4276, allocations: 0.5657 MB / 462.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4276, allocations: 0 / 462.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06514/0.4927, allocations: 34.5 MB / 496.8 MB, free: 11.76 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002021/0.4929, allocations: 249.2 kB / 497.1 MB, free: 11.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.192, allocations: 0 / 497.1 MB, free: 11.51 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)