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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 121.9 kB / 17.84 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 206.1 kB / 18.79 MB, free: 4.273 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.387/1.387, allocations: 230.4 MB / 250 MB, free: 9.004 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.001853/0.001853, allocations: 59.84 kB / 366.9 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2447, allocations: 53.31 MB / 420.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01354/0.2582, allocations: 11 MB / 431.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007176/0.2654, allocations: 3.68 MB / 434.9 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.2669, allocations: 67.69 kB / 434.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.2691, allocations: 0.8881 MB / 435.8 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002947/0.2721, allocations: 0.9009 MB / 436.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.2732, allocations: 471.2 kB / 437.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003897/0.2771, allocations: 2.953 MB / 440.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.2799, allocations: 1.985 MB / 442.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002135/0.282, allocations: 1.386 MB / 443.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002844/0.2848, allocations: 1.798 MB / 445.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007966/0.2856, allocations: 372 kB / 445.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.2868, allocations: 487.8 kB / 446.1 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.288, allocations: 1.091 MB / 447.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002286/0.2903, allocations: 1.672 MB / 448.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006119/0.2964, allocations: 4.912 MB / 453.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2964, allocations: 0 / 453.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2964, allocations: 0 / 453.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001241/0.2965, allocations: 4 kB / 453.8 MB, free: 6.461 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007509/0.304, allocations: 3.473 MB / 457.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3041, allocations: 12.03 kB / 457.3 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005818/0.3047, allocations: 366.9 kB / 457.7 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009719/0.3056, allocations: 370.8 kB / 458 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003517/0.3091, allocations: 1.836 MB / 459.9 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.3093, allocations: 189.2 kB / 460 MB, free: 100 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004579/0.3098, allocations: 252 kB / 460.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006158/0.3159, allocations: 3.283 MB / 463.6 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-05/0.316, allocations: 7.953 kB / 463.6 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.3163, allocations: 100 kB / 463.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.3164, allocations: 124.9 kB / 463.8 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005227/0.3216, allocations: 2.748 MB / 466.5 MB, free: 9.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01823/0.3399, allocations: 10.41 MB / 477 MB, free: 14.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002088/0.3419, allocations: 1.306 MB / 478.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.3432, allocations: 0.7032 MB / 479 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003345/0.3435, allocations: 215.2 kB / 479.2 MB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.3436, allocations: 43.56 kB / 479.2 MB, free: 12.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.865e-06/0.3436, allocations: 0 / 479.2 MB, free: 12.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01595/0.3595, allocations: 6.931 MB / 486.2 MB, free: 5.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/0.3596, allocations: 64.41 kB / 486.2 MB, free: 5.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/0.3625, allocations: 1.794 MB / 488 MB, free: 3.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001527/0.3627, allocations: 45.7 kB / 488.1 MB, free: 3.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.3637, allocations: 1.306 MB / 489.4 MB, free: 2.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004405/0.3642, allocations: 452.1 kB / 489.8 MB, free: 1.621 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000489/0.3647, allocations: 295.5 kB / 490.1 MB, free: 1.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.3648, allocations: 309.1 kB / 490.4 MB, free: 1.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.3661, allocations: 0.773 MB / 491.2 MB, free: 252 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.3678, allocations: 1.292 MB / 492.5 MB, free: 14.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003154/0.371, allocations: 2.218 MB / 494.7 MB, free: 12.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.371, allocations: 4 kB / 494.7 MB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004481/0.3754, allocations: 2.483 MB / 497.2 MB, free: 9.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.3755, allocations: 12 kB / 497.2 MB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.3755, allocations: 16.53 kB / 497.2 MB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006475/0.3761, allocations: 243.2 kB / 497.4 MB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/0.3776, allocations: 423.2 kB / 497.8 MB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003179/0.3808, allocations: 3.238 MB / 0.4893 GB, free: 5.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.3823, allocations: 131.8 kB / 0.4895 GB, free: 5.422 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.3825, allocations: 75.92 kB / 0.4895 GB, free: 5.348 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001527/0.384, allocations: 0.8212 MB / 0.4903 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004375/0.3845, allocations: 190.8 kB / 0.4905 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003764/0.3882, allocations: 2.035 MB / 0.4925 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.829e-05/0.3883, allocations: 16.14 kB / 0.4925 GB, free: 2.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.3883, allocations: 3.984 kB / 0.4925 GB, free: 2.254 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.3883, allocations: 7.922 kB / 0.4925 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008947/0.3972, allocations: 4.741 MB / 0.4972 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.3972, allocations: 4 kB / 0.4972 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.3983, allocations: 267.6 kB / 0.4974 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005587/0.3989, allocations: 207.5 kB / 0.4976 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/0.399, allocations: 24 kB / 0.4976 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003175/0.4022, allocations: 3.215 MB / 0.5008 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.4022, allocations: 4 kB / 0.5008 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005297/0.4075, allocations: 3.14 MB / 0.5039 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4085, allocations: 435.7 kB / 0.5043 GB, free: 5.758 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.4088, allocations: 27.94 kB / 0.5043 GB, free: 5.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009408/0.4097, allocations: 91.94 kB / 0.5044 GB, free: 5.641 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.4099, allocations: 80.83 kB / 0.5045 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.036e-05/0.41, allocations: 39.92 kB / 0.5045 GB, free: 5.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002133/0.4121, allocations: 1.224 MB / 0.5057 GB, free: 4.309 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4121, allocations: 0 / 0.5057 GB, free: 4.309 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001705/0.4138, allocations: 495.9 kB / 0.5062 GB, free: 3.824 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,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.005663/0.4195, allocations: 3.777 MB / 0.5099 GB, free: 15.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004062/0.4236, allocations: 2.267 MB / 0.5121 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4236, allocations: 4 kB / 0.5121 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.4256, allocations: 1.27 MB / 0.5133 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.4281, allocations: 0.4912 MB / 0.5138 GB, free: 11.82 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03278/0.4608, allocations: 18.82 MB / 0.5322 GB, free: 8.254 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002033/0.4629, allocations: 2.014 MB / 0.5341 GB, free: 6.203 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001497/0.4644, allocations: 0.4921 MB / 0.5346 GB, free: 5.707 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001461/0.4658, allocations: 1.015 MB / 0.5356 GB, free: 4.691 MB / 462.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4658, allocations: 0 / 0.5356 GB, free: 4.691 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2895/0.7553, allocations: 46.64 MB / 0.5812 GB, free: 87.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.75, allocations: 15.52 kB / 0.5812 GB, free: 87.64 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --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_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)