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.IMC_withLosses.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.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001451/0.00145, 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.001528/0.001528, allocations: 210.4 kB / 18.58 MB, free: 4.578 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.486/1.486, allocations: 227.7 MB / 247 MB, free: 10.36 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.001926/0.001927, allocations: 66.11 kB / 307.3 MB, free: 400 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.121, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01294/0.134, allocations: 9.702 MB / 367.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008497/0.1426, allocations: 3.759 MB / 371.3 MB, free: 316 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002179/0.1449, allocations: 51.75 kB / 371.4 MB, free: 264 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2333/0.3782, allocations: 0.6616 MB / 372 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005582/0.3839, allocations: 0.8688 MB / 372.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.3859, allocations: 473.9 kB / 373.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006478/0.3924, allocations: 2.649 MB / 376 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00311/0.3956, allocations: 1.885 MB / 377.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00358/0.3992, allocations: 1.192 MB / 379.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.4025, allocations: 1.557 MB / 380.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006982/0.4033, allocations: 304.5 kB / 381 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.4048, allocations: 0.5447 MB / 381.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00099/0.4058, allocations: 0.9874 MB / 382.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.408, allocations: 1.494 MB / 384 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005354/0.4134, allocations: 4.251 MB / 388.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.4134, allocations: 0 / 388.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4135, allocations: 0.7812 kB / 388.2 MB, free: 5.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000123/0.4136, allocations: 4 kB / 388.2 MB, free: 5.652 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.008333/0.4219, allocations: 3.18 MB / 391.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.422, allocations: 8.656 kB / 391.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006027/0.4226, allocations: 349.9 kB / 391.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.4239, allocations: 359.7 kB / 392.1 MB, free: 3.012 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003648/0.4276, allocations: 1.69 MB / 393.8 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.4278, allocations: 162.3 kB / 394 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004379/0.4282, allocations: 208.4 kB / 394.2 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006041/0.4343, allocations: 2.728 MB / 396.9 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.481e-05/0.4344, allocations: 12.92 kB / 396.9 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001993/0.4346, allocations: 80.31 kB / 397 MB, free: 0 / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002316/0.4348, allocations: 100 kB / 397.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005196/0.44, allocations: 2.303 MB / 399.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01757/0.4576, allocations: 8.299 MB / 407.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003821/0.4615, allocations: 1.627 MB / 409.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.464, allocations: 1.089 MB / 410.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003471/0.4643, allocations: 128.9 kB / 410.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.416e-05/0.4644, allocations: 47.5 kB / 410.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 5.28e-06/0.4644, allocations: 0 / 410.6 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.016/0.4804, allocations: 6.467 MB / 417 MB, free: 13.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.4805, allocations: 64.72 kB / 417.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003824/0.4844, allocations: 2.181 MB / 419.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001905/0.4846, allocations: 45.7 kB / 419.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.4857, allocations: 1.134 MB / 420.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005/0.4862, allocations: 457.6 kB / 420.9 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000482/0.4867, allocations: 239.5 kB / 421.2 MB, free: 8.996 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.4869, allocations: 357.9 kB / 421.5 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.4884, allocations: 0.7688 MB / 422.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.4901, allocations: 1.006 MB / 423.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.4934, allocations: 1.863 MB / 425.1 MB, free: 4.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4934, allocations: 4 kB / 425.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005722/0.4992, allocations: 2.757 MB / 427.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.4992, allocations: 12.19 kB / 427.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.015e-05/0.4992, allocations: 12 kB / 427.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.5015, allocations: 0.7886 MB / 428.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.5027, allocations: 267.6 kB / 429 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/0.5173, allocations: 9.595 MB / 438.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.5192, allocations: 95.83 kB / 438.7 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.5195, allocations: 51.98 kB / 438.7 MB, free: 6.973 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001733/0.5212, allocations: 0.7479 MB / 439.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006229/0.5218, allocations: 201.5 kB / 439.7 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005115/0.527, allocations: 2.499 MB / 442.2 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/0.527, allocations: 23.98 kB / 442.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.527, allocations: 4 kB / 442.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.5271, allocations: 3.984 kB / 442.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01025/0.5373, allocations: 4.972 MB / 447.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.5374, allocations: 0 / 447.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.5384, allocations: 211.7 kB / 447.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/0.5405, allocations: 0.6542 MB / 448 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.5406, allocations: 35.97 kB / 448.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01256/0.5532, allocations: 8.731 MB / 456.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.5532, allocations: 4.031 kB / 456.8 MB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007576/0.5608, allocations: 3.537 MB / 460.3 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/0.5622, allocations: 438.5 kB / 460.8 MB, free: 360 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002863/0.5625, allocations: 31.98 kB / 460.8 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5636, allocations: 90.8 kB / 460.9 MB, free: 240 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00032/0.564, allocations: 100.8 kB / 461 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001081/0.5641, allocations: 43.98 kB / 461 MB, free: 92 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002818/0.5669, allocations: 1.532 MB / 462.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5669, allocations: 0 / 462.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002931/0.5699, allocations: 0.5234 MB / 463.1 MB, free: 14.01 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01057/0.5805, allocations: 4.464 MB / 467.5 MB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006779/0.5873, allocations: 2.865 MB / 470.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.5873, allocations: 0 / 470.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003052/0.5904, allocations: 1.593 MB / 472 MB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003114/0.5935, allocations: 459.1 kB / 472.4 MB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04544/0.639, allocations: 23.75 MB / 496.2 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002971/0.642, allocations: 1.971 MB / 498.2 MB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001625/0.6437, allocations: 395.8 kB / 498.6 MB, free: 8.957 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001749/0.6454, allocations: 0.9835 MB / 499.5 MB, free: 7.973 MB / 414.1 MB Notification: Performance of SimCode: time 1.313e-06/0.6454, allocations: 4 kB / 499.5 MB, free: 7.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3294/0.9749, allocations: 50.43 MB / 0.5371 GB, free: 150.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.73, allocations: 4.219 kB / 0.5371 GB, free: 150.4 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)