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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_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/ModelicaServices trunk/package.mo): time 0.000883/0.0008831, allocations: 96.86 kB / 17 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009953/0.0009955, allocations: 196.4 kB / 17.9 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002359, allocations: 4 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1147, allocations: 51.51 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008172/0.123, allocations: 7.249 MB / 365.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004994/0.128, allocations: 2.58 MB / 368.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.1291, allocations: 39.81 kB / 368.2 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001413/0.1305, allocations: 0.4933 MB / 368.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001616/0.1322, allocations: 0.5437 MB / 369.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005607/0.1327, allocations: 183.7 kB / 369.4 MB, free: 2.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002589/0.1353, allocations: 2.105 MB / 371.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1729/0.3082, allocations: 0.9476 MB / 372.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.3103, allocations: 0.6922 MB / 373.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.3122, allocations: 0.9032 MB / 374.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000432/0.3127, allocations: 102.4 kB / 374.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007632/0.3134, allocations: 167.9 kB / 374.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009072/0.3144, allocations: 0.4896 MB / 374.8 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007598/0.3151, allocations: 378.2 kB / 375.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003936/0.3191, allocations: 2.412 MB / 377.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3191, allocations: 0 / 377.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3191, allocations: 1.375 kB / 377.6 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.304e-05/0.3192, allocations: 0 / 377.6 MB, free: 9.766 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.005092/0.3243, allocations: 1.825 MB / 379.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.3244, allocations: 8.5 kB / 379.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006154/0.325, allocations: 228.9 kB / 379.6 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009308/0.3259, allocations: 219.4 kB / 379.9 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002997/0.329, allocations: 1.075 MB / 380.9 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/0.3291, allocations: 110.8 kB / 381 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003853/0.3295, allocations: 156.9 kB / 381.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00387/0.3334, allocations: 1.942 MB / 383.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.823e-05/0.3335, allocations: 14 kB / 383.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/0.3336, allocations: 60.8 kB / 383.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.3337, allocations: 77.94 kB / 383.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002677/0.3364, allocations: 1.576 MB / 384.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00895/0.3454, allocations: 6.37 MB / 391.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3467, allocations: 0.8262 MB / 392.1 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008823/0.3476, allocations: 0.5756 MB / 392.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002018/0.3478, allocations: 122.2 kB / 392.8 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3478, allocations: 41.77 kB / 392.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.705e-06/0.3478, allocations: 1.344 kB / 392.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01163/0.3595, allocations: 5.897 MB / 398.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.3595, allocations: 61.69 kB / 398.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.361, allocations: 1.141 MB / 399.9 MB, free: 15.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-05/0.3611, allocations: 43 kB / 399.9 MB, free: 15.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005541/0.3616, allocations: 0.7749 MB / 400.7 MB, free: 15.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.3619, allocations: 301.9 kB / 401 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.065e-05/0.3619, allocations: 22.12 kB / 401 MB, free: 14.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3621, allocations: 353.2 kB / 401.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007225/0.3628, allocations: 0.5373 MB / 401.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009924/0.3638, allocations: 0.8796 MB / 402.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009648/0.3648, allocations: 0.6844 MB / 403.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.3648, allocations: 4 kB / 403.5 MB, free: 12.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003226/0.368, allocations: 2.031 MB / 405.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.3681, allocations: 13.19 kB / 405.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3681, allocations: 12 kB / 405.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.3694, allocations: 0.5518 MB / 406.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007842/0.3702, allocations: 241.2 kB / 406.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007719/0.3779, allocations: 7.902 MB / 414.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.379, allocations: 71.83 kB / 414.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.562e-05/0.3791, allocations: 50.41 kB / 414.3 MB, free: 1.48 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.001136/0.3803, allocations: 0.5238 MB / 414.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.3805, allocations: 122.5 kB / 415 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003036/0.3836, allocations: 1.767 MB / 416.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3836, allocations: 8 kB / 416.8 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.3836, allocations: 11.98 kB / 416.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.3836, allocations: 3.984 kB / 416.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006267/0.3899, allocations: 3.734 MB / 420.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.3899, allocations: 4 kB / 420.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.3904, allocations: 123.8 kB / 420.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.3919, allocations: 0.5949 MB / 421.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.425e-05/0.392, allocations: 27.98 kB / 421.3 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00767/0.3997, allocations: 7.072 MB / 428.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3997, allocations: 0 / 428.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003785/0.4035, allocations: 2.475 MB / 430.8 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.4042, allocations: 315.5 kB / 431.1 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.4043, allocations: 20 kB / 431.1 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005938/0.4049, allocations: 55.94 kB / 431.2 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.4051, allocations: 72.55 kB / 431.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-05/0.4052, allocations: 24 kB / 431.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001275/0.4065, allocations: 0.7816 MB / 432.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4065, allocations: 0 / 432.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00153/0.408, allocations: 379.9 kB / 432.4 MB, free: 14.81 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.004091/0.4121, allocations: 3.066 MB / 435.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003377/0.4155, allocations: 2.127 MB / 437.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.702e-06/0.4155, allocations: 4 kB / 437.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002152/0.4177, allocations: 1.298 MB / 438.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/0.4201, allocations: 356.1 kB / 439.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02154/0.4417, allocations: 10.22 MB / 449.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001725/0.4434, allocations: 1.464 MB / 451 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.4446, allocations: 259.1 kB / 451.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009766/0.4456, allocations: 0.5657 MB / 451.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4456, allocations: 0 / 451.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05631/0.5019, allocations: 32.59 MB / 484.4 MB, free: 10.6 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.5022, allocations: 227.9 kB / 484.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.67/3.172, allocations: 2.344 kB / 484.6 MB, free: 10.36 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)