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.001524/0.001524, allocations: 110.6 kB / 16.92 MB, free: 5.844 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.001264/0.001264, allocations: 191.3 kB / 17.85 MB, free: 5.16 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.377/1.377, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1847/0.1847, allocations: 38.03 MB / 329.7 MB, free: 8.871 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.06 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1101, allocations: 58.07 MB / 457 MB, free: 7.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006583/0.1168, allocations: 5.159 MB / 462.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002928/0.1197, allocations: 1.99 MB / 464.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003559/0.1201, allocations: 11.94 kB / 464.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005481/0.1207, allocations: 150.9 kB / 464.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009852/0.1217, allocations: 365.8 kB / 464.6 MB, free: 292 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.1223, allocations: 211.5 kB / 464.8 MB, free: 80 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009742/0.1233, allocations: 0.6929 MB / 465.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005602/0.1238, allocations: 438.5 kB / 466 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004947/0.1243, allocations: 290.8 kB / 466.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004827/0.1248, allocations: 286.8 kB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.1249, allocations: 52 kB / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002353/0.1252, allocations: 95.97 kB / 466.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.1254, allocations: 143.6 kB / 466.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003266/0.1257, allocations: 278.6 kB / 467.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007372/0.1264, allocations: 0.6308 MB / 467.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1265, allocations: 0 / 467.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1265, allocations: 0 / 467.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.1265, allocations: 0 / 467.7 MB, free: 13.19 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.001835/0.1283, allocations: 0.8467 MB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1284, allocations: 11.89 kB / 468.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.1285, allocations: 74.72 kB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.1287, allocations: 60.19 kB / 468.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008877/0.1296, allocations: 462.1 kB / 469.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.27e-05/0.1296, allocations: 32.94 kB / 469.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.966e-05/0.1297, allocations: 36 kB / 469.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007336/0.1305, allocations: 457.1 kB / 469.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1305, allocations: 0 / 469.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.1305, allocations: 12 kB / 469.7 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1305, allocations: 12 kB / 469.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004828/0.131, allocations: 278.3 kB / 470 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.1333, allocations: 1.874 MB / 471.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/0.1338, allocations: 251.7 kB / 472.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1339, allocations: 86.97 kB / 472.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.134, allocations: 7.875 kB / 472.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.1343, allocations: 172.6 kB / 472.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.1343, allocations: 0 / 472.4 MB, free: 8.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001759/0.136, allocations: 0.9218 MB / 473.3 MB, free: 7.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.702e-05/0.1362, allocations: 140.4 kB / 473.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004869/0.1366, allocations: 398 kB / 473.8 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1367, allocations: 29.7 kB / 473.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1369, allocations: 267.6 kB / 474.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.282e-05/0.137, allocations: 90.8 kB / 474.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.1371, allocations: 73.59 kB / 474.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1373, allocations: 346.8 kB / 474.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.1374, allocations: 91.91 kB / 474.7 MB, free: 5.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.1377, allocations: 220.2 kB / 474.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.1381, allocations: 315.9 kB / 475.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1381, allocations: 0 / 475.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008465/0.139, allocations: 429.4 kB / 475.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.139, allocations: 10.34 kB / 475.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.139, allocations: 4 kB / 475.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004282/0.1394, allocations: 93.2 kB / 475.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.1397, allocations: 67.91 kB / 475.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.1424, allocations: 2.021 MB / 477.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.1427, allocations: 23.98 kB / 477.8 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1427, allocations: 15.94 kB / 477.9 MB, free: 2.375 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.000234/0.1429, allocations: 193.7 kB / 478 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.1e-05/0.143, allocations: 39.53 kB / 478.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005922/0.1436, allocations: 302 kB / 478.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1436, allocations: 0 / 478.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1436, allocations: 4 kB / 478.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.1436, allocations: 3.984 kB / 478.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.1447, allocations: 0.7687 MB / 479.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.1447, allocations: 0 / 479.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.145, allocations: 59.84 kB / 479.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001952/0.1452, allocations: 52.81 kB / 479.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.1452, allocations: 7.984 kB / 479.3 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.1466, allocations: 1.539 MB / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1466, allocations: 0 / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000732/0.1473, allocations: 0.4954 MB / 481.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.1475, allocations: 136.6 kB / 481.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.067e-05/0.1475, allocations: 8 kB / 481.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.1477, allocations: 11.98 kB / 481.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.899e-05/0.1478, allocations: 27.97 kB / 481.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1479, allocations: 7.938 kB / 481.5 MB, free: 14.46 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.1482, allocations: 283.1 kB / 481.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1482, allocations: 0 / 481.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.1487, allocations: 108 kB / 481.9 MB, free: 14.08 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.001936/0.1507, allocations: 1.315 MB / 483.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009359/0.1516, allocations: 423.6 kB / 483.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1516, allocations: 0 / 483.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.152, allocations: 246.4 kB / 483.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006724/0.1527, allocations: 131.7 kB / 484 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005514/0.1582, allocations: 4.085 MB / 488.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.1587, allocations: 0.8543 MB / 488.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.159, allocations: 67.3 kB / 489 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.1592, allocations: 159.4 kB / 489.1 MB, free: 6.688 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1592, allocations: 0 / 489.1 MB, free: 6.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03947/0.1987, allocations: 10.75 MB / 499.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12, allocations: 3.875 kB / 499.9 MB, free: 12.11 MB / 382.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)