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.001092/0.001092, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 58.59 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08212/0.08327, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009317/0.09262, allocations: 8.216 MB / 365.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004185/0.09683, allocations: 2.746 MB / 368.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004835/0.09733, allocations: 35.88 kB / 368.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001314/0.09868, allocations: 0.6174 MB / 369.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.09983, allocations: 0.6366 MB / 369.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004774/0.1003, allocations: 279.6 kB / 370.1 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1435/0.2438, allocations: 2.024 MB / 372.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001787/0.2457, allocations: 1.423 MB / 373.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001248/0.2469, allocations: 0.8886 MB / 374.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.248, allocations: 1.074 MB / 375.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002855/0.2483, allocations: 227.8 kB / 375.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005632/0.2489, allocations: 312.9 kB / 376.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007444/0.2497, allocations: 0.6368 MB / 376.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.2509, allocations: 1.029 MB / 377.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.2538, allocations: 2.971 MB / 380.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2538, allocations: 0 / 380.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2539, allocations: 0 / 380.7 MB, free: 9.191 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.238e-05/0.2539, allocations: 0 / 380.7 MB, free: 9.191 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.00392/0.2578, allocations: 2.134 MB / 382.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.2579, allocations: 10.95 kB / 382.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002825/0.2582, allocations: 225.8 kB / 383.1 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006027/0.2588, allocations: 216.6 kB / 383.3 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.2604, allocations: 1.105 MB / 384.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.776e-05/0.2605, allocations: 118.9 kB / 384.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.2608, allocations: 160.6 kB / 384.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002724/0.2635, allocations: 1.956 MB / 386.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.514e-05/0.2636, allocations: 9.578 kB / 386.6 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.2637, allocations: 61.12 kB / 386.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.184e-05/0.2638, allocations: 75.67 kB / 386.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002274/0.2661, allocations: 1.584 MB / 388.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007683/0.2738, allocations: 6.34 MB / 394.7 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.2751, allocations: 0.8334 MB / 395.5 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008937/0.276, allocations: 0.5782 MB / 396.1 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001965/0.2762, allocations: 125.1 kB / 396.2 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.2762, allocations: 38.75 kB / 396.2 MB, free: 252 kB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.376e-06/0.2762, allocations: 0 / 396.2 MB, free: 252 kB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01306/0.2893, allocations: 5.829 MB / 402.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.2894, allocations: 68.34 kB / 402.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.291, allocations: 1.149 MB / 403.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.2911, allocations: 48.27 kB / 403.3 MB, free: 11.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005377/0.2916, allocations: 0.77 MB / 404.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/0.2919, allocations: 311.1 kB / 404.4 MB, free: 10.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003212/0.2922, allocations: 202.8 kB / 404.6 MB, free: 9.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.2923, allocations: 353.9 kB / 404.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008009/0.2931, allocations: 0.5452 MB / 405.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009206/0.2941, allocations: 0.8815 MB / 406.4 MB, free: 7.945 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001921/0.296, allocations: 1.522 MB / 407.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.296, allocations: 4 kB / 407.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003313/0.2993, allocations: 2.048 MB / 409.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.2994, allocations: 8 kB / 410 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.2994, allocations: 12 kB / 410 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001384/0.3008, allocations: 0.5522 MB / 410.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008159/0.3016, allocations: 239.7 kB / 410.8 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008147/0.3098, allocations: 8.655 MB / 419.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009539/0.3107, allocations: 79.78 kB / 419.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.3108, allocations: 44.09 kB / 419.5 MB, free: 10.22 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 (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008147/0.3116, allocations: 0.5199 MB / 420 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.3118, allocations: 118.6 kB / 420.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003036/0.3149, allocations: 1.776 MB / 421.9 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3149, allocations: 8 kB / 421.9 MB, free: 7.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3149, allocations: 8.094 kB / 422 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3149, allocations: 7.922 kB / 422 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005964/0.3209, allocations: 3.753 MB / 425.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.3209, allocations: 7.938 kB / 425.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005387/0.3215, allocations: 126.2 kB / 425.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.3231, allocations: 0.593 MB / 426.4 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.772e-05/0.3231, allocations: 23.98 kB / 426.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00795/0.3311, allocations: 7.711 MB / 434.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3311, allocations: 4 kB / 434.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.3348, allocations: 2.476 MB / 436.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005401/0.3353, allocations: 315.5 kB / 437 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000223/0.3356, allocations: 24.19 kB / 437 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007023/0.3363, allocations: 59.94 kB / 437 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.3364, allocations: 60.56 kB / 437.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.103e-05/0.3365, allocations: 35.27 kB / 437.1 MB, free: 8.129 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.3376, allocations: 0.7895 MB / 437.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3377, allocations: 0 / 437.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001397/0.3391, allocations: 376 kB / 438.3 MB, free: 6.965 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004166/0.3432, allocations: 3.109 MB / 441.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00378/0.347, allocations: 2.356 MB / 443.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.347, allocations: 0 / 443.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.3491, allocations: 1.3 MB / 445.1 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.3508, allocations: 379.4 kB / 445.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02033/0.3711, allocations: 14.66 MB / 460.1 MB, free: 324 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/0.3724, allocations: 1.464 MB / 461.6 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008362/0.3732, allocations: 259.1 kB / 461.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007406/0.374, allocations: 0.5657 MB / 462.4 MB, free: 14 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.374, allocations: 0 / 462.4 MB, free: 14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7826/1.157, allocations: 34.52 MB / 496.9 MB, free: 11.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.58/10.74, allocations: 10.44 kB / 496.9 MB, free: 11.88 MB / 414.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/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)