Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001144/0.001144, allocations: 105.9 kB / 16.92 MB, free: 6.148 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.001141/0.001141, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.34/1.34, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1846/0.1846, allocations: 38.02 MB / 329.7 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.34 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08427/0.08552, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006663/0.09221, allocations: 5.686 MB / 462.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002849/0.09509, allocations: 2.119 MB / 464.8 MB, free: 124 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.09539, allocations: 19.88 kB / 464.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005544/0.09596, allocations: 174.7 kB / 465 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.09705, allocations: 425.5 kB / 465.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006668/0.09772, allocations: 246.8 kB / 465.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00122/0.09896, allocations: 0.8409 MB / 466.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006316/0.0996, allocations: 0.4928 MB / 466.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005379/0.1001, allocations: 350.6 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005357/0.1007, allocations: 342.6 kB / 467.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.1008, allocations: 52 kB / 467.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.1011, allocations: 99.98 kB / 467.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001959/0.1013, allocations: 191.4 kB / 468 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003298/0.1016, allocations: 306.5 kB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007446/0.1024, allocations: 0.7164 MB / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1024, allocations: 0 / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1024, allocations: 0 / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1024, allocations: 0 / 469 MB, free: 11.9 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001604/0.104, allocations: 0.9126 MB / 469.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.1041, allocations: 15.89 kB / 469.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.331e-05/0.1042, allocations: 78.72 kB / 470 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.1043, allocations: 64.19 kB / 470 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007404/0.105, allocations: 0.4941 MB / 470.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.1051, allocations: 33 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.6e-05/0.1052, allocations: 51.91 kB / 470.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007318/0.1059, allocations: 0.5134 MB / 471.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.1059, allocations: 0 / 471.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.106, allocations: 20 kB / 471.2 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.496e-05/0.1061, allocations: 13 kB / 471.2 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005272/0.1066, allocations: 343.6 kB / 471.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.109, allocations: 2.07 MB / 473.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.1095, allocations: 235.6 kB / 473.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.1096, allocations: 82.67 kB / 473.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.1096, allocations: 3.938 kB / 473.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.1099, allocations: 176.6 kB / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.1099, allocations: 0 / 474.1 MB, free: 6.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001635/0.1116, allocations: 0.9139 MB / 475 MB, free: 5.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/0.1116, allocations: 136.8 kB / 475.1 MB, free: 5.367 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.1121, allocations: 421.9 kB / 475.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.1121, allocations: 33.7 kB / 475.5 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001971/0.1123, allocations: 299.5 kB / 475.8 MB, free: 4.609 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.874e-05/0.1124, allocations: 90.95 kB / 475.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001085/0.1125, allocations: 78.05 kB / 476 MB, free: 4.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1127, allocations: 362.7 kB / 476.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.1129, allocations: 84.83 kB / 476.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.1131, allocations: 225.8 kB / 476.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.1135, allocations: 317.7 kB / 477 MB, free: 3.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1135, allocations: 0 / 477 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008487/0.1144, allocations: 449.5 kB / 477.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1144, allocations: 4 kB / 477.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1144, allocations: 4 kB / 477.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004087/0.1148, allocations: 101.1 kB / 477.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.1151, allocations: 71.84 kB / 477.6 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002126/0.1172, allocations: 1.823 MB / 479.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.1175, allocations: 23.98 kB / 479.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.1176, allocations: 20 kB / 479.5 MB, free: 0.6992 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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002452/0.1178, allocations: 208.8 kB / 479.7 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.505e-05/0.1179, allocations: 51.38 kB / 479.7 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005774/0.1185, allocations: 284.5 kB / 480 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1185, allocations: 4 kB / 480 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.1185, allocations: 0 / 480 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1185, allocations: 4 kB / 480 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1197, allocations: 0.7762 MB / 480.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1197, allocations: 3.938 kB / 480.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.12, allocations: 47.97 kB / 480.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002009/0.1202, allocations: 48.81 kB / 480.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.1202, allocations: 4 kB / 480.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.1216, allocations: 1.551 MB / 482.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1216, allocations: 0 / 482.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006921/0.1223, allocations: 486.4 kB / 482.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.1225, allocations: 132.5 kB / 483 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.373e-05/0.1225, allocations: 8.062 kB / 483 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002267/0.1228, allocations: 23.92 kB / 483.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.1228, allocations: 19.97 kB / 483.1 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.1229, allocations: 8 kB / 483.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003278/0.1232, allocations: 299.1 kB / 483.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1232, allocations: 0 / 483.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004986/0.1237, allocations: 108 kB / 483.5 MB, free: 12.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.00171/0.1254, allocations: 1.296 MB / 484.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008332/0.1263, allocations: 413.6 kB / 485.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1263, allocations: 3.938 kB / 485.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.1267, allocations: 247.7 kB / 485.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.1274, allocations: 136.6 kB / 485.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/0.1332, allocations: 4.293 MB / 489.9 MB, free: 5.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.1337, allocations: 0.8738 MB / 490.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002652/0.1339, allocations: 68.23 kB / 490.8 MB, free: 4.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.1342, allocations: 171.4 kB / 491 MB, free: 4.789 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1342, allocations: 0 / 491 MB, free: 4.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03668/0.1709, allocations: 11.28 MB / 0.4905 GB, free: 9.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.54, allocations: 3.984 kB / 0.4905 GB, free: 9.684 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_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_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)