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.001179/0.001179, allocations: 110.2 kB / 17.06 MB, free: 5.785 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.001222/0.001222, allocations: 191 kB / 18 MB, free: 4.945 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.356/1.356, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2173/0.2173, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 67.91 kB / 457.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4399, 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_ser): time 0.007954/0.4479, allocations: 5.167 MB / 0.5087 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004556/0.4525, allocations: 1.983 MB / 0.5106 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008258/0.4534, allocations: 17.66 kB / 0.5106 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000833/0.4543, allocations: 146.8 kB / 0.5108 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001531/0.4558, allocations: 359.2 kB / 0.5111 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000866/0.4567, allocations: 229.4 kB / 0.5113 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001236/0.458, allocations: 0.6972 MB / 0.512 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007346/0.4587, allocations: 437.6 kB / 0.5124 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006318/0.4594, allocations: 299.5 kB / 0.5127 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005049/0.4599, allocations: 285.8 kB / 0.513 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.46, allocations: 46.81 kB / 0.513 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003273/0.4603, allocations: 94.77 kB / 0.5131 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.4606, allocations: 154.4 kB / 0.5133 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003239/0.4609, allocations: 270.9 kB / 0.5135 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.4621, allocations: 0.6499 MB / 0.5141 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4621, allocations: 1.156 kB / 0.5141 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.4621, allocations: 0 / 0.5141 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.4621, allocations: 0 / 0.5141 GB, free: 0.7422 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.001907/0.464, allocations: 0.8589 MB / 0.515 GB, free: 96 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.627e-05/0.4641, allocations: 13.39 kB / 0.515 GB, free: 92 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001344/0.4643, allocations: 76.06 kB / 0.5151 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.4644, allocations: 56.56 kB / 0.5151 GB, free: 0 / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.4656, allocations: 497 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.4657, allocations: 28.59 kB / 0.5156 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.68e-05/0.4658, allocations: 36.91 kB / 0.5157 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000965/0.4668, allocations: 454.5 kB / 0.5161 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.4668, allocations: 5.109 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.4669, allocations: 17.78 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.4669, allocations: 12.75 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006679/0.4676, allocations: 278.8 kB / 0.5164 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003128/0.4707, allocations: 1.852 MB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.4713, allocations: 257.1 kB / 0.5184 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.4715, allocations: 89.64 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.528e-05/0.4716, allocations: 11.67 kB / 0.5185 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003357/0.4719, allocations: 171 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.004e-06/0.4719, allocations: 0 / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001826/0.4738, allocations: 0.9288 MB / 0.5196 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.4739, allocations: 131.8 kB / 0.5197 GB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.4744, allocations: 408.8 kB / 0.5201 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.4745, allocations: 32.2 kB / 0.5202 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.4747, allocations: 272.7 kB / 0.5204 GB, free: 12.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.4748, allocations: 90.77 kB / 0.5205 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.475, allocations: 78.88 kB / 0.5206 GB, free: 12.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.4752, allocations: 349.9 kB / 0.5209 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.4754, allocations: 83.41 kB / 0.521 GB, free: 11.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.4757, allocations: 214.1 kB / 0.5212 GB, free: 11.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.4762, allocations: 320.8 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4762, allocations: 1.469 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008725/0.4771, allocations: 434.1 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4771, allocations: 6 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.4771, allocations: 5.594 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004264/0.4775, allocations: 95.61 kB / 0.522 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.4779, allocations: 67.17 kB / 0.5221 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00322/0.4811, allocations: 2.002 MB / 0.524 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.4815, allocations: 18.25 kB / 0.5241 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.4816, allocations: 19.97 kB / 0.5241 GB, free: 9.324 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.0003397/0.4819, allocations: 196 kB / 0.5243 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.673e-05/0.482, allocations: 43.72 kB / 0.5243 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008157/0.4829, allocations: 300.9 kB / 0.5246 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.4829, allocations: 2.75 kB / 0.5246 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4829, allocations: 1.375 kB / 0.5246 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4829, allocations: 3.391 kB / 0.5246 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.4846, allocations: 0.7729 MB / 0.5254 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.4846, allocations: 1.375 kB / 0.5254 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.485, allocations: 44.08 kB / 0.5254 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002896/0.4853, allocations: 53.91 kB / 0.5255 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.4853, allocations: 8.391 kB / 0.5255 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.4871, allocations: 1.545 MB / 0.527 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4871, allocations: 1.281 kB / 0.527 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.4882, allocations: 0.4944 MB / 0.5275 GB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.4885, allocations: 135.2 kB / 0.5276 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.4885, allocations: 10.72 kB / 0.5276 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.4888, allocations: 14.7 kB / 0.5276 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.665e-05/0.489, allocations: 22.8 kB / 0.5276 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.403e-05/0.489, allocations: 14.64 kB / 0.5276 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004971/0.4895, allocations: 282.4 kB / 0.5279 GB, free: 6.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4895, allocations: 0 / 0.5279 GB, free: 6.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008642/0.4904, allocations: 103.5 kB / 0.528 GB, free: 6.367 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.002585/0.493, allocations: 1.333 MB / 0.5293 GB, free: 5.426 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4943, allocations: 412 kB / 0.5297 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.4943, allocations: 0 / 0.5297 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005603/0.4949, allocations: 244.3 kB / 0.5299 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.496, allocations: 125.5 kB / 0.5301 GB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009299/0.5053, allocations: 4.065 MB / 0.534 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007095/0.506, allocations: 0.8556 MB / 0.5349 GB, free: 1.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004211/0.5065, allocations: 66.36 kB / 0.5349 GB, free: 1.633 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003091/0.5068, allocations: 159.8 kB / 0.5351 GB, free: 1.516 MB / 398.1 MB Notification: Performance of SimCode: time 1.482e-06/0.5068, allocations: 4 kB / 0.5351 GB, free: 1.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04153/0.5483, allocations: 10.95 MB / 0.5458 GB, free: 12.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.05, allocations: 9.469 kB / 0.5458 GB, free: 12.55 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)