Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 106.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 193.4 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1848/0.1848, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 67.88 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3608, allocations: 58.05 MB / 0.5036 GB, free: 7.453 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007398/0.3682, allocations: 5.253 MB / 0.5087 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002603/0.3709, allocations: 1.566 MB / 0.5103 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003999/0.3713, allocations: 23.62 kB / 0.5103 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004793/0.3718, allocations: 120.5 kB / 0.5104 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008272/0.3727, allocations: 320.6 kB / 0.5107 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.3731, allocations: 154.1 kB / 0.5109 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000948/0.3741, allocations: 0.6958 MB / 0.5115 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005904/0.3747, allocations: 455.3 kB / 0.512 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004216/0.3751, allocations: 282.5 kB / 0.5122 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004557/0.3756, allocations: 290.3 kB / 0.5125 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.436e-05/0.3757, allocations: 45.34 kB / 0.5126 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.3758, allocations: 46.91 kB / 0.5126 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.376, allocations: 151.8 kB / 0.5128 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002739/0.3762, allocations: 267.5 kB / 0.513 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000841/0.3771, allocations: 0.6026 MB / 0.5136 GB, free: 1.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3771, allocations: 4 kB / 0.5136 GB, free: 1.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3771, allocations: 0 / 0.5136 GB, free: 1.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.3771, allocations: 0 / 0.5136 GB, free: 1.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001504/0.3786, allocations: 0.7935 MB / 0.5144 GB, free: 476 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.3787, allocations: 13.38 kB / 0.5144 GB, free: 472 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.709e-05/0.3788, allocations: 79.7 kB / 0.5145 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.862e-05/0.3789, allocations: 58.7 kB / 0.5145 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006864/0.3796, allocations: 461.1 kB / 0.515 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.3797, allocations: 64.03 kB / 0.515 GB, free: 0 / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.3798, allocations: 52.17 kB / 0.5151 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009375/0.3808, allocations: 0.5009 MB / 0.5156 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.3808, allocations: 2.125 kB / 0.5156 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.217e-05/0.3808, allocations: 16.94 kB / 0.5156 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3809, allocations: 11.53 kB / 0.5156 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007337/0.3816, allocations: 344 kB / 0.5159 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002861/0.3845, allocations: 1.968 MB / 0.5178 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.385, allocations: 227.7 kB / 0.5181 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002637/0.3853, allocations: 92.72 kB / 0.5181 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.3853, allocations: 6.438 kB / 0.5182 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.881e-05/0.3854, allocations: 41.84 kB / 0.5182 GB, free: 13.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.425e-06/0.3854, allocations: 0.5625 kB / 0.5182 GB, free: 13.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001991/0.3874, allocations: 0.8553 MB / 0.519 GB, free: 13.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.3875, allocations: 106.9 kB / 0.5191 GB, free: 13.1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004176/0.3879, allocations: 328.3 kB / 0.5194 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.3879, allocations: 30.8 kB / 0.5195 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.3882, allocations: 282 kB / 0.5197 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.473e-05/0.3883, allocations: 84.06 kB / 0.5198 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.3884, allocations: 71.52 kB / 0.5199 GB, free: 12.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3886, allocations: 354.8 kB / 0.5202 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.3888, allocations: 79.38 kB / 0.5203 GB, free: 12.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/0.3891, allocations: 208.7 kB / 0.5205 GB, free: 12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3906, allocations: 0.5611 MB / 0.521 GB, free: 11.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3906, allocations: 1.406 kB / 0.5211 GB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009835/0.3916, allocations: 418.8 kB / 0.5215 GB, free: 11.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3916, allocations: 7.969 kB / 0.5215 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.3916, allocations: 3.781 kB / 0.5215 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003495/0.392, allocations: 80.64 kB / 0.5215 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/0.3922, allocations: 66.36 kB / 0.5216 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002402/0.3947, allocations: 1.921 MB / 0.5235 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.3949, allocations: 19.08 kB / 0.5235 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.395, allocations: 14.22 kB / 0.5235 GB, free: 9.633 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003033/0.3953, allocations: 199.4 kB / 0.5237 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.858e-05/0.3954, allocations: 43.7 kB / 0.5237 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.33e-05/0.3955, allocations: 39.02 kB / 0.5238 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3955, allocations: 3.062 kB / 0.5238 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3955, allocations: 1.469 kB / 0.5238 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.3955, allocations: 6.422 kB / 0.5238 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.3968, allocations: 0.7749 MB / 0.5245 GB, free: 8.867 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3968, allocations: 5.062 kB / 0.5246 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002545/0.3971, allocations: 45.56 kB / 0.5246 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.3972, allocations: 22 kB / 0.5246 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.3972, allocations: 6.953 kB / 0.5246 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.3987, allocations: 1.383 MB / 0.526 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3987, allocations: 1.562 kB / 0.526 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008937/0.3996, allocations: 0.5087 MB / 0.5265 GB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.3997, allocations: 121.2 kB / 0.5266 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.3998, allocations: 12.02 kB / 0.5266 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.4, allocations: 6.281 kB / 0.5266 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.978e-05/0.4001, allocations: 18.25 kB / 0.5266 GB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.4001, allocations: 6.156 kB / 0.5266 GB, free: 6.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.4004, allocations: 232.7 kB / 0.5268 GB, free: 6.816 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.4004, allocations: 0 / 0.5268 GB, free: 6.816 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005556/0.4009, allocations: 94.25 kB / 0.5269 GB, free: 6.801 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(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.001161/0.4021, allocations: 1.043 MB / 0.528 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008454/0.403, allocations: 370.6 kB / 0.5283 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.403, allocations: 3.938 kB / 0.5283 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003839/0.4034, allocations: 217.1 kB / 0.5285 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007169/0.4041, allocations: 104.1 kB / 0.5286 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005727/0.4098, allocations: 3.706 MB / 0.5322 GB, free: 2.988 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/0.4105, allocations: 0.8433 MB / 0.5331 GB, free: 2.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002638/0.4107, allocations: 47.86 kB / 0.5331 GB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.411, allocations: 145 kB / 0.5332 GB, free: 2.152 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.411, allocations: 0 / 0.5332 GB, free: 2.152 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0437/0.4547, allocations: 8.493 MB / 0.5415 GB, free: 14.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.77, allocations: 7.391 kB / 0.5415 GB, free: 14.75 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)