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.SMR_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.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001672/0.001672, allocations: 122.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.001936/0.001936, allocations: 202 kB / 18.74 MB, free: 4.332 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.401/1.401, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001872/0.001872, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2675, allocations: 50.54 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01244/0.28, allocations: 10.23 MB / 419.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006937/0.287, allocations: 3.313 MB / 422.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.2891, allocations: 59.75 kB / 422.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002361/0.2915, allocations: 0.6908 MB / 423.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003265/0.2948, allocations: 0.8386 MB / 424.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.2962, allocations: 431.3 kB / 424.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004173/0.3003, allocations: 2.977 MB / 427.6 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00316/0.3035, allocations: 2.484 MB / 430.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002391/0.3059, allocations: 1.351 MB / 431.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002966/0.3089, allocations: 1.705 MB / 433.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006663/0.3096, allocations: 356 kB / 433.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.3107, allocations: 467.8 kB / 434 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.3118, allocations: 1.017 MB / 435 MB, free: 7.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002298/0.3142, allocations: 1.614 MB / 436.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005763/0.3199, allocations: 4.71 MB / 441.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.32, allocations: 0 / 441.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.32, allocations: 3.938 kB / 441.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.3201, allocations: 0 / 441.3 MB, free: 0.9883 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: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.007611/0.3277, allocations: 3.351 MB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.3278, allocations: 12.03 kB / 444.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004848/0.3283, allocations: 341.6 kB / 445 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.3296, allocations: 382.9 kB / 445.4 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.3331, allocations: 1.793 MB / 447.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.3333, allocations: 176.6 kB / 447.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003721/0.3337, allocations: 232 kB / 447.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005948/0.3396, allocations: 3.137 MB / 450.7 MB, free: 7.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.961e-05/0.3398, allocations: 7.953 kB / 450.7 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.34, allocations: 95.98 kB / 450.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001192/0.3401, allocations: 108.6 kB / 450.9 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005205/0.3453, allocations: 2.696 MB / 453.6 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01746/0.3628, allocations: 9.645 MB / 463.2 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.3657, allocations: 2.169 MB / 465.4 MB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001943/0.3677, allocations: 1.12 MB / 466.5 MB, free: 7.051 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/0.368, allocations: 195.2 kB / 466.7 MB, free: 6.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.3681, allocations: 47.55 kB / 466.8 MB, free: 6.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.076e-06/0.3681, allocations: 0 / 466.8 MB, free: 6.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01439/0.3825, allocations: 6.886 MB / 473.7 MB, free: 15.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.3826, allocations: 68.7 kB / 473.7 MB, free: 15.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002745/0.3853, allocations: 1.759 MB / 475.5 MB, free: 13.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.3855, allocations: 49.7 kB / 475.5 MB, free: 13.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009513/0.3864, allocations: 1.186 MB / 476.7 MB, free: 12.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004074/0.3869, allocations: 483.9 kB / 477.2 MB, free: 12.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004837/0.3873, allocations: 283.5 kB / 477.5 MB, free: 11.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3875, allocations: 301.1 kB / 477.8 MB, free: 11.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.3888, allocations: 0.7925 MB / 478.6 MB, free: 10.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.3904, allocations: 1.209 MB / 479.8 MB, free: 9.383 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003019/0.3934, allocations: 2.094 MB / 481.9 MB, free: 7.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/0.3935, allocations: 4 kB / 481.9 MB, free: 7.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.004871/0.3983, allocations: 2.679 MB / 484.5 MB, free: 4.398 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.3984, allocations: 8.344 kB / 484.5 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/0.3984, allocations: 16 kB / 484.6 MB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.3995, allocations: 431 kB / 485 MB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4009, allocations: 355.4 kB / 485.3 MB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007646/0.4085, allocations: 7.08 MB / 492.4 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001684/0.4102, allocations: 111.8 kB / 492.5 MB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002781/0.4105, allocations: 67.92 kB / 492.6 MB, free: 11.93 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 3 (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 (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001717/0.4123, allocations: 0.7939 MB / 493.4 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000568/0.4128, allocations: 190.8 kB / 493.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004476/0.4173, allocations: 2.391 MB / 496 MB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.4174, allocations: 16 kB / 496 MB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/0.4174, allocations: 4 kB / 496 MB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.4174, allocations: 7.969 kB / 496 MB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009534/0.4269, allocations: 5.101 MB / 0.4893 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.427, allocations: 4 kB / 0.4893 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009904/0.428, allocations: 235.6 kB / 0.4896 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.4292, allocations: 459.5 kB / 0.49 GB, free: 2.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.923e-05/0.4293, allocations: 35.98 kB / 0.49 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009196/0.4385, allocations: 8.646 MB / 0.4985 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.371e-06/0.4386, allocations: 4 kB / 0.4985 GB, free: 9.289 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006434/0.445, allocations: 3.534 MB / 0.5019 GB, free: 5.668 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.4462, allocations: 439.7 kB / 0.5024 GB, free: 5.219 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004683/0.4466, allocations: 35.98 kB / 0.5024 GB, free: 5.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.4477, allocations: 87.91 kB / 0.5025 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003301/0.448, allocations: 120.6 kB / 0.5026 GB, free: 4.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-05/0.4481, allocations: 40 kB / 0.5026 GB, free: 4.941 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001861/0.45, allocations: 1.207 MB / 0.5038 GB, free: 3.742 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.45, allocations: 0 / 0.5038 GB, free: 3.742 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001847/0.4519, allocations: 0.5117 MB / 0.5043 GB, free: 3.23 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,11,100.0%), (1,1,100.0%), (1,6,100.0%), (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.006028/0.4579, allocations: 4.167 MB / 0.5084 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004107/0.462, allocations: 2.473 MB / 0.5108 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.4621, allocations: 4 kB / 0.5108 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.4646, allocations: 1.61 MB / 0.5124 GB, free: 10.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.467, allocations: 482 kB / 0.5128 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03145/0.4984, allocations: 19.54 MB / 0.5319 GB, free: 6.051 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001962/0.5004, allocations: 2.001 MB / 0.5339 GB, free: 4.012 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00138/0.5018, allocations: 447.5 kB / 0.5343 GB, free: 3.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/0.5031, allocations: 0.9288 MB / 0.5352 GB, free: 2.641 MB / 462.1 MB Notification: Performance of SimCode: time 2.906e-06/0.5031, allocations: 0 / 0.5352 GB, free: 2.641 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2954/0.7985, allocations: 48.05 MB / 0.5821 GB, free: 91.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.41/26.21, allocations: 11.73 kB / 0.5821 GB, free: 91.93 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL.pipe 2>&1)