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: 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_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_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001038, allocations: 95.47 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 192.9 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002259/0.0002259, allocations: 11.98 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007595/0.1114, allocations: 7.245 MB / 365.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.1159, allocations: 2.58 MB / 368.5 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008665/0.1168, allocations: 39.81 kB / 368.5 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.1182, allocations: 0.4933 MB / 369 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001264/0.1195, allocations: 0.5476 MB / 369.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.12, allocations: 179.7 kB / 369.7 MB, free: 2.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00208/0.1221, allocations: 2.101 MB / 371.8 MB, free: 428 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1904/0.3125, allocations: 0.9581 MB / 372.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.3138, allocations: 0.6944 MB / 373.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00115/0.315, allocations: 0.9026 MB / 374.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002204/0.3152, allocations: 101.7 kB / 374.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004994/0.3157, allocations: 166.1 kB / 374.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.3163, allocations: 499.9 kB / 375.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004377/0.3168, allocations: 382.2 kB / 375.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002603/0.3194, allocations: 2.412 MB / 377.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3194, allocations: 3.562 kB / 377.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3194, allocations: 0 / 377.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.396e-05/0.3195, allocations: 1.156 kB / 377.9 MB, free: 9.684 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.003361/0.3228, allocations: 1.825 MB / 379.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3229, allocations: 9.719 kB / 379.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005978/0.3235, allocations: 215.8 kB / 380 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.3252, allocations: 1.073 MB / 381 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.3253, allocations: 116.8 kB / 381.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/0.3256, allocations: 154 kB / 381.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003315/0.3289, allocations: 1.947 MB / 383.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.367e-05/0.3289, allocations: 6.031 kB / 383.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.3291, allocations: 62.36 kB / 383.3 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.351e-05/0.3292, allocations: 77.66 kB / 383.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0025/0.3317, allocations: 1.575 MB / 385 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008612/0.3403, allocations: 6.361 MB / 391.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.3416, allocations: 0.8327 MB / 392.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008716/0.3425, allocations: 0.5749 MB / 392.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000205/0.3427, allocations: 114.2 kB / 392.8 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3427, allocations: 47.25 kB / 392.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.867e-06/0.3427, allocations: 3.984 kB / 392.9 MB, free: 3.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01296/0.3557, allocations: 5.904 MB / 398.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.3558, allocations: 62.97 kB / 398.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.3574, allocations: 1.141 MB / 400 MB, free: 15.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.479e-05/0.3575, allocations: 44.11 kB / 400 MB, free: 15.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006029/0.3581, allocations: 0.7762 MB / 400.8 MB, free: 15.17 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000305/0.3584, allocations: 295.8 kB / 401.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.3586, allocations: 26 kB / 401.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.3588, allocations: 346.3 kB / 401.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.3598, allocations: 0.545 MB / 402 MB, free: 14.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.3608, allocations: 0.8826 MB / 402.9 MB, free: 13.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009442/0.3618, allocations: 0.6743 MB / 403.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3618, allocations: 4 kB / 403.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003742/0.3655, allocations: 2.043 MB / 405.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.3656, allocations: 8 kB / 405.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.3656, allocations: 12.94 kB / 405.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.367, allocations: 0.5527 MB / 406.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008336/0.3679, allocations: 244.3 kB / 406.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008118/0.376, allocations: 7.886 MB / 414.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.3772, allocations: 75.88 kB / 414.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.836e-05/0.3773, allocations: 55.94 kB / 414.4 MB, free: 1.254 MB / 318.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 (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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001047/0.3784, allocations: 0.5224 MB / 415 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002371/0.3786, allocations: 122.6 kB / 415.1 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003134/0.3818, allocations: 1.767 MB / 416.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.3818, allocations: 11.95 kB / 416.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.3818, allocations: 4 kB / 416.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.3818, allocations: 7.984 kB / 416.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006544/0.3884, allocations: 3.739 MB / 420.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3884, allocations: 0 / 420.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.3889, allocations: 127.8 kB / 420.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.3904, allocations: 0.5953 MB / 421.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.3905, allocations: 23.98 kB / 421.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00766/0.3982, allocations: 7.061 MB / 428.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.622e-06/0.3982, allocations: 4 kB / 428.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003957/0.4022, allocations: 2.478 MB / 430.9 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007632/0.403, allocations: 311.6 kB / 431.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003221/0.4033, allocations: 23.98 kB / 431.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007365/0.4041, allocations: 55.94 kB / 431.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.4042, allocations: 76.45 kB / 431.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.629e-05/0.4043, allocations: 20 kB / 431.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001335/0.4056, allocations: 0.7817 MB / 432.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4056, allocations: 0 / 432.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001567/0.4072, allocations: 387.9 kB / 432.5 MB, free: 14.6 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 (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,69.4%) 14,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002968/0.4075, allocations: 140 kB / 432.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003237/0.4108, allocations: 2.129 MB / 434.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4108, allocations: 1.875 kB / 434.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002105/0.4129, allocations: 1.291 MB / 436.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.4149, allocations: 353.5 kB / 436.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006742/0.4216, allocations: 3.906 MB / 440.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001458/0.4231, allocations: 1.46 MB / 441.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009481/0.4241, allocations: 267 kB / 442.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.4244, allocations: 79.44 kB / 442.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4244, allocations: 0 / 442.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of Templates: time 0.03967/0.464, allocations: 20.06 MB / 462.2 MB, free: 0.9297 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)