Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.494/1.494, allocations: 227.7 MB / 247.1 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001996, allocations: 68.77 kB / 307.3 MB, free: 388 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1246, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start): time 0.01535/0.14, allocations: 11.85 MB / 369.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1997/0.3397, allocations: 3.825 MB / 373.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002463/0.3423, allocations: 72.12 kB / 373.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002148/0.3444, allocations: 0.8716 MB / 374.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004529/0.349, allocations: 1.086 MB / 375.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.3505, allocations: 0.4907 MB / 376.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006263/0.3568, allocations: 4.218 MB / 380.3 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004141/0.361, allocations: 3.304 MB / 383.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006087/0.3671, allocations: 1.908 MB / 385.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006097/0.3732, allocations: 2.34 MB / 387.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002376/0.3756, allocations: 0.4978 MB / 388.3 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003261/0.3789, allocations: 0.5963 MB / 388.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001768/0.3807, allocations: 1.391 MB / 390.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006426/0.3871, allocations: 2.21 MB / 392.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009978/0.3972, allocations: 6.51 MB / 399.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3972, allocations: 0 / 399.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3972, allocations: 4 kB / 399.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002087/0.3974, allocations: 0 / 399.1 MB, free: 14.68 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01363/0.4111, allocations: 4.314 MB / 403.4 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.651e-05/0.4112, allocations: 8.031 kB / 403.4 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001136/0.4123, allocations: 445.5 kB / 403.8 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001776/0.4141, allocations: 472 kB / 404.3 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005203/0.4193, allocations: 2.34 MB / 406.6 MB, free: 8.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.4196, allocations: 234.1 kB / 406.8 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008174/0.4204, allocations: 307.3 kB / 407.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009583/0.43, allocations: 4.372 MB / 411.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.188e-05/0.4301, allocations: 11.94 kB / 411.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003445/0.4305, allocations: 126 kB / 411.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001738/0.4306, allocations: 134 kB / 411.8 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00772/0.4384, allocations: 3.771 MB / 415.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02779/0.4662, allocations: 13.53 MB / 429.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004398/0.4706, allocations: 2.914 MB / 432 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003163/0.4738, allocations: 1.679 MB / 433.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003238/0.4742, allocations: 126.4 kB / 433.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.837e-05/0.4743, allocations: 59.8 kB / 433.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=164): time 3.627e-06/0.4743, allocations: 7.938 kB / 433.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=180): time 0.02152/0.4958, allocations: 8.984 MB / 442.9 MB, free: 3.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/0.4959, allocations: 73.41 kB / 442.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005711/0.5016, allocations: 2.362 MB / 445.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004999/0.5022, allocations: 57.7 kB / 445.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001458/0.5036, allocations: 1.478 MB / 446.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000806/0.5045, allocations: 0.6151 MB / 447.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007069/0.5052, allocations: 363.3 kB / 447.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.5054, allocations: 309.1 kB / 448.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.5074, allocations: 1.124 MB / 449.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/0.5098, allocations: 1.568 MB / 450.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004266/0.514, allocations: 2.784 MB / 453.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.5141, allocations: 4 kB / 453.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.006731/0.5208, allocations: 3.596 MB / 457.2 MB, free: 4.559 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.5208, allocations: 8 kB / 457.2 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/0.5209, allocations: 12.5 kB / 457.2 MB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.523, allocations: 0.8064 MB / 458 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001926/0.5249, allocations: 459.3 kB / 458.4 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/0.5387, allocations: 11.18 MB / 469.6 MB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.5415, allocations: 131.8 kB / 469.8 MB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/0.5419, allocations: 72 kB / 469.8 MB, free: 7.191 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002787/0.5447, allocations: 1.091 MB / 470.9 MB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000741/0.5455, allocations: 249 kB / 471.2 MB, free: 5.844 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006569/0.5521, allocations: 3.305 MB / 474.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-05/0.5521, allocations: 16 kB / 474.5 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.737e-05/0.5521, allocations: 12.06 kB / 474.5 MB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.028e-05/0.5522, allocations: 7.969 kB / 474.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.5666, allocations: 6.897 MB / 481.4 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.5667, allocations: 0 / 481.4 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.568, allocations: 291.6 kB / 481.7 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/0.5706, allocations: 0.9316 MB / 482.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.5707, allocations: 39.98 kB / 482.6 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01665/0.5874, allocations: 14.62 MB / 497.3 MB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5874, allocations: 3.938 kB / 497.3 MB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008839/0.5963, allocations: 4.859 MB / 0.4904 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001669/0.598, allocations: 0.5682 MB / 0.4909 GB, free: 5.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003795/0.5984, allocations: 36 kB / 0.491 GB, free: 5.051 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/0.5997, allocations: 123.8 kB / 0.4911 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004494/0.6002, allocations: 157.7 kB / 0.4912 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.6003, allocations: 51.98 kB / 0.4913 GB, free: 4.727 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002623/0.603, allocations: 1.633 MB / 0.4929 GB, free: 3.078 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.537e-06/0.603, allocations: 0 / 0.4929 GB, free: 3.078 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002334/0.6053, allocations: 0.7109 MB / 0.4936 GB, free: 2.367 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008674/0.614, allocations: 5.515 MB / 0.4989 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009379/0.6234, allocations: 4.859 MB / 0.5037 GB, free: 7.809 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/0.6234, allocations: 0 / 0.5037 GB, free: 7.809 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004221/0.6277, allocations: 2.51 MB / 0.5061 GB, free: 5.191 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003931/0.6316, allocations: 0.7276 MB / 0.5069 GB, free: 4.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2571/0.8888, allocations: 29.97 MB / 0.5361 GB, free: 139.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003141/0.892, allocations: 2.524 MB / 0.5386 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002445/0.8944, allocations: 0.591 MB / 0.5392 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001678/0.8961, allocations: 1.263 MB / 0.5404 GB, free: 137.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.8961, allocations: 0 / 0.5404 GB, free: 137.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1381/1.034, allocations: 67.98 MB / 0.6068 GB, free: 84.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.87, allocations: 2.125 kB / 0.6068 GB, free: 84.34 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1)