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.001161/0.001161, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001259/0.001259, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2407, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008525/0.2492, allocations: 8.22 MB / 417 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004521/0.2538, allocations: 2.738 MB / 419.7 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007653/0.2546, allocations: 39.81 kB / 419.8 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.2561, allocations: 0.6447 MB / 420.4 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001518/0.2577, allocations: 0.6718 MB / 421.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.2583, allocations: 287.6 kB / 421.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.2604, allocations: 2.038 MB / 423.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.262, allocations: 1.417 MB / 424.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.2631, allocations: 0.8993 MB / 425.7 MB, free: 460 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001209/0.2643, allocations: 1.07 MB / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002886/0.2646, allocations: 224 kB / 427 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005434/0.2651, allocations: 315.8 kB / 427.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005519/0.2657, allocations: 0.635 MB / 427.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009517/0.2667, allocations: 1.034 MB / 429 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002573/0.2692, allocations: 2.999 MB / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2693, allocations: 0 / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2693, allocations: 0 / 432 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.617e-05/0.2693, allocations: 0 / 432 MB, free: 10.16 MB / 350.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.003528/0.2729, allocations: 2.129 MB / 434.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.2729, allocations: 19.91 kB / 434.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002492/0.2732, allocations: 224.1 kB / 434.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005353/0.2737, allocations: 218.6 kB / 434.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00165/0.2754, allocations: 1.142 MB / 435.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-05/0.2755, allocations: 119.1 kB / 435.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.2757, allocations: 163.9 kB / 436 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002793/0.2785, allocations: 1.951 MB / 437.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.448e-05/0.2785, allocations: 11.91 kB / 437.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.2787, allocations: 63.98 kB / 438 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.866e-05/0.2788, allocations: 74.92 kB / 438.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.2811, allocations: 1.585 MB / 439.7 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008342/0.2894, allocations: 6.264 MB / 445.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.2908, allocations: 0.8417 MB / 446.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000915/0.2917, allocations: 0.573 MB / 447.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002182/0.2919, allocations: 109.6 kB / 447.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.292, allocations: 43.12 kB / 447.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.995e-06/0.292, allocations: 0 / 447.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01224/0.3042, allocations: 5.841 MB / 453.3 MB, free: 4.227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.034e-05/0.3043, allocations: 64.41 kB / 453.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.306, allocations: 1.145 MB / 454.5 MB, free: 2.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.617e-05/0.3061, allocations: 41.7 kB / 454.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005138/0.3066, allocations: 0.7748 MB / 455.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002282/0.3068, allocations: 307.6 kB / 455.6 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003177/0.3071, allocations: 210.8 kB / 455.9 MB, free: 1.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3073, allocations: 349.9 kB / 456.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007458/0.308, allocations: 0.5413 MB / 456.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.3091, allocations: 0.8874 MB / 457.6 MB, free: 15.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/0.3108, allocations: 1.524 MB / 459.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.383e-06/0.3109, allocations: 0 / 459.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003224/0.3141, allocations: 2.051 MB / 461.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3141, allocations: 11.94 kB / 461.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3142, allocations: 12 kB / 461.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.3155, allocations: 0.5476 MB / 461.8 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007945/0.3163, allocations: 243.6 kB / 462 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007913/0.3243, allocations: 8.659 MB / 470.7 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009178/0.3252, allocations: 63.94 kB / 470.7 MB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.3253, allocations: 51.98 kB / 470.8 MB, free: 1.805 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.0008158/0.3262, allocations: 0.517 MB / 471.3 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.3264, allocations: 126.5 kB / 471.4 MB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002917/0.3294, allocations: 1.766 MB / 473.2 MB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.3294, allocations: 8 kB / 473.2 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.3294, allocations: 8 kB / 473.2 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3294, allocations: 3.984 kB / 473.2 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006066/0.3355, allocations: 3.749 MB / 477 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3355, allocations: 0 / 477 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.3361, allocations: 128 kB / 477.1 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001524/0.3376, allocations: 0.5925 MB / 477.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.347e-05/0.3377, allocations: 27.92 kB / 477.7 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007759/0.3454, allocations: 7.708 MB / 485.4 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3455, allocations: 3.984 kB / 485.4 MB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003626/0.3491, allocations: 2.48 MB / 487.9 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006263/0.3498, allocations: 315.5 kB / 488.2 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002352/0.35, allocations: 23.94 kB / 488.2 MB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006688/0.3507, allocations: 55.94 kB / 488.3 MB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/0.3509, allocations: 68.48 kB / 488.3 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.488e-05/0.3509, allocations: 28 kB / 488.4 MB, free: 15.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.3521, allocations: 0.7856 MB / 489.2 MB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.144e-06/0.3521, allocations: 0 / 489.2 MB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001342/0.3535, allocations: 387.9 kB / 489.5 MB, free: 14.42 MB / 414.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.004041/0.3575, allocations: 3.1 MB / 492.6 MB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003174/0.3607, allocations: 2.143 MB / 494.8 MB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.3608, allocations: 0 / 494.8 MB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001951/0.3627, allocations: 1.291 MB / 496.1 MB, free: 7.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/0.3645, allocations: 375.6 kB / 496.4 MB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/0.3848, allocations: 13.63 MB / 0.4981 GB, free: 9.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.3861, allocations: 1.471 MB / 0.4996 GB, free: 7.633 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007689/0.3868, allocations: 267 kB / 0.4998 GB, free: 7.367 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007419/0.3876, allocations: 0.5657 MB / 0.5004 GB, free: 6.801 MB / 430.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3876, allocations: 0 / 0.5004 GB, free: 6.801 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07158/0.4592, allocations: 35.11 MB / 0.5346 GB, free: 4.062 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.95/16.41, allocations: 4.062 kB / 0.5346 GB, free: 4.059 MB / 462.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)