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.IMS_Characteristics.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.IMS_Characteristics,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001999/0.001999, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0021/0.0021, allocations: 197.2 kB / 18.73 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.447/1.447, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.002175/0.002175, allocations: 59.91 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2609, allocations: 50.55 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.0308/0.2918, allocations: 27.01 MB / 436.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.3086, allocations: 8.149 MB / 444.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004865/0.3135, allocations: 203.4 kB / 444.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02148/0.335, allocations: 9.374 MB / 453.8 MB, free: 4.445 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.3466, allocations: 3.302 MB / 457.1 MB, free: 1.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006338/0.3529, allocations: 1.831 MB / 459 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01787/0.3708, allocations: 12.23 MB / 471.2 MB, free: 3.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0379/0.4088, allocations: 24.4 MB / 495.6 MB, free: 10.45 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01069/0.4195, allocations: 6.448 MB / 0.4903 GB, free: 3.984 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01204/0.4316, allocations: 7.219 MB / 0.4973 GB, free: 12.74 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005013/0.4366, allocations: 1.84 MB / 0.4991 GB, free: 10.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006878/0.4435, allocations: 2.222 MB / 0.5013 GB, free: 8.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005818/0.4494, allocations: 3.609 MB / 0.5048 GB, free: 5.062 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01195/0.4614, allocations: 6.919 MB / 0.5116 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03033/0.4917, allocations: 24.81 MB / 0.5358 GB, free: 5.223 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4918, allocations: 0 / 0.5358 GB, free: 5.223 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4918, allocations: 0 / 0.5358 GB, free: 5.223 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005928/0.4924, allocations: 0 / 0.5358 GB, free: 5.223 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.4222/0.9146, allocations: 14.77 MB / 0.5502 GB, free: 107.9 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.9147, allocations: 7.906 kB / 0.5502 GB, free: 107.9 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005706/0.9204, allocations: 1.786 MB / 0.552 GB, free: 106.8 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04443/0.9649, allocations: 8.436 MB / 0.5602 GB, free: 101 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01702/0.9819, allocations: 7.689 MB / 0.5677 GB, free: 93.75 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007232/0.9827, allocations: 0.8023 MB / 0.5685 GB, free: 92.96 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005091/0.9878, allocations: 1.059 MB / 0.5695 GB, free: 91.92 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04183/1.03, allocations: 18.34 MB / 0.5875 GB, free: 73.57 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005677/1.03, allocations: 27.83 kB / 0.5875 GB, free: 73.54 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004224/1.035, allocations: 451.2 kB / 0.5879 GB, free: 73.11 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006697/1.035, allocations: 0.6672 MB / 0.5886 GB, free: 72.45 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03247/1.068, allocations: 17.58 MB / 0.6057 GB, free: 54.85 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09203/1.16, allocations: 59.38 MB / 0.6637 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03851/1.198, allocations: 37.51 MB / 0.7003 GB, free: 0.9805 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00815/1.207, allocations: 4.113 MB / 0.7044 GB, free: 12.85 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008104/1.207, allocations: 306.1 kB / 0.7047 GB, free: 12.51 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/1.208, allocations: 98.55 kB / 0.7048 GB, free: 12.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=518): time 1.385e-05/1.208, allocations: 0 / 0.7048 GB, free: 12.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=524): time 0.05802/1.266, allocations: 21.64 MB / 0.7259 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.49e-05/1.266, allocations: 103.5 kB / 0.726 GB, free: 6.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008985/1.275, allocations: 4.187 MB / 0.7301 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00093/1.276, allocations: 113.7 kB / 0.7302 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003838/1.28, allocations: 4.668 MB / 0.7347 GB, free: 13.46 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002529/1.282, allocations: 1.863 MB / 0.7366 GB, free: 11.58 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004047/1.286, allocations: 1.375 MB / 0.7379 GB, free: 10.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.286, allocations: 301.1 kB / 0.7382 GB, free: 9.898 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006553/1.293, allocations: 3.449 MB / 0.7416 GB, free: 6.445 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2672/1.56, allocations: 5.88 MB / 0.7473 GB, free: 182.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01381/1.574, allocations: 10.04 MB / 0.7571 GB, free: 177.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.574, allocations: 23.28 kB / 0.7571 GB, free: 177.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01871/1.593, allocations: 11 MB / 0.7679 GB, free: 173.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.921e-05/1.593, allocations: 39.34 kB / 0.7679 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/1.593, allocations: 74.66 kB / 0.768 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003647/1.597, allocations: 1.449 MB / 0.7694 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005617/1.602, allocations: 1.618 MB / 0.771 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01497/1.617, allocations: 11.49 MB / 0.7822 GB, free: 166.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005196/1.623, allocations: 412.3 kB / 0.7826 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001239/1.624, allocations: 342.7 kB / 0.7829 GB, free: 166.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007326/1.631, allocations: 4.16 MB / 0.787 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001279/1.633, allocations: 498.5 kB / 0.7875 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01409/1.647, allocations: 8.481 MB / 0.7957 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01105/1.658, allocations: 7.108 MB / 0.8027 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/1.658, allocations: 12 kB / 0.8027 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.082e-05/1.658, allocations: 27.47 kB / 0.8027 GB, free: 150.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02948/1.687, allocations: 18.82 MB / 0.8211 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.688, allocations: 14.05 kB / 0.8211 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003512/1.691, allocations: 0.9438 MB / 0.822 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003351/1.694, allocations: 1.293 MB / 0.8233 GB, free: 129.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007274/1.695, allocations: 124 kB / 0.8234 GB, free: 129.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/1.707, allocations: 10.18 MB / 0.8333 GB, free: 119.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/1.707, allocations: 4 kB / 0.8334 GB, free: 119.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01787/1.725, allocations: 12.34 MB / 0.8454 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002914/1.728, allocations: 1.183 MB / 0.8466 GB, free: 105.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/1.729, allocations: 96 kB / 0.8466 GB, free: 105.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002998/1.732, allocations: 271.8 kB / 0.8469 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008816/1.733, allocations: 355.7 kB / 0.8472 GB, free: 104.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003741/1.734, allocations: 156 kB / 0.8474 GB, free: 104.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004048/1.738, allocations: 2.819 MB / 0.8501 GB, free: 101.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/1.738, allocations: 0 / 0.8501 GB, free: 101.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00722/1.745, allocations: 1.937 MB / 0.852 GB, free: 99.72 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (imsQS.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01857/1.764, allocations: 13.08 MB / 0.8648 GB, free: 86.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01553/1.779, allocations: 8.762 MB / 0.8734 GB, free: 77.62 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/1.779, allocations: 0 / 0.8734 GB, free: 77.62 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008133/1.787, allocations: 4.22 MB / 0.8775 GB, free: 73.38 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007901/1.795, allocations: 1.131 MB / 0.8786 GB, free: 72.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09977/1.895, allocations: 64.03 MB / 0.9411 GB, free: 5.309 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0108/1.906, allocations: 7.014 MB / 0.948 GB, free: 14.25 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006613/1.913, allocations: 2.313 MB / 0.9502 GB, free: 11.93 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.229/2.142, allocations: 3.898 MB / 0.954 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.223e-06/2.142, allocations: 0 / 0.954 GB, free: 192.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.191/2.333, allocations: 147.8 MB / 1.098 GB, free: 68.43 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.22/24.55, allocations: 9.203 kB / 1.098 GB, free: 68.42 MB / 0.5607 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1)