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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_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/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 176.8 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008989/0.0008989, allocations: 92.31 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.952e-05/1.953e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1047, allocations: 50.42 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4501, allocations: 100.7 MB / 488.2 MB, free: 9.938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.4504, allocations: 83.95 kB / 488.3 MB, free: 9.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09407/0.5444, allocations: 34.64 MB / 0.5107 GB, free: 6.996 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.5445, allocations: 4 kB / 0.5107 GB, free: 6.992 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.767e-05/0.5446, allocations: 43.88 kB / 0.5108 GB, free: 6.949 MB / 394.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.002893/0.5475, allocations: 1.645 MB / 0.5124 GB, free: 5.254 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.5476, allocations: 12.03 kB / 0.5124 GB, free: 5.242 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006603/0.5482, allocations: 217.7 kB / 0.5126 GB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.5503, allocations: 1.187 MB / 0.5137 GB, free: 3.797 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.5504, allocations: 52 kB / 0.5138 GB, free: 3.746 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.5506, allocations: 91.91 kB / 0.5139 GB, free: 3.656 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002374/0.553, allocations: 1.4 MB / 0.5152 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002793/0.5558, allocations: 1.691 MB / 0.5169 GB, free: 492 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.473e-05/0.5559, allocations: 11.98 kB / 0.5169 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.556, allocations: 4 kB / 0.5169 GB, free: 476 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.811e-05/0.5561, allocations: 70.92 kB / 0.517 GB, free: 404 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009023/0.5651, allocations: 6.004 MB / 0.5228 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.5664, allocations: 0.8281 MB / 0.5236 GB, free: 9.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009041/0.5673, allocations: 0.5606 MB / 0.5242 GB, free: 8.777 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003285/0.5677, allocations: 129.6 kB / 0.5243 GB, free: 8.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/0.5677, allocations: 43.12 kB / 0.5244 GB, free: 8.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=70): time 2.685e-06/0.5678, allocations: 0 / 0.5244 GB, free: 8.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.008412/0.5762, allocations: 4.153 MB / 0.5284 GB, free: 4.359 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.5763, allocations: 60.19 kB / 0.5285 GB, free: 4.285 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.5775, allocations: 0.7841 MB / 0.5292 GB, free: 3.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-05/0.5776, allocations: 25.7 kB / 0.5293 GB, free: 3.449 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005452/0.5782, allocations: 0.7784 MB / 0.53 GB, free: 2.656 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002576/0.5784, allocations: 331.1 kB / 0.5303 GB, free: 2.328 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.5785, allocations: 0 / 0.5303 GB, free: 2.328 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5787, allocations: 349.9 kB / 0.5307 GB, free: 1.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007405/0.5794, allocations: 0.5453 MB / 0.5312 GB, free: 1.434 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.5804, allocations: 0.8735 MB / 0.5321 GB, free: 428 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009776/0.5814, allocations: 0.6933 MB / 0.5327 GB, free: 15.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.5814, allocations: 4 kB / 0.5327 GB, free: 15.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003415/0.5849, allocations: 1.992 MB / 0.5347 GB, free: 13.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.5849, allocations: 13.19 kB / 0.5347 GB, free: 13.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.5849, allocations: 12 kB / 0.5347 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.5864, allocations: 0.5634 MB / 0.5353 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/0.5874, allocations: 271.6 kB / 0.5355 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008129/0.5955, allocations: 7.757 MB / 0.5431 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.5968, allocations: 47.92 kB / 0.5431 GB, free: 4.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.5969, allocations: 51.94 kB / 0.5432 GB, free: 4.516 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 125 * 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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002796/0.5972, allocations: 140.6 kB / 0.5433 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003156/0.6003, allocations: 1.751 MB / 0.545 GB, free: 2.598 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.6005, allocations: 114.5 kB / 0.5451 GB, free: 2.484 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003345/0.6039, allocations: 1.854 MB / 0.547 GB, free: 0.6055 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.6039, allocations: 8 kB / 0.547 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.6039, allocations: 8 kB / 0.547 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.6039, allocations: 3.984 kB / 0.547 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.268/0.872, allocations: 3.714 MB / 0.5506 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.872, allocations: 2.469 kB / 0.5506 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.8726, allocations: 113 kB / 0.5507 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.8744, allocations: 0.7232 MB / 0.5514 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-05/0.8745, allocations: 12.38 kB / 0.5514 GB, free: 114.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009121/0.8836, allocations: 8.09 MB / 0.5593 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.8837, allocations: 6.938 kB / 0.5593 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004312/0.888, allocations: 2.748 MB / 0.562 GB, free: 110.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.8886, allocations: 301.7 kB / 0.5623 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.8888, allocations: 8.406 kB / 0.5623 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/0.8894, allocations: 44.7 kB / 0.5624 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.8896, allocations: 85.31 kB / 0.5624 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/0.8897, allocations: 30.02 kB / 0.5625 GB, free: 110.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00106/0.8908, allocations: 0.5836 MB / 0.563 GB, free: 110.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8908, allocations: 0 / 0.563 GB, free: 110.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001698/0.8925, allocations: 366.5 kB / 0.5634 GB, free: 110.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * 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 {(7,63.3%) 22,(1,100.0%) 1,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00469/0.8972, allocations: 4.098 MB / 0.5674 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003513/0.9007, allocations: 2.127 MB / 0.5695 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.9007, allocations: 1.312 kB / 0.5695 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00239/0.9031, allocations: 1.363 MB / 0.5708 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.9049, allocations: 260.9 kB / 0.571 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00583/0.9107, allocations: 3.053 MB / 0.574 GB, free: 106.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008986/0.9117, allocations: 1.517 MB / 0.5755 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007809/0.9125, allocations: 239.5 kB / 0.5757 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005813/0.913, allocations: 0.565 MB / 0.5763 GB, free: 105.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.593e-06/0.9131, allocations: 0 / 0.5763 GB, free: 105.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05734/0.9704, allocations: 30.45 MB / 0.606 GB, free: 97.98 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/0.9706, allocations: 165.6 kB / 0.6062 GB, free: 97.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.763/3.733, allocations: 3.281 kB / 0.6062 GB, free: 97.79 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)