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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 182.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001075, allocations: 105 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000794/0.0007941, allocations: 35.89 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2166, allocations: 49.45 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.006434/0.2231, allocations: 8.139 MB / 407.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00422/0.2274, allocations: 2.669 MB / 410.3 MB, free: 22.53 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008571/0.2283, allocations: 35.88 kB / 410.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.2297, allocations: 0.5401 MB / 410.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0011/0.2308, allocations: 0.5789 MB / 411.4 MB, free: 21.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.2312, allocations: 251.7 kB / 411.7 MB, free: 21.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001552/0.2328, allocations: 2.378 MB / 414.1 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.2338, allocations: 1.167 MB / 415.2 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008795/0.2347, allocations: 0.786 MB / 416 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009092/0.2356, allocations: 1.035 MB / 417.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.2359, allocations: 144 kB / 417.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004897/0.2364, allocations: 239.8 kB / 417.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003897/0.2368, allocations: 0.5607 MB / 418 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006794/0.2375, allocations: 0.9252 MB / 418.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.239, allocations: 2.901 MB / 421.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2391, allocations: 0 / 421.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2391, allocations: 4 kB / 421.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.692e-05/0.2391, allocations: 3.938 kB / 421.8 MB, free: 10.91 MB / 298.7 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.003254/0.2424, allocations: 2.125 MB / 424 MB, free: 8.727 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2424, allocations: 8.031 kB / 424 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.2429, allocations: 210.7 kB / 424.2 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.2444, allocations: 1.106 MB / 425.3 MB, free: 7.363 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.911e-05/0.2444, allocations: 111.4 kB / 425.4 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/0.2446, allocations: 164 kB / 425.5 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.2469, allocations: 1.955 MB / 427.5 MB, free: 5.094 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.153e-05/0.247, allocations: 3.984 kB / 427.5 MB, free: 5.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.2471, allocations: 71.92 kB / 427.6 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.568e-05/0.2472, allocations: 78.92 kB / 427.6 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.2491, allocations: 1.581 MB / 429.2 MB, free: 3.355 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008699/0.2578, allocations: 6.33 MB / 435.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.2591, allocations: 0.8305 MB / 436.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009554/0.2601, allocations: 0.577 MB / 437 MB, free: 11.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002381/0.2604, allocations: 121.6 kB / 437.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.2604, allocations: 39.12 kB / 437.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=65): time 2.885e-06/0.2604, allocations: 3.938 kB / 437.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.01314/0.2736, allocations: 5.823 MB / 442.9 MB, free: 5.219 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.2736, allocations: 68.34 kB / 443 MB, free: 5.141 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.2752, allocations: 1.148 MB / 444.2 MB, free: 3.977 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.143e-05/0.2753, allocations: 37.7 kB / 444.2 MB, free: 3.934 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004984/0.2758, allocations: 0.7747 MB / 445 MB, free: 3.148 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.276, allocations: 295.8 kB / 445.3 MB, free: 2.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003081/0.2763, allocations: 206.8 kB / 445.5 MB, free: 2.645 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.2765, allocations: 349.9 kB / 445.8 MB, free: 2.297 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007357/0.2772, allocations: 0.5374 MB / 446.3 MB, free: 1.762 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009493/0.2782, allocations: 0.8912 MB / 447.2 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.28, allocations: 1.524 MB / 448.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.28, allocations: 7.938 kB / 448.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003276/0.2833, allocations: 2.043 MB / 450.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.2833, allocations: 15.94 kB / 450.8 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.2833, allocations: 8 kB / 450.8 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.2847, allocations: 0.5516 MB / 451.4 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007905/0.2855, allocations: 239.6 kB / 451.6 MB, free: 12.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007588/0.2931, allocations: 7.908 MB / 459.5 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/0.2942, allocations: 79.94 kB / 459.6 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.2943, allocations: 48 kB / 459.7 MB, free: 3.578 MB / 330.7 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.0009702/0.2953, allocations: 0.5137 MB / 460.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.2956, allocations: 122.6 kB / 460.3 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.2986, allocations: 1.77 MB / 462.1 MB, free: 1.137 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.2986, allocations: 12 kB / 462.1 MB, free: 1.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.2986, allocations: 4 kB / 462.1 MB, free: 1.121 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.2986, allocations: 3.984 kB / 462.1 MB, free: 1.117 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006147/0.3048, allocations: 3.75 MB / 465.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.3048, allocations: 0 / 465.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.3053, allocations: 127.9 kB / 466 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.3069, allocations: 0.5998 MB / 466.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.315e-05/0.3069, allocations: 23.98 kB / 466.6 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007326/0.3143, allocations: 7.072 MB / 473.6 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.3143, allocations: 112 / 473.6 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03374/0.3481, allocations: 21.61 MB / 495.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/0.3487, allocations: 311.6 kB / 495.6 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.3488, allocations: 23.94 kB / 495.6 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006298/0.3495, allocations: 56.17 kB / 495.6 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.3496, allocations: 68.5 kB / 495.7 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.918e-05/0.3497, allocations: 28 kB / 495.7 MB, free: 14.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001083/0.3508, allocations: 0.7893 MB / 496.5 MB, free: 13.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3508, allocations: 0 / 496.5 MB, free: 13.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001858/0.3527, allocations: 0.5312 MB / 497.1 MB, free: 12.96 MB / 378.7 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.000435/0.3531, allocations: 179.3 kB / 497.2 MB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.3566, allocations: 2.131 MB / 499.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.3566, allocations: 4 kB / 499.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.3586, allocations: 1.295 MB / 0.4889 GB, free: 9.191 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.3606, allocations: 355.6 kB / 0.4893 GB, free: 8.844 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008902/0.3696, allocations: 5.305 MB / 0.4944 GB, free: 3.41 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002153/0.3718, allocations: 1.505 MB / 0.4959 GB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001487/0.3733, allocations: 279 kB / 0.4962 GB, free: 1.598 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003798/0.3737, allocations: 87.44 kB / 0.4963 GB, free: 1.516 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.3737, allocations: 0 / 0.4963 GB, free: 1.516 MB / 378.7 MB Notification: Performance of Templates: time 0.2308/0.6045, allocations: 26.49 MB / 0.5221 GB, free: 79.3 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)