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.001728/0.001728, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001933/0.001934, allocations: 205.2 kB / 18.74 MB, free: 4.312 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.462/1.462, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001921/0.001921, allocations: 67.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2869, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.04698/0.334, allocations: 38.92 MB / 448 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02376/0.3578, allocations: 10.32 MB / 458.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009639/0.3674, allocations: 295 kB / 458.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02668/0.3942, allocations: 10.19 MB / 468.8 MB, free: 5.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01692/0.4112, allocations: 4.053 MB / 472.9 MB, free: 1.363 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009146/0.4203, allocations: 2.417 MB / 475.3 MB, free: 14.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02673/0.4471, allocations: 16.52 MB / 491.8 MB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05918/0.5063, allocations: 31.2 MB / 0.5107 GB, free: 14.92 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01598/0.5223, allocations: 8.478 MB / 0.519 GB, free: 6.418 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01817/0.5406, allocations: 9.496 MB / 0.5283 GB, free: 12.89 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008537/0.5491, allocations: 2.418 MB / 0.5306 GB, free: 10.47 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.5611, allocations: 2.832 MB / 0.5334 GB, free: 7.637 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009742/0.5709, allocations: 4.809 MB / 0.5381 GB, free: 2.816 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4828/1.054, allocations: 9.207 MB / 0.5471 GB, free: 47.98 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03775/1.092, allocations: 32.24 MB / 0.5786 GB, free: 40.24 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/1.092, allocations: 0 / 0.5786 GB, free: 40.24 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.034e-06/1.092, allocations: 2.625 kB / 0.5786 GB, free: 40.24 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001114/1.093, allocations: 0 / 0.5786 GB, free: 40.24 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.06499/1.158, allocations: 19.07 MB / 0.5972 GB, free: 28.31 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/1.158, allocations: 11.53 kB / 0.5972 GB, free: 28.31 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01058/1.168, allocations: 2.29 MB / 0.5994 GB, free: 26.86 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04661/1.215, allocations: 8.413 MB / 0.6077 GB, free: 22.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02035/1.235, allocations: 10.27 MB / 0.6177 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009167/1.236, allocations: 1.061 MB / 0.6187 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007328/1.244, allocations: 1.394 MB / 0.6201 GB, free: 10.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06865/1.312, allocations: 22.75 MB / 0.6423 GB, free: 3.609 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006781/1.313, allocations: 23.89 kB / 0.6423 GB, free: 3.586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006806/1.32, allocations: 0.5775 MB / 0.6429 GB, free: 3.023 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001022/1.321, allocations: 0.7802 MB / 0.6437 GB, free: 2.242 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05625/1.377, allocations: 21.01 MB / 0.6642 GB, free: 13.22 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1538/1.531, allocations: 72.85 MB / 0.7353 GB, free: 3.961 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3124/1.843, allocations: 42.7 MB / 0.777 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009815/1.853, allocations: 5.196 MB / 0.7821 GB, free: 175.2 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0247/1.878, allocations: 12.98 MB / 0.7948 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.209e-05/1.878, allocations: 89.83 kB / 0.7949 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=498): time 7.134e-06/1.878, allocations: 0 / 0.7949 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=506): time 0.05696/1.935, allocations: 26.61 MB / 0.8208 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/1.935, allocations: 134.8 kB / 0.821 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009165/1.944, allocations: 5.791 MB / 0.8266 GB, free: 159 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/1.946, allocations: 109.2 kB / 0.8267 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003055/1.949, allocations: 6.371 MB / 0.833 GB, free: 153.4 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002788/1.951, allocations: 1.813 MB / 0.8347 GB, free: 151.8 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003037/1.954, allocations: 1.473 MB / 0.8362 GB, free: 150.4 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 6.746e-05/1.955, allocations: 305.1 kB / 0.8365 GB, free: 150.1 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004835/1.959, allocations: 3.628 MB / 0.84 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005991/1.965, allocations: 6.476 MB / 0.8463 GB, free: 140 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/1.977, allocations: 10.77 MB / 0.8568 GB, free: 128.8 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.866e-05/1.977, allocations: 24 kB / 0.8569 GB, free: 128.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.0183/1.996, allocations: 12.12 MB / 0.8687 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.721e-05/1.996, allocations: 47.94 kB / 0.8687 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/1.996, allocations: 103.9 kB / 0.8688 GB, free: 116.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003918/2, allocations: 1.59 MB / 0.8704 GB, free: 115 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/2.006, allocations: 1.665 MB / 0.872 GB, free: 113.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01912/2.025, allocations: 19.64 MB / 0.8912 GB, free: 93.02 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006706/2.032, allocations: 427.5 kB / 0.8916 GB, free: 92.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00154/2.033, allocations: 364 kB / 0.892 GB, free: 92.25 MB / 0.5763 GB 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.009792/2.043, allocations: 5.199 MB / 0.897 GB, free: 87.03 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/2.045, allocations: 0.6249 MB / 0.8976 GB, free: 86.4 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/2.059, allocations: 9.364 MB / 0.9068 GB, free: 76.94 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00808/2.067, allocations: 5.873 MB / 0.9125 GB, free: 71.03 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.203e-05/2.067, allocations: 20 kB / 0.9125 GB, free: 71.01 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.323e-05/2.067, allocations: 27.89 kB / 0.9126 GB, free: 70.98 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0374/2.105, allocations: 21.02 MB / 0.9331 GB, free: 49.88 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/2.105, allocations: 4.781 kB / 0.9331 GB, free: 49.87 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003515/2.108, allocations: 0.8698 MB / 0.934 GB, free: 49 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00422/2.113, allocations: 1.638 MB / 0.9356 GB, free: 47.34 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000557/2.113, allocations: 128 kB / 0.9357 GB, free: 47.22 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02082/2.134, allocations: 23.2 MB / 0.9583 GB, free: 23.07 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/2.134, allocations: 11.94 kB / 0.9583 GB, free: 23.05 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/2.153, allocations: 13.75 MB / 0.9718 GB, free: 8.953 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003481/2.156, allocations: 1.387 MB / 0.9731 GB, free: 7.543 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/2.157, allocations: 108 kB / 0.9732 GB, free: 7.438 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/2.16, allocations: 283.7 kB / 0.9735 GB, free: 7.16 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009424/2.161, allocations: 412.3 kB / 0.9739 GB, free: 6.758 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003326/2.161, allocations: 155.9 kB / 0.974 GB, free: 6.605 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005588/2.167, allocations: 3.912 MB / 0.9779 GB, free: 2.723 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.6e-07/2.167, allocations: 0 / 0.9779 GB, free: 2.723 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008595/2.176, allocations: 2.336 MB / 0.9801 GB, free: 396 kB / 0.5763 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.3339/2.51, allocations: 14.52 MB / 0.9943 GB, free: 184.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01675/2.526, allocations: 9.903 MB / 1.004 GB, free: 183 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-05/2.526, allocations: 0 / 1.004 GB, free: 183 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009164/2.536, allocations: 5.453 MB / 1.009 GB, free: 180.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01015/2.546, allocations: 1.649 MB / 1.011 GB, free: 179.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.143/2.689, allocations: 80.33 MB / 1.089 GB, free: 114.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01651/2.705, allocations: 8.852 MB / 1.098 GB, free: 105.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00812/2.714, allocations: 2.535 MB / 1.1 GB, free: 102.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01067/2.724, allocations: 5.178 MB / 1.106 GB, free: 97.68 MB / 0.5763 GB Notification: Performance of SimCode: time 2.405e-06/2.724, allocations: 0 / 1.106 GB, free: 97.68 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5436/3.268, allocations: 187.4 MB / 1.289 GB, free: 135.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.71/27.98, allocations: 8.875 kB / 1.289 GB, free: 135.4 MB / 0.5763 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)