Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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.001169/0.001169, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001197, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 55.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2642, allocations: 50.55 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02523/0.2895, allocations: 24.88 MB / 433.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01612/0.3056, allocations: 8.062 MB / 441.8 MB, free: 436 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005814/0.3115, allocations: 179.5 kB / 441.9 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01918/0.3307, allocations: 8.372 MB / 450.3 MB, free: 7.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.341, allocations: 3.011 MB / 453.3 MB, free: 4.836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005521/0.3466, allocations: 1.833 MB / 455.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01544/0.362, allocations: 11.21 MB / 466.4 MB, free: 7.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02826/0.3903, allocations: 23.32 MB / 489.7 MB, free: 284 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007958/0.3983, allocations: 5.93 MB / 495.6 MB, free: 10.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00974/0.4081, allocations: 6.483 MB / 0.4903 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00383/0.412, allocations: 1.715 MB / 0.492 GB, free: 2.113 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006259/0.4182, allocations: 2.144 MB / 0.4941 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004314/0.4226, allocations: 3.398 MB / 0.4974 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01394/0.4365, allocations: 6.358 MB / 0.5036 GB, free: 6.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02423/0.4608, allocations: 23.14 MB / 0.5262 GB, free: 14.97 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.197e-06/0.4609, allocations: 0 / 0.5262 GB, free: 14.97 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4609, allocations: 0 / 0.5262 GB, free: 14.97 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008139/0.4617, allocations: 0 / 0.5262 GB, free: 14.97 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04315/0.5049, allocations: 13.41 MB / 0.5393 GB, free: 1.465 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.5049, allocations: 12.03 kB / 0.5393 GB, free: 1.453 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.3971/0.9021, allocations: 1.606 MB / 0.5409 GB, free: 110.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0354/0.9375, allocations: 6.29 MB / 0.547 GB, free: 110.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01486/0.9524, allocations: 7.263 MB / 0.5541 GB, free: 105.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005276/0.953, allocations: 0.7184 MB / 0.5548 GB, free: 105.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003578/0.9565, allocations: 0.9476 MB / 0.5558 GB, free: 104.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03167/0.9882, allocations: 16.17 MB / 0.5715 GB, free: 90.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002403/0.9885, allocations: 15.84 kB / 0.5716 GB, free: 90.79 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001645/0.9902, allocations: 399.6 kB / 0.5719 GB, free: 90.41 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003706/0.9905, allocations: 0.567 MB / 0.5725 GB, free: 89.84 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02417/1.015, allocations: 15.12 MB / 0.5873 GB, free: 74.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07213/1.087, allocations: 52.56 MB / 0.6386 GB, free: 21.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01503/1.102, allocations: 20.08 MB / 0.6582 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00604/1.108, allocations: 3.646 MB / 0.6618 GB, free: 11.56 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004716/1.109, allocations: 262.1 kB / 0.662 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.716e-05/1.109, allocations: 82 kB / 0.6621 GB, free: 11.18 MB / 478.1 MB Notification: Performance of pre-optimization done (n=447): time 6.142e-06/1.109, allocations: 0 / 0.6621 GB, free: 11.18 MB / 478.1 MB Notification: Performance of matching and sorting (n=452): time 0.05075/1.159, allocations: 20.64 MB / 0.6822 GB, free: 6.418 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.758e-05/1.16, allocations: 94.95 kB / 0.6823 GB, free: 6.312 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/1.167, allocations: 4.505 MB / 0.6867 GB, free: 1.785 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006272/1.168, allocations: 101.6 kB / 0.6868 GB, free: 1.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002635/1.17, allocations: 4.213 MB / 0.6909 GB, free: 13.41 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001717/1.172, allocations: 1.533 MB / 0.6924 GB, free: 11.86 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001835/1.174, allocations: 1.196 MB / 0.6936 GB, free: 10.65 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.832e-05/1.174, allocations: 301.1 kB / 0.6939 GB, free: 10.36 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004558/1.179, allocations: 3.061 MB / 0.6969 GB, free: 7.289 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005791/1.184, allocations: 5.215 MB / 0.702 GB, free: 1.102 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.196, allocations: 8.879 MB / 0.7107 GB, free: 7.25 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.438e-05/1.196, allocations: 20 kB / 0.7107 GB, free: 7.23 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01842/1.214, allocations: 9.858 MB / 0.7203 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.384e-05/1.215, allocations: 34.81 kB / 0.7203 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/1.215, allocations: 72 kB / 0.7204 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004126/1.219, allocations: 1.411 MB / 0.7218 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005209/1.224, allocations: 1.384 MB / 0.7231 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/1.243, allocations: 12.66 MB / 0.7355 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005337/1.249, allocations: 351.5 kB / 0.7358 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/1.25, allocations: 296 kB / 0.7361 GB, free: 12.87 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008893/1.259, allocations: 3.884 MB / 0.7399 GB, free: 8.973 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001994/1.261, allocations: 458.3 kB / 0.7403 GB, free: 8.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3504/1.612, allocations: 8.505 MB / 0.7486 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01258/1.624, allocations: 6.253 MB / 0.7547 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.42e-05/1.624, allocations: 12.62 kB / 0.7548 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.045e-05/1.624, allocations: 23.62 kB / 0.7548 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03201/1.656, allocations: 17.43 MB / 0.7718 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.111e-05/1.656, allocations: 7.938 kB / 0.7718 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003452/1.66, allocations: 0.8004 MB / 0.7726 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003732/1.664, allocations: 1.288 MB / 0.7739 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008378/1.664, allocations: 106.2 kB / 0.774 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/1.678, allocations: 11.55 MB / 0.7852 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.794e-06/1.678, allocations: 14.97 kB / 0.7852 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/1.695, allocations: 11.2 MB / 0.7962 GB, free: 161.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003247/1.699, allocations: 1.089 MB / 0.7972 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000876/1.699, allocations: 86 kB / 0.7973 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002345/1.702, allocations: 237.7 kB / 0.7976 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006345/1.702, allocations: 331.8 kB / 0.7979 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.703, allocations: 136 kB / 0.798 GB, free: 159.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004102/1.707, allocations: 3.115 MB / 0.801 GB, free: 156.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/1.707, allocations: 0 / 0.801 GB, free: 156.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006065/1.713, allocations: 1.724 MB / 0.8027 GB, free: 155.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0158/1.729, allocations: 12.2 MB / 0.8146 GB, free: 143.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01114/1.74, allocations: 7.988 MB / 0.8224 GB, free: 135.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.129e-05/1.74, allocations: 4 kB / 0.8224 GB, free: 135.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005984/1.746, allocations: 3.937 MB / 0.8263 GB, free: 131.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/1.751, allocations: 1.056 MB / 0.8273 GB, free: 130.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08325/1.834, allocations: 60.63 MB / 0.8865 GB, free: 67.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00556/1.84, allocations: 6.521 MB / 0.8929 GB, free: 60.45 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004674/1.844, allocations: 2.115 MB / 0.895 GB, free: 58.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004065/1.849, allocations: 3.561 MB / 0.8984 GB, free: 54.77 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/1.849, allocations: 0 / 0.8984 GB, free: 54.77 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4357/2.284, allocations: 139.7 MB / 1.035 GB, free: 119.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/24.42, allocations: 4.812 kB / 1.035 GB, free: 119.2 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1)