Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001453/0.001453, allocations: 208.6 kB / 18.74 MB, free: 4.328 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.382/1.382, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002098/0.002098, allocations: 63.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.247, allocations: 50.54 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01114/0.2582, allocations: 9.117 MB / 418.2 MB, free: 8.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006133/0.2644, allocations: 3.17 MB / 421.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001665/0.2662, allocations: 47.75 kB / 421.4 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.2684, allocations: 0.6784 MB / 422.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002816/0.2712, allocations: 0.7144 MB / 422.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2723, allocations: 311.5 kB / 423.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003258/0.2756, allocations: 2.152 MB / 425.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002134/0.2777, allocations: 1.425 MB / 426.7 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001752/0.2795, allocations: 0.9265 MB / 427.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.2815, allocations: 1.14 MB / 428.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004507/0.282, allocations: 232 kB / 429 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007895/0.2828, allocations: 327.8 kB / 429.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007625/0.2836, allocations: 0.674 MB / 430 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.2849, allocations: 1.1 MB / 431.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004051/0.289, allocations: 3.149 MB / 434.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.289, allocations: 0 / 434.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.289, allocations: 4 kB / 434.2 MB, free: 8.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.9e-05/0.2891, allocations: 0 / 434.2 MB, free: 8.062 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 404 * Number of variables: 404 Notification: Performance of Generate backend data structure: time 0.004778/0.2939, allocations: 2.357 MB / 436.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.294, allocations: 12.03 kB / 436.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003126/0.2943, allocations: 232.4 kB / 436.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006765/0.295, allocations: 247.5 kB / 437.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002088/0.2971, allocations: 1.244 MB / 438.3 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.273e-05/0.2972, allocations: 115.2 kB / 438.4 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002355/0.2974, allocations: 152 kB / 438.6 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003349/0.3008, allocations: 2.037 MB / 440.6 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.993e-05/0.3008, allocations: 7.953 kB / 440.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.301, allocations: 64 kB / 440.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.787e-05/0.3011, allocations: 74.94 kB / 440.7 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00292/0.304, allocations: 1.678 MB / 442.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/0.3141, allocations: 7.063 MB / 449.5 MB, free: 8.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009205/0.3151, allocations: 472.5 kB / 449.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004581/0.3155, allocations: 278 kB / 450.2 MB, free: 7.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002265/0.3158, allocations: 121.5 kB / 450.3 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.3158, allocations: 35.47 kB / 450.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.735e-06/0.3158, allocations: 7.938 kB / 450.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007074/0.3229, allocations: 3.052 MB / 453.4 MB, free: 4.219 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.323, allocations: 55.97 kB / 453.5 MB, free: 4.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/0.3254, allocations: 1.636 MB / 455.1 MB, free: 2.508 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.458e-05/0.3255, allocations: 37.7 kB / 455.2 MB, free: 2.465 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008309/0.3264, allocations: 1.068 MB / 456.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.3266, allocations: 238.1 kB / 456.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004406/0.327, allocations: 323.3 kB / 456.8 MB, free: 0.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3272, allocations: 305.1 kB / 457.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009123/0.3281, allocations: 0.5231 MB / 457.6 MB, free: 8 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.3298, allocations: 1.458 MB / 459.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00271/0.3325, allocations: 2.134 MB / 461.2 MB, free: 11.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.413e-05/0.3325, allocations: 12 kB / 461.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003831/0.3364, allocations: 2.173 MB / 463.4 MB, free: 9.289 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/0.3364, allocations: 20 kB / 463.4 MB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.42e-05/0.3365, allocations: 32 kB / 463.4 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000602/0.3371, allocations: 226.4 kB / 463.6 MB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.3383, allocations: 399.4 kB / 464 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.3401, allocations: 1.851 MB / 465.9 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001482/0.3416, allocations: 151.5 kB / 466 MB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/0.3418, allocations: 95.98 kB / 466.1 MB, free: 6.383 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001013/0.3428, allocations: 0.5983 MB / 466.7 MB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003327/0.3432, allocations: 159 kB / 466.9 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002155/0.3453, allocations: 1.094 MB / 468 MB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.3454, allocations: 4 kB / 468 MB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3454, allocations: 4 kB / 468 MB, free: 4.492 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3454, allocations: 3.984 kB / 468 MB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.3503, allocations: 2.748 MB / 470.7 MB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.3503, allocations: 7.984 kB / 470.7 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000505/0.3508, allocations: 115.9 kB / 470.9 MB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004827/0.3513, allocations: 170.5 kB / 471 MB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.662e-05/0.3514, allocations: 12 kB / 471 MB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.3532, allocations: 1.789 MB / 472.8 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.3533, allocations: 7.969 kB / 472.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.3562, allocations: 1.64 MB / 474.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007719/0.357, allocations: 304 kB / 474.8 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.3572, allocations: 20 kB / 474.8 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006702/0.3579, allocations: 59.86 kB / 474.8 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.358, allocations: 48.5 kB / 474.9 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/0.3581, allocations: 20 kB / 474.9 MB, free: 13.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001717/0.3598, allocations: 1.079 MB / 476 MB, free: 12.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3598, allocations: 0 / 476 MB, free: 12.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001722/0.3616, allocations: 360 kB / 476.3 MB, free: 11.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (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 (60): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003478/0.3651, allocations: 2.252 MB / 478.6 MB, free: 9.535 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002942/0.368, allocations: 1.622 MB / 480.2 MB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3681, allocations: 0 / 480.2 MB, free: 7.863 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/0.3693, allocations: 0.7636 MB / 481 MB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.3713, allocations: 410.4 kB / 481.4 MB, free: 6.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02281/0.3942, allocations: 14.99 MB / 496.4 MB, free: 6.543 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001172/0.3954, allocations: 1.461 MB / 497.8 MB, free: 5.047 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00105/0.3964, allocations: 358 kB / 498.2 MB, free: 4.691 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009606/0.3974, allocations: 0.636 MB / 498.8 MB, free: 4.059 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3974, allocations: 0 / 498.8 MB, free: 4.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08123/0.4787, allocations: 35.54 MB / 0.5218 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.64, allocations: 2.969 kB / 0.5218 GB, free: 0.9453 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.32 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1)