Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001792/0.001799, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001853/0.001853, allocations: 193.3 kB / 18.01 MB, free: 5.051 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.429/1.429, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1886/0.1886, allocations: 38.05 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3805/0.3824, allocations: 58.06 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006275/0.3887, allocations: 5.161 MB / 0.5087 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.3916, allocations: 1.985 MB / 0.5106 GB, free: 2.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003153/0.3919, allocations: 18.75 kB / 0.5106 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000527/0.3925, allocations: 142.6 kB / 0.5108 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008249/0.3934, allocations: 364.3 kB / 0.5111 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.3939, allocations: 217.4 kB / 0.5113 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008352/0.3947, allocations: 0.6976 MB / 0.512 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005882/0.3953, allocations: 439.3 kB / 0.5124 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.3958, allocations: 289.8 kB / 0.5127 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004476/0.3962, allocations: 281.8 kB / 0.513 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.725e-05/0.3963, allocations: 51.06 kB / 0.513 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.3966, allocations: 106.2 kB / 0.5131 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.3968, allocations: 149.6 kB / 0.5133 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002738/0.3971, allocations: 263.5 kB / 0.5135 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008981/0.398, allocations: 0.6541 MB / 0.5141 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.398, allocations: 0.5156 kB / 0.5141 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.398, allocations: 0 / 0.5141 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3981, allocations: 1.156 kB / 0.5141 GB, free: 0.7656 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001576/0.3996, allocations: 0.8514 MB / 0.515 GB, free: 128 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.3997, allocations: 8.75 kB / 0.515 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.3998, allocations: 80.39 kB / 0.5151 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.3999, allocations: 60.11 kB / 0.5151 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009398/0.4009, allocations: 489.8 kB / 0.5156 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.115e-05/0.4009, allocations: 28.12 kB / 0.5156 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.401, allocations: 40.91 kB / 0.5157 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009443/0.402, allocations: 455 kB / 0.5161 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/0.402, allocations: 8.734 kB / 0.5161 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.4021, allocations: 16.19 kB / 0.5161 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4021, allocations: 9.219 kB / 0.5161 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005474/0.4026, allocations: 275.5 kB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.4056, allocations: 1.859 MB / 0.5182 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.4063, allocations: 252.2 kB / 0.5184 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.4065, allocations: 86.95 kB / 0.5185 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.4065, allocations: 6.656 kB / 0.5185 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.4069, allocations: 180 kB / 0.5187 GB, free: 13.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.555e-06/0.4069, allocations: 4 kB / 0.5187 GB, free: 13.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001935/0.4088, allocations: 0.9239 MB / 0.5196 GB, free: 12.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.9e-05/0.409, allocations: 137.7 kB / 0.5197 GB, free: 12.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/0.4095, allocations: 403.5 kB / 0.5201 GB, free: 12.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.4096, allocations: 36.23 kB / 0.5202 GB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.4098, allocations: 268.4 kB / 0.5204 GB, free: 12.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.41, allocations: 95.28 kB / 0.5205 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.4101, allocations: 75.25 kB / 0.5206 GB, free: 12.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.4103, allocations: 349.4 kB / 0.5209 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.4105, allocations: 86.92 kB / 0.521 GB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.4107, allocations: 214.3 kB / 0.5212 GB, free: 11.6 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004779/0.4112, allocations: 314.8 kB / 0.5215 GB, free: 11.35 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.4112, allocations: 5.125 kB / 0.5215 GB, free: 11.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008813/0.4121, allocations: 431.2 kB / 0.5219 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4121, allocations: 6.844 kB / 0.5219 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4122, allocations: 4.469 kB / 0.5219 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004351/0.4126, allocations: 96.62 kB / 0.522 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.4129, allocations: 66.64 kB / 0.5221 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002646/0.4155, allocations: 2.008 MB / 0.524 GB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002946/0.4158, allocations: 22.11 kB / 0.5241 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.4159, allocations: 22.17 kB / 0.5241 GB, free: 9.344 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002766/0.4162, allocations: 189.8 kB / 0.5243 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/0.4162, allocations: 48.34 kB / 0.5243 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005993/0.4168, allocations: 292.5 kB / 0.5246 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.4169, allocations: 3.344 kB / 0.5246 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4169, allocations: 9.766 kB / 0.5246 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4169, allocations: 6.5 kB / 0.5246 GB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001227/0.4181, allocations: 0.7709 MB / 0.5254 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4181, allocations: 1.156 kB / 0.5254 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000223/0.4184, allocations: 39.8 kB / 0.5254 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.4186, allocations: 50.42 kB / 0.5254 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.4186, allocations: 12.25 kB / 0.5255 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.4201, allocations: 1.549 MB / 0.527 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4201, allocations: 3.938 kB / 0.527 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.4209, allocations: 0.491 MB / 0.5275 GB, free: 6.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.4211, allocations: 136.1 kB / 0.5276 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.4212, allocations: 6.75 kB / 0.5276 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.4214, allocations: 17.67 kB / 0.5276 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.4215, allocations: 23.58 kB / 0.5276 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.4215, allocations: 10.23 kB / 0.5276 GB, free: 6.543 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003748/0.4219, allocations: 282.9 kB / 0.5279 GB, free: 6.402 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4219, allocations: 0 / 0.5279 GB, free: 6.402 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005597/0.4225, allocations: 103.9 kB / 0.528 GB, free: 6.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002393/0.4249, allocations: 1.328 MB / 0.5293 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009719/0.4258, allocations: 404.4 kB / 0.5297 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4259, allocations: 8 kB / 0.5297 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004213/0.4263, allocations: 251.4 kB / 0.5299 GB, free: 5.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007164/0.427, allocations: 130.6 kB / 0.5301 GB, free: 5.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006421/0.4334, allocations: 4.053 MB / 0.534 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005941/0.4341, allocations: 0.8553 MB / 0.5349 GB, free: 1.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002927/0.4344, allocations: 68.45 kB / 0.5349 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.4346, allocations: 152.3 kB / 0.5351 GB, free: 1.547 MB / 398.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4346, allocations: 0 / 0.5351 GB, free: 1.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04573/0.4804, allocations: 10.97 MB / 0.5458 GB, free: 12.53 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.25, allocations: 1.344 kB / 0.5458 GB, free: 12.53 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)