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.001324/0.001324, allocations: 122.8 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.001411/0.001411, allocations: 201.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.386/1.386, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002615/0.002615, allocations: 71.88 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2594, allocations: 50.56 MB / 409.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01403/0.2735, allocations: 10.94 MB / 420 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007418/0.281, allocations: 3.672 MB / 423.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00161/0.2827, allocations: 63.75 kB / 423.8 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002083/0.2847, allocations: 0.8217 MB / 424.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00286/0.2876, allocations: 0.8658 MB / 425.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.2887, allocations: 467.2 kB / 425.9 MB, free: 472 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004192/0.2929, allocations: 2.946 MB / 428.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003467/0.2964, allocations: 2.735 MB / 431.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00221/0.2986, allocations: 1.386 MB / 433 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.3012, allocations: 1.748 MB / 434.7 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006672/0.3019, allocations: 372 kB / 435.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009826/0.3028, allocations: 479.8 kB / 435.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.304, allocations: 1.079 MB / 436.6 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001964/0.3059, allocations: 1.672 MB / 438.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005654/0.3116, allocations: 4.908 MB / 443.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3116, allocations: 0 / 443.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3116, allocations: 0 / 443.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.601e-05/0.3118, allocations: 4 kB / 443.2 MB, free: 15.04 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.007721/0.3195, allocations: 3.473 MB / 446.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3195, allocations: 12.03 kB / 446.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005676/0.3201, allocations: 370.9 kB / 447.1 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.3212, allocations: 362.8 kB / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003333/0.3245, allocations: 1.84 MB / 449.3 MB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.3247, allocations: 193.1 kB / 449.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004437/0.3251, allocations: 252 kB / 449.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006189/0.3313, allocations: 3.287 MB / 453 MB, free: 5.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.945e-05/0.3314, allocations: 7.953 kB / 453 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002756/0.3317, allocations: 104 kB / 453.1 MB, free: 4.945 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/0.3319, allocations: 124.9 kB / 453.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005191/0.3371, allocations: 2.752 MB / 456 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/0.3552, allocations: 10.4 MB / 466.4 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002283/0.3575, allocations: 1.369 MB / 467.7 MB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/0.3588, allocations: 0.7579 MB / 468.5 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.3591, allocations: 204.2 kB / 468.7 MB, free: 4.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.3592, allocations: 51.56 kB / 468.7 MB, free: 4.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.266e-06/0.3592, allocations: 0 / 468.7 MB, free: 4.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01621/0.3754, allocations: 6.938 MB / 475.7 MB, free: 13.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.128e-05/0.3755, allocations: 68.41 kB / 475.7 MB, free: 13.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002822/0.3783, allocations: 1.794 MB / 477.5 MB, free: 11.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.3785, allocations: 41.7 kB / 477.6 MB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001325/0.3798, allocations: 1.314 MB / 478.9 MB, free: 10.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004116/0.3802, allocations: 460.1 kB / 479.3 MB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.3807, allocations: 291.5 kB / 479.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3809, allocations: 305.1 kB / 479.9 MB, free: 9.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.3821, allocations: 0.7769 MB / 480.7 MB, free: 8.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.3839, allocations: 1.288 MB / 482 MB, free: 7.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003142/0.387, allocations: 2.21 MB / 484.2 MB, free: 4.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.3871, allocations: 4 kB / 484.2 MB, free: 4.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004274/0.3913, allocations: 2.487 MB / 486.7 MB, free: 2.223 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.3914, allocations: 16.12 kB / 486.7 MB, free: 2.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/0.3914, allocations: 16 kB / 486.7 MB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006365/0.3921, allocations: 247.2 kB / 487 MB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.3935, allocations: 415.3 kB / 487.4 MB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.3969, allocations: 3.23 MB / 490.6 MB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.3983, allocations: 135.8 kB / 490.7 MB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002573/0.3985, allocations: 71.94 kB / 490.8 MB, free: 13.8 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.001517/0.4, allocations: 0.8251 MB / 491.6 MB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003873/0.4004, allocations: 194.8 kB / 491.8 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003675/0.4041, allocations: 2.046 MB / 493.9 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.4042, allocations: 12 kB / 493.9 MB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4042, allocations: 0 / 493.9 MB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.4042, allocations: 7.969 kB / 493.9 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00825/0.4124, allocations: 4.745 MB / 498.6 MB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4125, allocations: 7.984 kB / 498.6 MB, free: 5.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.4136, allocations: 259.9 kB / 498.9 MB, free: 5.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005763/0.4142, allocations: 207.3 kB / 499.1 MB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-05/0.4143, allocations: 27.98 kB / 499.1 MB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003057/0.4174, allocations: 3.212 MB / 0.4906 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4174, allocations: 8.062 kB / 0.4906 GB, free: 1.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00491/0.4223, allocations: 3.136 MB / 0.4936 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009212/0.4232, allocations: 435.8 kB / 0.494 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.4235, allocations: 27.94 kB / 0.4941 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/0.4244, allocations: 99.92 kB / 0.4942 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.4246, allocations: 84.83 kB / 0.4942 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-05/0.4247, allocations: 32 kB / 0.4943 GB, free: 13.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002048/0.4268, allocations: 1.224 MB / 0.4955 GB, free: 12.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4268, allocations: 0 / 0.4955 GB, free: 12.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00161/0.4284, allocations: 491.9 kB / 0.4959 GB, free: 12.27 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.005573/0.434, allocations: 3.784 MB / 0.4996 GB, free: 8.418 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.4379, allocations: 2.354 MB / 0.5019 GB, free: 5.996 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4379, allocations: 0 / 0.5019 GB, free: 5.996 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00203/0.44, allocations: 1.335 MB / 0.5032 GB, free: 4.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.4423, allocations: 0.494 MB / 0.5037 GB, free: 4.105 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02958/0.4719, allocations: 18.79 MB / 0.5221 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.4739, allocations: 2.01 MB / 0.524 GB, free: 14.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001481/0.4754, allocations: 0.496 MB / 0.5245 GB, free: 14.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/0.477, allocations: 1.019 MB / 0.5255 GB, free: 13 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.477, allocations: 0 / 0.5255 GB, free: 13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2728/0.7498, allocations: 46.11 MB / 0.5705 GB, free: 105.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.59, allocations: 6.094 kB / 0.5706 GB, free: 105.7 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)