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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 87.16 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 180.4 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 6.344 kB / 300.8 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1249, allocations: 50.43 MB / 351.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007787/0.1327, allocations: 7.206 MB / 358.5 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005066/0.1378, allocations: 2.545 MB / 361 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001118/0.139, allocations: 39.75 kB / 361 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001422/0.1404, allocations: 0.4894 MB / 361.5 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.142, allocations: 0.5438 MB / 362.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005244/0.1425, allocations: 175.7 kB / 362.3 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002128/0.1447, allocations: 2.105 MB / 364.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.1459, allocations: 0.9519 MB / 365.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.147, allocations: 0.6809 MB / 366 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.148, allocations: 0.8989 MB / 366.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001663/0.1482, allocations: 104 kB / 367 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004138/0.1486, allocations: 167.9 kB / 367.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004933/0.1491, allocations: 0.4906 MB / 367.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003829/0.1495, allocations: 376.8 kB / 368 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.1516, allocations: 2.404 MB / 370.4 MB, free: 8.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.1516, allocations: 3.984 kB / 370.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1516, allocations: 0 / 370.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.546e-05/0.1516, allocations: 0 / 370.4 MB, free: 8.438 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.00323/0.1549, allocations: 1.829 MB / 372.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1549, allocations: 8.031 kB / 372.3 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005981/0.1555, allocations: 221.6 kB / 372.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/0.1573, allocations: 1.067 MB / 373.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.529e-05/0.1574, allocations: 107 kB / 373.6 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.1576, allocations: 155.9 kB / 373.8 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003273/0.1609, allocations: 1.951 MB / 375.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.124e-05/0.1609, allocations: 7.906 kB / 375.8 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.1611, allocations: 63.98 kB / 375.8 MB, free: 2.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-05/0.1612, allocations: 82.84 kB / 375.9 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002419/0.1636, allocations: 1.573 MB / 377.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009156/0.1728, allocations: 6.354 MB / 383.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.1741, allocations: 0.839 MB / 384.7 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009088/0.175, allocations: 0.5808 MB / 385.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000238/0.1753, allocations: 113.6 kB / 385.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.1753, allocations: 43.12 kB / 385.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=65): time 2.735e-06/0.1753, allocations: 0 / 385.4 MB, free: 9.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=85): time 0.01257/0.1879, allocations: 5.886 MB / 391.3 MB, free: 3.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.188, allocations: 64.41 kB / 391.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.1898, allocations: 1.133 MB / 392.5 MB, free: 1.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.775e-05/0.1898, allocations: 41.7 kB / 392.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000662/0.1905, allocations: 0.7708 MB / 393.3 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000302/0.1908, allocations: 311.6 kB / 393.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.138e-05/0.1909, allocations: 20 kB / 393.6 MB, free: 0.625 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.1911, allocations: 357.9 kB / 394 MB, free: 276 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/0.1919, allocations: 0.5375 MB / 394.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.1929, allocations: 0.8718 MB / 395.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009667/0.1939, allocations: 0.69 MB / 396.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.1939, allocations: 8 kB / 396.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003279/0.1972, allocations: 2.031 MB / 398.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.1973, allocations: 12 kB / 398.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.1973, allocations: 12.25 kB / 398.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.1986, allocations: 0.5514 MB / 398.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008006/0.1994, allocations: 239.6 kB / 398.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007499/0.2069, allocations: 7.889 MB / 406.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.2079, allocations: 71.92 kB / 406.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.537e-05/0.208, allocations: 48 kB / 406.9 MB, free: 2.59 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 (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.0009943/0.209, allocations: 0.5208 MB / 407.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002438/0.2093, allocations: 122.6 kB / 407.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002992/0.2123, allocations: 1.763 MB / 409.3 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.2123, allocations: 8 kB / 409.3 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.2123, allocations: 8 kB / 409.3 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2123, allocations: 3.984 kB / 409.3 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005818/0.2182, allocations: 3.734 MB / 413.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.2182, allocations: 4.094 kB / 413.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.2187, allocations: 131.7 kB / 413.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.2201, allocations: 0.5966 MB / 413.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.2202, allocations: 24.09 kB / 413.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007154/0.2274, allocations: 7.074 MB / 420.9 MB, free: 4.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.2274, allocations: 3.984 kB / 420.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0038/0.2312, allocations: 2.471 MB / 423.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007248/0.232, allocations: 307.6 kB / 423.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/0.2321, allocations: 27.98 kB / 423.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005632/0.2327, allocations: 55.94 kB / 423.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.2329, allocations: 68.5 kB / 423.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.2329, allocations: 31.98 kB / 423.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001173/0.2341, allocations: 0.7698 MB / 424.6 MB, free: 272 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2341, allocations: 0 / 424.6 MB, free: 272 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.2828/0.5169, allocations: 377.7 kB / 425 MB, free: 63.27 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.0004998/0.5174, allocations: 144.1 kB / 425.1 MB, free: 63.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003231/0.5207, allocations: 2.127 MB / 427.3 MB, free: 62.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.5207, allocations: 2.406 kB / 427.3 MB, free: 62.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.5226, allocations: 1.29 MB / 428.6 MB, free: 62.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.5246, allocations: 348.4 kB / 428.9 MB, free: 62.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00616/0.5308, allocations: 3.902 MB / 432.8 MB, free: 60.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/0.5322, allocations: 1.46 MB / 434.3 MB, free: 59.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00116/0.5334, allocations: 260.1 kB / 434.5 MB, free: 59.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002593/0.5336, allocations: 85.28 kB / 434.6 MB, free: 59.55 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5336, allocations: 0 / 434.6 MB, free: 59.55 MB / 350.1 MB Notification: Performance of Templates: time 0.0467/0.5803, allocations: 19.97 MB / 454.6 MB, free: 48.14 MB / 350.1 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)