Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001565/0.001565, allocations: 103.1 kB / 16.92 MB, free: 5.77 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.001777/0.001777, allocations: 191.5 kB / 17.85 MB, free: 5.168 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.367/1.367, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1837/0.1837, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 64.25 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08995/0.09126, allocations: 58.07 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006879/0.09818, allocations: 4.786 MB / 461.8 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.1012, allocations: 1.487 MB / 463.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005235/0.1018, allocations: 15.94 kB / 463.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006406/0.1025, allocations: 115.1 kB / 463.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.1035, allocations: 270.4 kB / 463.6 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004609/0.104, allocations: 135.8 kB / 463.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008697/0.1049, allocations: 0.5838 MB / 464.3 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006129/0.1055, allocations: 386.6 kB / 464.7 MB, free: 156 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.106, allocations: 239.1 kB / 465 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004815/0.1065, allocations: 239 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.1066, allocations: 40 kB / 465.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.1068, allocations: 40 kB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1069, allocations: 123.6 kB / 465.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.1072, allocations: 223 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004929/0.1077, allocations: 0.5022 MB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1077, allocations: 0 / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1077, allocations: 4 kB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.1077, allocations: 0 / 466.1 MB, free: 14.76 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001386/0.1091, allocations: 0.6992 MB / 466.8 MB, free: 14.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1092, allocations: 15.83 kB / 466.8 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.021e-05/0.1093, allocations: 74.72 kB / 466.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.839e-05/0.1094, allocations: 48.38 kB / 466.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.11, allocations: 403.8 kB / 467.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.505e-05/0.1101, allocations: 54.7 kB / 467.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.1101, allocations: 36 kB / 467.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006652/0.1108, allocations: 436.1 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.1108, allocations: 4 kB / 467.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.1109, allocations: 12 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.1109, allocations: 8 kB / 467.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005441/0.1114, allocations: 274 kB / 468.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.1137, allocations: 1.849 MB / 470 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.1141, allocations: 175.6 kB / 470.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.1142, allocations: 74.67 kB / 470.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1143, allocations: 0 / 470.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1143, allocations: 38.5 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.1143, allocations: 4 kB / 470.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001305/0.1156, allocations: 0.7074 MB / 471 MB, free: 9.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.1157, allocations: 106.8 kB / 471.1 MB, free: 9.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.116, allocations: 316.4 kB / 471.4 MB, free: 9.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.1161, allocations: 33.89 kB / 471.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001537/0.1162, allocations: 251.6 kB / 471.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-05/0.1163, allocations: 63.02 kB / 471.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.1164, allocations: 69.92 kB / 471.8 MB, free: 8.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.1165, allocations: 338.8 kB / 472.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.1167, allocations: 72.61 kB / 472.2 MB, free: 8.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1169, allocations: 205.5 kB / 472.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004251/0.1174, allocations: 298 kB / 472.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1174, allocations: 0 / 472.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005602/0.118, allocations: 332.4 kB / 473 MB, free: 7.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.118, allocations: 8 kB / 473 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.118, allocations: 7.984 kB / 473 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.118, allocations: 4 kB / 473.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.1183, allocations: 79.83 kB / 473.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.1184, allocations: 8 kB / 473.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.1185, allocations: 12 kB / 473.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.1186, allocations: 12 kB / 473.2 MB, free: 7.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.1188, allocations: 185.8 kB / 473.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.1188, allocations: 35.56 kB / 473.4 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003887/0.1192, allocations: 192.7 kB / 473.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1192, allocations: 0 / 473.6 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1192, allocations: 4 kB / 473.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1193, allocations: 3.984 kB / 473.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009087/0.1202, allocations: 0.6187 MB / 474.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1202, allocations: 0 / 474.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.1204, allocations: 47.91 kB / 474.2 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1204, allocations: 4 kB / 474.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1205, allocations: 0 / 474.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1205, allocations: 4 kB / 474.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1205, allocations: 0 / 474.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005801/0.1211, allocations: 459.8 kB / 474.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.1212, allocations: 104.8 kB / 474.8 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.713e-05/0.1212, allocations: 12 kB / 474.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.1214, allocations: 8 kB / 474.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.662e-05/0.1215, allocations: 11.98 kB / 474.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.1215, allocations: 15.94 kB / 474.8 MB, free: 5.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.1217, allocations: 219 kB / 475.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1217, allocations: 0 / 475.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004042/0.1221, allocations: 72 kB / 475.1 MB, free: 5.094 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008158/0.1229, allocations: 0.9812 MB / 476.1 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004393/0.1234, allocations: 200.7 kB / 476.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.1234, allocations: 8.188 kB / 476.3 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1236, allocations: 79.84 kB / 476.4 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006714/0.1243, allocations: 91.88 kB / 476.5 MB, free: 3.719 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00423/0.1285, allocations: 3.432 MB / 479.9 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.1289, allocations: 0.8184 MB / 480.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.1291, allocations: 55.25 kB / 480.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.1293, allocations: 119.4 kB / 480.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1293, allocations: 4 kB / 480.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/0.1563, allocations: 6.887 MB / 487.8 MB, free: 8.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.659, allocations: 9.531 kB / 487.8 MB, free: 8.27 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)