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.001741/0.001741, allocations: 118.2 kB / 17.79 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.002264/0.002264, allocations: 206 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.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.002283/0.002283, allocations: 67.89 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2681, allocations: 50.54 MB / 409.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.04561/0.3138, allocations: 38.94 MB / 448 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02588/0.3397, allocations: 10.32 MB / 458.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01017/0.3499, allocations: 295.1 kB / 458.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02649/0.3765, allocations: 10.19 MB / 468.8 MB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02158/0.3981, allocations: 4.035 MB / 472.9 MB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0121/0.4102, allocations: 2.417 MB / 475.3 MB, free: 15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02696/0.4372, allocations: 16.52 MB / 491.8 MB, free: 14.42 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05253/0.4898, allocations: 31.21 MB / 0.5108 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01582/0.5056, allocations: 8.47 MB / 0.519 GB, free: 6.457 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01826/0.5239, allocations: 9.5 MB / 0.5283 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00747/0.5314, allocations: 2.418 MB / 0.5307 GB, free: 10.5 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009812/0.5413, allocations: 2.828 MB / 0.5334 GB, free: 7.676 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008574/0.5499, allocations: 4.812 MB / 0.5381 GB, free: 2.852 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.5208/1.071, allocations: 9.201 MB / 0.5471 GB, free: 48.14 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0369/1.108, allocations: 32.24 MB / 0.5786 GB, free: 40.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/1.108, allocations: 0 / 0.5786 GB, free: 40.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.894e-06/1.108, allocations: 5.531 kB / 0.5786 GB, free: 40.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009393/1.109, allocations: 0 / 0.5786 GB, free: 40.41 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.06064/1.169, allocations: 19.07 MB / 0.5972 GB, free: 28.48 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/1.169, allocations: 10.44 kB / 0.5972 GB, free: 28.48 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009116/1.179, allocations: 2.289 MB / 0.5995 GB, free: 27.02 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04596/1.225, allocations: 8.278 MB / 0.6076 GB, free: 22.88 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02036/1.245, allocations: 10.29 MB / 0.6176 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008753/1.246, allocations: 1.061 MB / 0.6186 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006468/1.252, allocations: 1.399 MB / 0.62 GB, free: 10.6 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06883/1.321, allocations: 22.8 MB / 0.6423 GB, free: 3.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009223/1.322, allocations: 23.89 kB / 0.6423 GB, free: 3.727 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006909/1.329, allocations: 0.5752 MB / 0.6429 GB, free: 3.164 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001142/1.33, allocations: 0.7754 MB / 0.6436 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05686/1.387, allocations: 21.07 MB / 0.6642 GB, free: 13.31 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1586/1.546, allocations: 72.85 MB / 0.7353 GB, free: 4.051 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2773/1.823, allocations: 42.75 MB / 0.7771 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009261/1.832, allocations: 5.209 MB / 0.7822 GB, free: 175.2 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02358/1.856, allocations: 13.04 MB / 0.7949 GB, free: 172.9 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.559e-05/1.856, allocations: 96.17 kB / 0.795 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=498): time 8.296e-06/1.856, allocations: 0 / 0.795 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=506): time 0.05919/1.915, allocations: 26.68 MB / 0.821 GB, free: 161.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/1.916, allocations: 135.1 kB / 0.8212 GB, free: 161.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01269/1.928, allocations: 5.786 MB / 0.8268 GB, free: 159 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001233/1.93, allocations: 109 kB / 0.8269 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004047/1.934, allocations: 6.381 MB / 0.8332 GB, free: 153.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002442/1.936, allocations: 1.813 MB / 0.8349 GB, free: 151.9 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004776/1.941, allocations: 1.488 MB / 0.8364 GB, free: 150.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.184e-05/1.941, allocations: 301.1 kB / 0.8367 GB, free: 150.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006199/1.947, allocations: 3.635 MB / 0.8402 GB, free: 147.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007424/1.955, allocations: 6.482 MB / 0.8465 GB, free: 140.1 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01297/1.968, allocations: 10.79 MB / 0.8571 GB, free: 128.9 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.812e-05/1.968, allocations: 31.7 kB / 0.8571 GB, free: 128.8 MB / 0.5763 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02265/1.99, allocations: 12.15 MB / 0.869 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/1.991, allocations: 48 kB / 0.869 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001748/1.991, allocations: 92 kB / 0.8691 GB, free: 116.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004527/1.995, allocations: 1.593 MB / 0.8707 GB, free: 115 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006477/2.002, allocations: 1.673 MB / 0.8723 GB, free: 113.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02062/2.022, allocations: 19.64 MB / 0.8915 GB, free: 93 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00708/2.03, allocations: 423.6 kB / 0.8919 GB, free: 92.58 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002032/2.032, allocations: 371.9 kB / 0.8922 GB, free: 92.22 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.01212/2.044, allocations: 5.196 MB / 0.8973 GB, free: 87.01 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001999/2.046, allocations: 0.6249 MB / 0.8979 GB, free: 86.38 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01685/2.063, allocations: 9.373 MB / 0.9071 GB, free: 76.91 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008807/2.072, allocations: 5.897 MB / 0.9128 GB, free: 70.98 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.441e-05/2.072, allocations: 20 kB / 0.9128 GB, free: 70.96 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.349e-05/2.072, allocations: 23.91 kB / 0.9129 GB, free: 70.94 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04319/2.115, allocations: 21.09 MB / 0.9335 GB, free: 49.76 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-05/2.115, allocations: 12.12 kB / 0.9335 GB, free: 49.75 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003943/2.119, allocations: 0.866 MB / 0.9343 GB, free: 48.88 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004723/2.124, allocations: 1.629 MB / 0.9359 GB, free: 47.23 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001046/2.125, allocations: 132 kB / 0.936 GB, free: 47.11 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02165/2.146, allocations: 23.2 MB / 0.9587 GB, free: 22.95 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/2.146, allocations: 8 kB / 0.9587 GB, free: 22.94 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02153/2.168, allocations: 13.79 MB / 0.9722 GB, free: 8.797 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003749/2.172, allocations: 1.391 MB / 0.9735 GB, free: 7.383 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002377/2.174, allocations: 112.2 kB / 0.9736 GB, free: 7.273 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004637/2.179, allocations: 283.7 kB / 0.9739 GB, free: 6.996 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001504/2.18, allocations: 416.3 kB / 0.9743 GB, free: 6.59 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007762/2.181, allocations: 167.9 kB / 0.9745 GB, free: 6.426 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007836/2.189, allocations: 3.9 MB / 0.9783 GB, free: 2.555 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.1e-07/2.189, allocations: 0 / 0.9783 GB, free: 2.555 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01034/2.199, allocations: 2.344 MB / 0.9806 GB, free: 216 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.3085/2.508, allocations: 14.57 MB / 0.9948 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01552/2.523, allocations: 9.915 MB / 1.004 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/2.524, allocations: 0 / 1.004 GB, free: 182.9 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.009434/2.533, allocations: 5.468 MB / 1.01 GB, free: 180.3 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01264/2.546, allocations: 1.634 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.1702/2.716, allocations: 80.26 MB / 1.09 GB, free: 114.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01916/2.735, allocations: 8.856 MB / 1.098 GB, free: 105.5 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.009083/2.744, allocations: 2.531 MB / 1.101 GB, free: 102.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01097/2.755, allocations: 5.202 MB / 1.106 GB, free: 97.73 MB / 0.5763 GB Notification: Performance of SimCode: time 7.91e-07/2.755, allocations: 4 kB / 1.106 GB, free: 97.72 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.538/3.293, allocations: 186.6 MB / 1.288 GB, free: 136 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.94/28.23, allocations: 11.98 kB / 1.288 GB, free: 136 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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)