Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, 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.001353/0.001354, 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.444/1.444, 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.001914/0.001914, allocations: 68.91 kB / 307.4 MB, free: 376 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09718/0.09911, allocations: 50.54 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.2238/0.3229, allocations: 38.92 MB / 396.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02781/0.3508, allocations: 10.32 MB / 407.1 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01009/0.3609, allocations: 293.2 kB / 407.4 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02518/0.3862, allocations: 10.2 MB / 417.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01795/0.4041, allocations: 4.036 MB / 421.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009743/0.4139, allocations: 2.421 MB / 424.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02484/0.4387, allocations: 16.39 MB / 440.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05752/0.4963, allocations: 31.41 MB / 471.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01536/0.5117, allocations: 8.451 MB / 480.3 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01624/0.528, allocations: 9.527 MB / 489.9 MB, free: 7.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006615/0.5347, allocations: 2.422 MB / 492.3 MB, free: 4.918 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009963/0.5447, allocations: 2.851 MB / 495.1 MB, free: 2.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01067/0.5554, allocations: 4.809 MB / 499.9 MB, free: 13.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02194/0.5774, allocations: 9.214 MB / 0.4972 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04755/0.625, allocations: 31.97 MB / 0.5284 GB, free: 3.938 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.625, allocations: 3.938 kB / 0.5284 GB, free: 3.934 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6251, allocations: 7.938 kB / 0.5285 GB, free: 3.926 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009121/0.626, allocations: 4 kB / 0.5285 GB, free: 3.922 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.4666/1.093, allocations: 18.78 MB / 0.5468 GB, free: 125.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.093, allocations: 9.062 kB / 0.5468 GB, free: 125.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008661/1.101, allocations: 2.287 MB / 0.549 GB, free: 123.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04674/1.148, allocations: 8.294 MB / 0.5571 GB, free: 120 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01987/1.168, allocations: 9.952 MB / 0.5669 GB, free: 110.7 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009077/1.169, allocations: 1.063 MB / 0.5679 GB, free: 109.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005402/1.174, allocations: 1.402 MB / 0.5693 GB, free: 108.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0525/1.227, allocations: 22.76 MB / 0.5915 GB, free: 85.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007166/1.228, allocations: 23.73 kB / 0.5915 GB, free: 85.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004809/1.232, allocations: 0.5774 MB / 0.5921 GB, free: 84.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006848/1.233, allocations: 0.7755 MB / 0.5928 GB, free: 84.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0388/1.272, allocations: 21 MB / 0.6133 GB, free: 63.08 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.121/1.393, allocations: 73.58 MB / 0.6852 GB, free: 4.148 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3025/1.696, allocations: 42.7 MB / 0.7269 GB, free: 146.1 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01026/1.706, allocations: 5.233 MB / 0.732 GB, free: 146 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02502/1.731, allocations: 13.01 MB / 0.7447 GB, free: 140 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.191e-05/1.731, allocations: 84.77 kB / 0.7448 GB, free: 139.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 6.402e-06/1.731, allocations: 0 / 0.7448 GB, free: 139.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.0684/1.799, allocations: 26.3 MB / 0.7705 GB, free: 128.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/1.8, allocations: 133.6 kB / 0.7706 GB, free: 128.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01365/1.813, allocations: 5.785 MB / 0.7763 GB, free: 126.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001269/1.815, allocations: 105.7 kB / 0.7764 GB, free: 126 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00427/1.819, allocations: 6.174 MB / 0.7824 GB, free: 120.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002612/1.821, allocations: 1.727 MB / 0.7841 GB, free: 118.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003642/1.825, allocations: 1.461 MB / 0.7855 GB, free: 117 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.279e-05/1.825, allocations: 305.1 kB / 0.7858 GB, free: 116.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007279/1.833, allocations: 3.626 MB / 0.7893 GB, free: 113.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01038/1.843, allocations: 6.478 MB / 0.7957 GB, free: 105.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01758/1.861, allocations: 10.76 MB / 0.8062 GB, free: 93.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/1.861, allocations: 28 kB / 0.8062 GB, free: 93.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.0306/1.891, allocations: 12.09 MB / 0.818 GB, free: 81.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/1.892, allocations: 48.06 kB / 0.818 GB, free: 81 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002007/1.892, allocations: 96 kB / 0.8181 GB, free: 80.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006413/1.898, allocations: 1.597 MB / 0.8197 GB, free: 79.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007226/1.905, allocations: 1.665 MB / 0.8213 GB, free: 77.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02018/1.926, allocations: 19.64 MB / 0.8405 GB, free: 57.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007151/1.933, allocations: 427.2 kB / 0.8409 GB, free: 56.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002268/1.935, allocations: 368 kB / 0.8413 GB, free: 56.55 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[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 (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01226/1.947, allocations: 5.201 MB / 0.8463 GB, free: 51.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/1.949, allocations: 0.5942 MB / 0.8469 GB, free: 50.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/1.965, allocations: 9.379 MB / 0.8561 GB, free: 41.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009321/1.974, allocations: 5.864 MB / 0.8618 GB, free: 35.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.196e-05/1.974, allocations: 20 kB / 0.8618 GB, free: 35.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001302/1.974, allocations: 23.91 kB / 0.8618 GB, free: 35.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03966/2.014, allocations: 21.05 MB / 0.8824 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/2.014, allocations: 8 kB / 0.8824 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003776/2.018, allocations: 0.8581 MB / 0.8832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004523/2.022, allocations: 1.653 MB / 0.8849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00103/2.023, allocations: 124 kB / 0.885 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2704/2.294, allocations: 23.21 MB / 0.9076 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/2.294, allocations: 14.75 kB / 0.9077 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0243/2.318, allocations: 13.71 MB / 0.9211 GB, free: 153 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003932/2.322, allocations: 1.357 MB / 0.9224 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/2.324, allocations: 103.9 kB / 0.9225 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004107/2.328, allocations: 288 kB / 0.9227 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001331/2.329, allocations: 406.7 kB / 0.9231 GB, free: 152.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004611/2.33, allocations: 153.6 kB / 0.9233 GB, free: 152.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.00711/2.337, allocations: 3.902 MB / 0.9271 GB, free: 150.9 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.1e-07/2.337, allocations: 0 / 0.9271 GB, free: 150.9 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01108/2.348, allocations: 2.344 MB / 0.9294 GB, free: 150.7 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01988/2.368, allocations: 14.51 MB / 0.9436 GB, free: 144.1 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.03097/2.399, allocations: 15.86 MB / 0.959 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 2.383e-05/2.399, allocations: 0 / 0.959 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.009212/2.408, allocations: 5.451 MB / 0.9644 GB, free: 128.9 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/2.42, allocations: 1.643 MB / 0.966 GB, free: 127.6 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1361/2.556, allocations: 101.4 MB / 1.065 GB, free: 21.37 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01469/2.57, allocations: 8.864 MB / 1.074 GB, free: 12.46 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.009581/2.58, allocations: 2.531 MB / 1.076 GB, free: 9.926 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01121/2.591, allocations: 5.182 MB / 1.081 GB, free: 4.742 MB / 0.4982 GB Notification: Performance of SimCode: time 9.92e-07/2.591, allocations: 4 kB / 1.081 GB, free: 4.738 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5363/3.128, allocations: 189.8 MB / 1.266 GB, free: 35.89 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/17.53, allocations: 4.734 kB / 1.266 GB, free: 35.89 MB / 0.5138 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)