Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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.001577/0.001577, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001878/0.001878, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.33/1.33, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1744/0.1744, allocations: 38.04 MB / 329.7 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 63 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09188/0.09314, allocations: 58.06 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006355/0.09954, allocations: 5.164 MB / 462.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002866/0.1024, allocations: 1.99 MB / 464.1 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/0.1028, allocations: 19.88 kB / 464.1 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.1033, allocations: 146.9 kB / 464.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009264/0.1043, allocations: 365.3 kB / 464.6 MB, free: 236 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005539/0.1048, allocations: 215.5 kB / 464.8 MB, free: 20 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009625/0.1058, allocations: 0.6968 MB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005621/0.1064, allocations: 430.5 kB / 466 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005108/0.1069, allocations: 290.8 kB / 466.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005014/0.1074, allocations: 290.8 kB / 466.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.973e-05/0.1075, allocations: 52 kB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.1078, allocations: 95.91 kB / 466.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.1079, allocations: 147.5 kB / 466.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.1082, allocations: 266.7 kB / 467.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.1089, allocations: 0.6424 MB / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1089, allocations: 0 / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1089, allocations: 0 / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.109, allocations: 0 / 467.7 MB, free: 13.13 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001844/0.1108, allocations: 0.8379 MB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.1109, allocations: 11.89 kB / 468.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.111, allocations: 82.7 kB / 468.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.1112, allocations: 56.19 kB / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.1122, allocations: 470 kB / 469.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.276e-05/0.1123, allocations: 29 kB / 469.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.1124, allocations: 36 kB / 469.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007583/0.1131, allocations: 457.1 kB / 469.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.1132, allocations: 4 kB / 469.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.1132, allocations: 12 kB / 469.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.1132, allocations: 11.94 kB / 469.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004872/0.1137, allocations: 286.3 kB / 470 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002337/0.1161, allocations: 1.862 MB / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.1166, allocations: 259 kB / 472.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1167, allocations: 83.05 kB / 472.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.109e-05/0.1168, allocations: 7.938 kB / 472.2 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002513/0.117, allocations: 184.7 kB / 472.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.934e-06/0.117, allocations: 0 / 472.4 MB, free: 8.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001651/0.1187, allocations: 0.9143 MB / 473.3 MB, free: 7.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.1188, allocations: 132.5 kB / 473.4 MB, free: 7.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004677/0.1193, allocations: 398 kB / 473.8 MB, free: 6.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.1193, allocations: 33.64 kB / 473.8 MB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.1195, allocations: 267.6 kB / 474.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/0.1196, allocations: 98.64 kB / 474.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1197, allocations: 69.59 kB / 474.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1199, allocations: 350.8 kB / 474.6 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.1201, allocations: 91.91 kB / 474.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.1203, allocations: 212.2 kB / 474.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003799/0.1207, allocations: 315.9 kB / 475.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1207, allocations: 4 kB / 475.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000814/0.1215, allocations: 425.4 kB / 475.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1215, allocations: 8 kB / 475.6 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.1216, allocations: 4 kB / 475.6 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.122, allocations: 89.22 kB / 475.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.1222, allocations: 67.91 kB / 475.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002387/0.1246, allocations: 2.018 MB / 477.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002566/0.1249, allocations: 23.94 kB / 477.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.1249, allocations: 19.92 kB / 477.8 MB, free: 2.316 MB / 350.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.0002153/0.1251, allocations: 193.7 kB / 478 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.1252, allocations: 39.53 kB / 478.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005852/0.1258, allocations: 302 kB / 478.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1258, allocations: 4 kB / 478.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1258, allocations: 0 / 478.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1258, allocations: 0 / 478.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.1269, allocations: 0.7686 MB / 479.1 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.1269, allocations: 3.938 kB / 479.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.1271, allocations: 43.98 kB / 479.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002173/0.1273, allocations: 56.8 kB / 479.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.1274, allocations: 8 kB / 479.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001312/0.1287, allocations: 1.547 MB / 480.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1287, allocations: 0 / 480.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000727/0.1294, allocations: 0.4954 MB / 481.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1296, allocations: 136.6 kB / 481.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.1296, allocations: 8 kB / 481.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.1299, allocations: 15.98 kB / 481.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.018e-05/0.13, allocations: 27.91 kB / 481.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.13, allocations: 11.94 kB / 481.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003063/0.1303, allocations: 283.1 kB / 481.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1303, allocations: 0 / 481.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.1308, allocations: 104 kB / 481.9 MB, free: 14.02 MB / 366.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.001799/0.1326, allocations: 1.323 MB / 483.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009233/0.1336, allocations: 415.6 kB / 483.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1336, allocations: 0 / 483.6 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004042/0.134, allocations: 250.4 kB / 483.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006841/0.1347, allocations: 129.6 kB / 484 MB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005661/0.1404, allocations: 4.081 MB / 488 MB, free: 7.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.1408, allocations: 0.8543 MB / 488.9 MB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002554/0.1411, allocations: 67.3 kB / 489 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/0.1413, allocations: 159.4 kB / 489.1 MB, free: 6.633 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1413, allocations: 3.938 kB / 489.1 MB, free: 6.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03525/0.1766, allocations: 10.74 MB / 499.9 MB, free: 12.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.6, allocations: 0 / 499.9 MB, free: 12.06 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)