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.00112/0.00112, allocations: 100.1 kB / 16.99 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.001211/0.001211, allocations: 208.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002264, allocations: 8 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1026, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007344/0.11, allocations: 6.627 MB / 364.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004348/0.1144, allocations: 2.651 MB / 367.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007324/0.1151, allocations: 31.88 kB / 367.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.1163, allocations: 0.5054 MB / 368 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001259/0.1176, allocations: 0.5569 MB / 368.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004484/0.1181, allocations: 167.8 kB / 368.7 MB, free: 3.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001688/0.1198, allocations: 1.353 MB / 370.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.1209, allocations: 0.9675 MB / 371.1 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007887/0.1217, allocations: 0.6383 MB / 371.7 MB, free: 188 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.203/0.3247, allocations: 0.7697 MB / 372.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004371/0.3252, allocations: 100.8 kB / 372.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007225/0.326, allocations: 165.7 kB / 372.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006132/0.3266, allocations: 476.9 kB / 373.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005202/0.3271, allocations: 374.8 kB / 373.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003374/0.3305, allocations: 2.39 MB / 376 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3305, allocations: 4.281 kB / 376 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3305, allocations: 0 / 376 MB, free: 10.19 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.536e-05/0.3306, allocations: 0.6562 kB / 376 MB, free: 10.19 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.004539/0.3351, allocations: 1.824 MB / 377.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.3352, allocations: 9.625 kB / 377.8 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004681/0.3357, allocations: 228.6 kB / 378 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007318/0.3364, allocations: 220.1 kB / 378.2 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002215/0.3386, allocations: 1.087 MB / 379.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.3388, allocations: 114.7 kB / 379.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.339, allocations: 157.2 kB / 379.6 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003588/0.3426, allocations: 1.936 MB / 381.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.039e-05/0.3427, allocations: 7.594 kB / 381.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001678/0.3429, allocations: 59.88 kB / 381.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.886e-05/0.343, allocations: 76.73 kB / 381.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002994/0.346, allocations: 1.571 MB / 383.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.3562, allocations: 6.346 MB / 389.6 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3576, allocations: 0.8306 MB / 390.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002174/0.3578, allocations: 117.2 kB / 390.5 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.3579, allocations: 38.41 kB / 390.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.055e-06/0.3579, allocations: 4.969 kB / 390.6 MB, free: 5.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01309/0.371, allocations: 5.917 MB / 396.5 MB, free: 1.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.371, allocations: 60.78 kB / 396.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.3726, allocations: 1.134 MB / 397.7 MB, free: 1.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.212e-05/0.3727, allocations: 45.08 kB / 397.7 MB, free: 1.215 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.3731, allocations: 0.7755 MB / 398.5 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.3732, allocations: 304.9 kB / 398.8 MB, free: 280 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-05/0.3733, allocations: 22.34 kB / 398.8 MB, free: 264 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3734, allocations: 352.2 kB / 399.2 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007053/0.3741, allocations: 0.5389 MB / 399.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009094/0.375, allocations: 0.8777 MB / 400.6 MB, free: 14.94 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009044/0.3759, allocations: 0.692 MB / 401.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.376, allocations: 2.938 kB / 401.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003271/0.3792, allocations: 2.044 MB / 403.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3793, allocations: 8 kB / 403.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.18e-05/0.3793, allocations: 15.98 kB / 403.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.3807, allocations: 0.5511 MB / 403.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008363/0.3816, allocations: 237.7 kB / 404.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008294/0.3899, allocations: 8.043 MB / 412.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.3913, allocations: 75.83 kB / 412.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/0.3914, allocations: 48 kB / 412.3 MB, free: 3.645 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.001229/0.3926, allocations: 0.5261 MB / 412.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.3929, allocations: 122.5 kB / 412.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003178/0.3961, allocations: 1.772 MB / 414.7 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.3961, allocations: 8 kB / 414.7 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3961, allocations: 4 kB / 414.7 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3961, allocations: 3.984 kB / 414.7 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006782/0.4029, allocations: 3.732 MB / 418.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4029, allocations: 0 / 418.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005527/0.4035, allocations: 134.8 kB / 418.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/0.4051, allocations: 0.595 MB / 419.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.393e-05/0.4052, allocations: 27.98 kB / 419.2 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008362/0.4135, allocations: 7.253 MB / 426.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.4136, allocations: 0 / 426.5 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004305/0.4179, allocations: 2.58 MB / 429 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009211/0.4188, allocations: 315.5 kB / 429.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.419, allocations: 20 kB / 429.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006511/0.4197, allocations: 55.94 kB / 429.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001842/0.4199, allocations: 85.42 kB / 429.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.837e-05/0.4199, allocations: 20 kB / 429.5 MB, free: 1.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001325/0.4213, allocations: 0.77 MB / 430.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4213, allocations: 0 / 430.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001598/0.4229, allocations: 380 kB / 430.7 MB, free: 0.7539 MB / 334.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.004593/0.4275, allocations: 3.648 MB / 434.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003681/0.4312, allocations: 2.13 MB / 436.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4312, allocations: 4.062 kB / 436.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/0.4334, allocations: 1.306 MB / 437.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.4355, allocations: 352.8 kB / 438.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/0.4595, allocations: 17.19 MB / 455.3 MB, free: 7.379 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/0.4608, allocations: 1.495 MB / 456.8 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009913/0.4618, allocations: 267 kB / 457 MB, free: 5.586 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/0.4626, allocations: 0.5734 MB / 457.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4626, allocations: 0 / 457.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06589/0.5285, allocations: 32.48 MB / 490.1 MB, free: 4.953 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.5288, allocations: 226.2 kB / 490.3 MB, free: 4.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.559/3.088, allocations: 4 kB / 490.3 MB, free: 4.707 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)