Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 199.1 kB / 18.07 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 245.4 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007301/0.0007301, allocations: 103.9 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.000201, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1935, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1068/0.3003, allocations: 102.2 MB / 0.4989 GB, free: 5.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.3006, allocations: 87.95 kB / 0.499 GB, free: 5.258 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.226/0.5266, allocations: 35.17 MB / 0.5334 GB, free: 79.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5267, allocations: 0 / 0.5334 GB, free: 79.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001363/0.5268, allocations: 39.94 kB / 0.5334 GB, free: 79.56 MB / 378.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.003722/0.5305, allocations: 1.802 MB / 0.5352 GB, free: 77.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.5306, allocations: 12.03 kB / 0.5352 GB, free: 77.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008247/0.5314, allocations: 222.6 kB / 0.5354 GB, free: 77.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.5336, allocations: 1.227 MB / 0.5366 GB, free: 76.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.954e-05/0.5337, allocations: 111.4 kB / 0.5367 GB, free: 76.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.534, allocations: 156.3 kB / 0.5368 GB, free: 75.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.5369, allocations: 1.951 MB / 0.5388 GB, free: 73.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.286e-05/0.5369, allocations: 8.125 kB / 0.5388 GB, free: 73.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.5371, allocations: 71.92 kB / 0.5388 GB, free: 73.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-05/0.5372, allocations: 74.86 kB / 0.5389 GB, free: 73.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00215/0.5393, allocations: 1.511 MB / 0.5404 GB, free: 72.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007715/0.547, allocations: 6.328 MB / 0.5466 GB, free: 65.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.5482, allocations: 0.8616 MB / 0.5474 GB, free: 64.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006431/0.5489, allocations: 0.5379 MB / 0.5479 GB, free: 64.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000223/0.5491, allocations: 129.6 kB / 0.548 GB, free: 64.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.5491, allocations: 47.05 kB / 0.5481 GB, free: 64.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.564e-06/0.5491, allocations: 0 / 0.5481 GB, free: 64.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=93): time 0.01229/0.5614, allocations: 6.271 MB / 0.5542 GB, free: 57.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.5615, allocations: 60.41 kB / 0.5543 GB, free: 57.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002071/0.5636, allocations: 1.117 MB / 0.5554 GB, free: 56.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001216/0.5637, allocations: 45.64 kB / 0.5554 GB, free: 56.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000405/0.5641, allocations: 0.7632 MB / 0.5562 GB, free: 55.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.5644, allocations: 327.2 kB / 0.5565 GB, free: 55.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.705e-05/0.5645, allocations: 24 kB / 0.5565 GB, free: 55.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.848e-05/0.5646, allocations: 361.9 kB / 0.5568 GB, free: 54.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007328/0.5653, allocations: 0.5609 MB / 0.5574 GB, free: 54.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008265/0.5661, allocations: 0.911 MB / 0.5583 GB, free: 53.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001612/0.5678, allocations: 1.57 MB / 0.5598 GB, free: 51.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.5678, allocations: 7.938 kB / 0.5598 GB, free: 51.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003026/0.5708, allocations: 2.109 MB / 0.5619 GB, free: 49.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.5709, allocations: 8 kB / 0.5619 GB, free: 49.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.5709, allocations: 12 kB / 0.5619 GB, free: 49.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001327/0.5722, allocations: 0.5672 MB / 0.5624 GB, free: 48.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008148/0.573, allocations: 267.6 kB / 0.5627 GB, free: 48.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005851/0.5789, allocations: 7.983 MB / 0.5705 GB, free: 40.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.58, allocations: 67.94 kB / 0.5706 GB, free: 39.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.5802, allocations: 51.98 kB / 0.5706 GB, free: 39.91 MB / 378.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 (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000946/0.5811, allocations: 0.5322 MB / 0.5711 GB, free: 39.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.5814, allocations: 130.6 kB / 0.5713 GB, free: 39.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002848/0.5843, allocations: 1.904 MB / 0.5731 GB, free: 37.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.5843, allocations: 16 kB / 0.5731 GB, free: 37.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.5843, allocations: 7.938 kB / 0.5731 GB, free: 37.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.5843, allocations: 8.078 kB / 0.5731 GB, free: 37.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005769/0.5901, allocations: 3.9 MB / 0.577 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.5901, allocations: 0 / 0.577 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.5906, allocations: 123.7 kB / 0.5771 GB, free: 33.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.5922, allocations: 0.6669 MB / 0.5777 GB, free: 32.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-05/0.5923, allocations: 31.98 kB / 0.5778 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007142/0.5994, allocations: 7.991 MB / 0.5856 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5995, allocations: 0 / 0.5856 GB, free: 24.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003572/0.6031, allocations: 2.672 MB / 0.5882 GB, free: 21.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006075/0.6037, allocations: 315.5 kB / 0.5885 GB, free: 21.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.604, allocations: 35.92 kB / 0.5885 GB, free: 20.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007209/0.6047, allocations: 63.88 kB / 0.5886 GB, free: 20.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.6049, allocations: 72.83 kB / 0.5886 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.526e-05/0.605, allocations: 28 kB / 0.5887 GB, free: 20.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001186/0.6062, allocations: 0.7583 MB / 0.5894 GB, free: 20.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6062, allocations: 0 / 0.5894 GB, free: 20.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001629/0.6078, allocations: 427.9 kB / 0.5898 GB, free: 19.63 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.phi,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.w) * 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,77.8%) 20,(1,100.0%) 1,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004971/0.6083, allocations: 314.4 kB / 0.5901 GB, free: 19.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.6113, allocations: 2.208 MB / 0.5923 GB, free: 17.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.6113, allocations: 4 kB / 0.5923 GB, free: 17.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.6131, allocations: 1.378 MB / 0.5936 GB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.6153, allocations: 366.6 kB / 0.594 GB, free: 15.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004673/0.6199, allocations: 4.021 MB / 0.5979 GB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007846/0.6208, allocations: 1.464 MB / 0.5993 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.6211, allocations: 87.42 kB / 0.5994 GB, free: 9.566 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.6211, allocations: 0 / 0.5994 GB, free: 9.566 MB / 378.7 MB Notification: Performance of Templates: time 0.05772/0.6788, allocations: 60.15 MB / 0.6581 GB, free: 13.42 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)