Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_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_1_0-beta_om_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.001377/0.001377, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001552, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.502/1.502, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 65.45 kB / 307.3 MB, free: 376 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1148, allocations: 50.54 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01093/0.1258, allocations: 8.208 MB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005592/0.1314, allocations: 2.742 MB / 368.8 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.1327, allocations: 43.81 kB / 368.9 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002125/0.1349, allocations: 0.6057 MB / 369.5 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002414/0.1373, allocations: 0.6405 MB / 370.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.1383, allocations: 283.6 kB / 370.4 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1839/0.3223, allocations: 2.025 MB / 372.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002123/0.3244, allocations: 1.419 MB / 373.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.3262, allocations: 0.8926 MB / 374.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3279, allocations: 1.067 MB / 375.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004491/0.3283, allocations: 227.2 kB / 376 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008584/0.3292, allocations: 313.9 kB / 376.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007747/0.33, allocations: 0.64 MB / 377 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.3313, allocations: 1.029 MB / 378 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005187/0.3365, allocations: 2.974 MB / 381 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.3366, allocations: 1.219 kB / 381 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.3366, allocations: 0.8438 kB / 381 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000122/0.3367, allocations: 0 / 381 MB, free: 9.109 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.005947/0.3427, allocations: 2.13 MB / 383.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.067e-05/0.3427, allocations: 9.766 kB / 383.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003682/0.3431, allocations: 225.4 kB / 383.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008298/0.3439, allocations: 217.5 kB / 383.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.3459, allocations: 1.105 MB / 384.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.922e-05/0.346, allocations: 120 kB / 384.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002482/0.3463, allocations: 159.5 kB / 384.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003692/0.35, allocations: 1.954 MB / 386.9 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.483e-05/0.3501, allocations: 7.469 kB / 386.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.3502, allocations: 64.09 kB / 386.9 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.3503, allocations: 82.69 kB / 387 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002751/0.3531, allocations: 1.585 MB / 388.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009994/0.3631, allocations: 6.337 MB / 395 MB, free: 1.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.3645, allocations: 0.8311 MB / 395.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008083/0.3653, allocations: 0.5724 MB / 396.4 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/0.3656, allocations: 124 kB / 396.5 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.3656, allocations: 40.22 kB / 396.5 MB, free: 168 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.905e-06/0.3656, allocations: 0 / 396.5 MB, free: 168 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01499/0.3806, allocations: 5.831 MB / 402.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/0.3807, allocations: 68.34 kB / 402.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002025/0.3827, allocations: 1.145 MB / 403.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.3829, allocations: 41.7 kB / 403.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006666/0.3835, allocations: 0.7747 MB / 404.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.3839, allocations: 303 kB / 404.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003636/0.3842, allocations: 210.8 kB / 404.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3844, allocations: 349.9 kB / 405.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008376/0.3853, allocations: 0.5491 MB / 405.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.3864, allocations: 0.8831 MB / 406.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.3886, allocations: 1.525 MB / 408.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.3887, allocations: 2.531 kB / 408.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003883/0.3926, allocations: 2.045 MB / 410.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.3926, allocations: 12 kB / 410.2 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.3926, allocations: 8 kB / 410.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.3942, allocations: 0.556 MB / 410.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008641/0.3951, allocations: 245.2 kB / 411 MB, free: 3.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009789/0.4049, allocations: 8.665 MB / 419.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.4063, allocations: 75.77 kB / 419.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.4065, allocations: 52.12 kB / 419.8 MB, free: 10.03 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.001182/0.4077, allocations: 0.5147 MB / 420.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004064/0.4082, allocations: 122.6 kB / 420.5 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/0.4116, allocations: 1.773 MB / 422.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.4117, allocations: 8 kB / 422.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.4117, allocations: 11.84 kB / 422.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.4117, allocations: 3.984 kB / 422.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007687/0.4194, allocations: 3.742 MB / 426 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.4195, allocations: 4 kB / 426 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.4201, allocations: 122 kB / 426.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001751/0.4219, allocations: 0.6034 MB / 426.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-05/0.422, allocations: 24 kB / 426.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/0.4321, allocations: 7.709 MB / 434.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.4321, allocations: 4 kB / 434.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004936/0.4371, allocations: 2.479 MB / 436.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009301/0.4381, allocations: 311.6 kB / 437.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004426/0.4385, allocations: 27.92 kB / 437.3 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4395, allocations: 55.22 kB / 437.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.4398, allocations: 64.56 kB / 437.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.271e-05/0.4399, allocations: 20 kB / 437.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001801/0.4417, allocations: 0.7973 MB / 438.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4417, allocations: 0 / 438.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002263/0.444, allocations: 376 kB / 438.6 MB, free: 6.785 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.005234/0.4492, allocations: 3.099 MB / 441.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004629/0.4539, allocations: 2.371 MB / 444 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.4539, allocations: 0 / 444 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002344/0.4563, allocations: 1.285 MB / 445.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002646/0.4589, allocations: 387.9 kB / 445.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02634/0.4853, allocations: 14.66 MB / 460.4 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00175/0.4871, allocations: 1.456 MB / 461.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.4881, allocations: 267 kB / 462.1 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008851/0.489, allocations: 0.5657 MB / 462.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.489, allocations: 0 / 462.7 MB, free: 13.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09148/0.5805, allocations: 34.53 MB / 497.2 MB, free: 11.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.34, allocations: 15.3 kB / 497.2 MB, free: 11.69 MB / 414.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)